- 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-17-2023 11:33 AM
I tried by removing setworkflow(false) in the BR now it triggered the approval and in the history table also old value of job state is showing as draft and after submission it's updated to awaiting approval.
But now the problem is we cannot remove setworkflow(false) line as it's required in the BR.
Is there any other way if we could trigger the approval or update the job state on submission from draft.
- 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