Business Rule not updating task when triggered from workflow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-21-2017 06:34 AM
I have a business rule on a custom table that runs when the status is updated. It works successfully when I update the record manually. When I execute a workflow to update the record, I've logged and verified it does trigger the business rule, but the update on the task record does not work. The only difference that I can see is that when the workflow is executing, it is running as 'guest', and not the actual user that triggered the workflow.
Summary/Additional notes:
-Business rules runs after update
-Advanced script does not do an update on the current table, but does a glide record to update a record on the sc_task table
-It works when a user manually updates the field to trigger the business rule
-It hits the business rule, but does not update the task when the workflow triggers the business rule. The workflow shows 'guest' updated the record.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-21-2017 06:39 AM
Can you check and set the execution order of the BR to be greater than 1000 in order to be executed after the Workflow Engine.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-21-2017 06:44 AM
The business rule is set greater than 1000

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-21-2017 06:41 AM
Hi Caleb,
In your trigger script which invokes Business rule try adding gr.setWorkflow(true) where gr refers to the object of the table when you are updating.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-21-2017 06:47 AM
I just attempted this and it did not correct the issue