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 08:13 AM
Please tell me a little more about your workflow...
What table is the workflow executing against? I ask since you mention custom table yet your business rule is update sc_task
How are you setting the status value of this custom record in your workflow?
Is the status of your custom record getting successfully saved by the workflow?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-21-2017 11:23 AM
I've got a hi ticket opened for this now. I'll try to update this later with what the problem/resolution was.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-28-2018 12:25 AM
Hey ... any news on that?
I face the same thing.
When using 'before' it works .. just 'after' does not seem to get triggered properly.
Lost already quite some time as I was assuming I did something stupid - but looks like it's system behavior ;-(
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-01-2017 04:56 AM
Maybe this is security issue?
Did you check what role is needed to update sc_task record?
Has gs.getUserid() this role?
If you are not sure add a check if user has role to update this record and throw gs.error to log