BR not working when a record is inserted through workflow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2024 04:18 AM - edited 04-05-2024 04:19 AM
Hey Community,
I got stuck in a weird situation where if I manually create a record, the BR is working fine but if system is creating a record using workflow, the Br is not getting triggered. Any leads ?
PS - It's a before insert/update BR.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2024 06:59 AM - edited 04-05-2024 06:59 AM
Hi @Ashutoshtbh ,
I suspect that's because of execution order, but not sure without much insight ?! Try tweaking order of your BR as both workflow engine and before BR are part of your use case.
Quick ref - https://docs.servicenow.com/bundle/washingtondc-application-development/page/script/general-scriptin...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2024 02:46 AM
I have tried changing the order as well, but it didn't worked as expected.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2024 07:16 AM
If there is any script associated with the workflow, ensure that it does not override or conflict with the functionality of your business rule. Review the script logic in the workflow to see if it's unintentionally preventing the business rule from executing. Also ensure that the user executing the workflow has the necessary permissions to trigger business rules and perform the desired actions on the record. Also try to change the order of business rule bit less.
Please Mark ✅Correct if this solves your query and also mark 👍Helpful if you find my response worthy based on the impact.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2024 02:47 AM
Checked, but still not working