Automating Content Publishing - With Approval (New issue)

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:

  1. Sometimes, I get two emails with two different generated posts.
  2. When I click on “Disapprove it,” the post still goes live. :sweat_smile:

Could you please share a screenshot of your current flow.

@David_M Here we go

1 Like

Thank you for sharing:
I can help you solve hiccup # 2 :slight_smile:

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.

Ok :sweat_smile: 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

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

I did not get that :sweat_smile:, what shall be done?

Edit: I’ll just skip the disapprove link and leave everything as is if the post isn’t spot on.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.