- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2023 07:21 AM - edited 05-12-2023 07:23 AM
Hello Everyone,
I got stuck where Approval's are not getting triggered for the job and I could see there is no execution entry created when we submit from Draft state to submit to 'Awaiting Approval'.
If we submit directly without using Draft option the flow is getting triggered and approvals are getting generated.
I have checked all the Business rules on that particular table and tried In activating the Business rule and tested but still unable to trigger the flow.
PFA flow.
I'm brainstorming on this , could anyone please help me with your inputs on this work.
Thanks,
Raj
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2023 11:00 PM
Hello @K Akhila / @Michael Fry1 ,
Thanks for providing timely response.
As mentioned above in After update BR it's mentioned current.setWorkflow(false); so it's not triggering the flow now i'm triggering the flow using sn_fd.FlowAPI.startFlow and it's triggering the approval.
Thanks,
Raj

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2023 07:37 AM
The flow doesn't trigger because the trigger conditions are false. This is a custom table with a custom field? What values are set on the state field?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2023 08:05 AM - edited 05-12-2023 08:07 AM
Hello Michael,
Thanks for taking a look at this one.
As I stated above It's triggering the approvals when we submit the form/record producer directly but here the issue is when we submit using Draft Ui action then it's not triggering the approvals.
i.e.., Even though the trigger conditions are meeting it's not evaluating to True when we submit a draft record.
JFYI:
I have checked the history of both the records the one which is submitted directly and the one which is submitted using Draft button both the records doesn't have any Old State value after submission, the only state value is Awaiting Approval.
Thank you

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2023 10:36 AM
Can't your trigger just be IS vs changes to?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2023 11:16 PM
Hello Michael,
I have changed trigger condition to IS but it's still not triggering flow.
Thanks,