The CreatorCon Call for Content is officially open! Get started here.

In After Business Rule, current record holding old values for most of the variables

Suneel9
Tera Contributor

I have a custom table and I created a Business Rule on a filed with the following details:

 

When: After - Update

 

Field changes to "In Progress"

 

And the requirement is to trigger a workflow. In advanced I have the following lines:

 

var wflw = new Workflow();
wflw.startFlow(wflw.getWorkflowFromName('workflow name'), current, 'update');

 

Other than the filed specified in the filter condition (trigger condition), every other columns of the "current" and "previous" are same. (I printed all the table columns in the log using the current and previous objects).

 

I want to pass the updated record (during the update of the record couple of other fields also get updated other than the trigger field) and I am updated one column a(as trigger column) to ex: sync required to "In Progress" to trigger the same workflow for update to the table record.

 

Why the business rule is holding a record with only trigger field with new value and remaining fields with old values. I need to use the new values in the workflow.

 

Thanks in advance for your inputs.

 

 

5 REPLIES 5

Mark Manders
Mega Patron

Why call a workflow from a BR? Why not just make the trigger of the WF  'field = in progress'? 


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark