Call Workflow Via Business Rule.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2018 10:56 PM
Hi Experts,
I am trying to call Workflow from Business Rule. The BR has written for incident table. Please refer the below BR. Can you please help to resolve any syntax error or code error?
var wrkflw=new Workflow();
//wrkflw.initialize();
wrkflw.startFlow(wrkflw.getWorkflow('Call WF toBR'),current,current.operation());
Regards,
Suresh Loganathan.
Suresh.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2018 11:13 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2018 11:15 PM
Hi Suresh
I have re-corrected piece of your code.
I should be wflw.getWorkflowFromName();
wrkflw.startFlow(wflw.getWorkflowFromName('Call WF toBR'),current,current.operation());
Thanks & Regards,
Kaka Nayeem
Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2018 12:35 AM
Thanks Nayeem / Bhagya. It Worked.
I have one more query. In the Workflow, I have used "RUN SCRIPT" and mentioned many functions into it.
Is it anyway to call only one function from workflow via Business Rule. Please advise.
Regards,
Suresh Loganathan.
Suresh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2018 02:18 AM
Thanks Nayeem / Bhagya. It Worked.
I have one more query. In the Workflow, I have used "RUN SCRIPT" and mentioned many functions into it.
Is it anyway to call only one function from workflow via Business Rule. Please advise.
Regards,
Suresh Loganathan
Suresh.