- 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-14-2023 04:53 AM
Also, I tried 'changes from' Draft and 'changes To' Pending Approval but still it's not triggering the flow.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2023 05:40 AM
Please check the trigger condition again. Also please check if any client script r Business rule might affecting this. Check if the state changes and what UI action triggering. r In the Business rule check what script is added when state changes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2023 04:52 AM
Hello @K Akhila / @Michael Fry1 ,
Thanks for providing your inputs on this.
I have checked all the business rules, client scripts and ui actions and client scripts and I don't find any script causing this issue.
The issue I could see is whenever we submit Job 'Draft' to 'submit' in the history table old value is empty, whereas old value should be 'Draft' if I'm not wrong.
Please provide your inputs if my understanding is correct.
PFB Snapshot for reference.
Thanks,
Raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2023 02:07 AM
Hello @K Akhila / @Michael Fry1 ,
I could see there is one BR which is running on parent table when the job is in draft state in this BR it's mentioned current.setWorkflow(false) because of this line of code in the history table state value is not updating.
Can we write the below code on the current table.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2023 06:08 AM
This BR is running on the parent table? That shouldn't affect any Flows running on child table.