Hey guys, I have a backend workflow that calls another backend workflow at a later time. The first backend workflow is activated by a logged in “Current user.” If I want the scheduled backend workflow to run in the background asynchronously on that same user, can I pass the “Current user” as a parameter? What’s the best way to go about this? Thanks!
Yes. Just set the parameter to user on the second backend workflow.
If a logged in user schedules backend workflow, you can use Current User in the actions. It will recognise who triggered the workflow and consider them as current user.
If backend workflow is scheduled indirectly (like a webhook), it does not capture which user triggered it.
To be on the safer side, pass User as an additional parameter on the backend workflow
Inside the second BW you can add parameter that’s type will be user.
Inside the BW-1 action that triggers BW-2 will have a field for you to fill out. It’ll be a parameter field to pass on to BW-2. You set it to current user and you’re good.
Just in case this break or doesn’t work instead of passing current user you can Do a Search for Users
with the unique id that equals to Current User’s ID. Then pass this User value via parameter.
Hope this is clear to implement.
This topic was automatically closed after 70 days. New replies are no longer allowed.