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

That didn't work either, I've tried the order of 100, 200, 1000, 10,000, and 99,999 now.


That is weird. BTW in line 18, it should be gs.getUserID() instead of gs.getUserId(). Can you turn on debug business Rule Details and see if it can give us a clue. I can hop on to the instance if is a personal dev instance.


I hardcoded the assigned_to since that screenshot, still nothing. I'll turn on debug business rules. If that doesn't provide anything I can submit something in hi since this is not a personal dev instance


try putting gs.log("in business rule") at line 2 just to see if you get anything.   If something errors below it will bail from the script so this should at least let you know it starting to execute.


I put gs.logs all throughout it, everything looked correct. I also put a try catch around the updateTask.update() and didn't see any errors