Yaiza
September 12, 2023, 4:51am
1
Hey there,
Originally, this topic was here: Automating Content Publishing - With Approval @David_M . However, it’s now closed, and it seems I can’t reopen it.
Now, after a few test runs, I’ve run into a couple of hiccups:
Sometimes, I get two emails with two different generated posts.
When I click on “Disapprove it,” the post still goes live.
David_M
September 12, 2023, 6:05am
2
Could you please share a screenshot of your current flow.
David_M
September 12, 2023, 7:58am
4
Thank you for sharing:
I can help you solve hiccup # 2
So after the “wait for Approval” please make a split condition if approved and if not approved.
If you don’t have a split if yes or if no then no matter what link you click on then the next step will run.
Hope that helps.
Yaiza
September 12, 2023, 10:30am
5
Ok How I can do that? Using the branch piece?
Yes, a branch piece to look weather it’s approved or not and you can take action based on that, that should work
Yaiza
September 12, 2023, 11:46am
7
And what should be the condition? Does the flow look right now?
@abuaboud Wait for Approval can return {"approved":true}
or {"approved":false}
, but testing this action step by step always resulting in
{"statusCode":400,"error":"Bad Request","message":"params/id must match pattern \"^[0-9a-zA-Z]{21}$\""}
for approval link : https://cloud.activepieces.com/api/v1/flow-runs/test-flow-run-id/resume?action=approve
As a result, Wait for approval action return only {}
and actual True/False value can’t be mapped in branch piece.
1 Like
Yaiza
September 12, 2023, 6:50pm
9
I did not get that , what shall be done?
Edit: I’ll just skip the disapprove link and leave everything as is if the post isn’t spot on.
system
Closed
September 15, 2023, 5:45am
10
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.