Expand my Community achievements bar.

Comparing New State values vs Old State values

Avatar

Level 2

Hi,

I have 2 questions.

 

1. I have a Fusion Scenario that starts with an Adobe Workfront Watch Event that triggers every time a form is updated on an Issue.
    I'm trying to compare the New State values and Old State values and then get a list of the fields that were changed.

 

2.  I'm also trying to use the Adobe Workfront Custom API module to get the fields on a form that is attached to an Issue that contains a specific string.

     For instance, I have multiple fields with names like:

     'Marketing Distribution - Amazon'

     'Marketing Distribution - DirecTV'

     'Marketing Distribution - Google'

     ..............

     I want to use the Custom API call to get all fields that contain 'Marketing Distribution'.

 

thanks for the help,

Kelly

1 Reply

Avatar

Level 3

Hi @Kelly_StarzEnt 

 

  1. you'll need to do the compare after the event handler: For example a setMultipleVariables module where you set "hasFieldX changed" to newState.fieldX = oldState.fieldX. Then you can set filters/routes based on which checks show the field(s) changed. 

  2. In your custom API call, add query string arguments
    • fields: *
    • name=Marketing Dsitribution -
    • name_Mod=cicontains