Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Business Rule not updating task when triggered from workflow

cfran5991
Kilo Expert

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.

18 REPLIES 18

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?


I've got a hi ticket opened for this now. I'll try to update this later with what the problem/resolution was.


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 ;-(

pawel_st -then-
Giga Guru

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