Expand my Community achievements bar.

Fusion - See old state custom forms and new state custom forms

Avatar

Level 2

I am building a Fusion scenario that will create an audit log for our document custom forms. I have everything setup except for when the custom form is removed. I need to be able to see all the old state custom form IDs and the all the new state custom form IDs.

 

I am using a Watch Events webhook that is watching for updates to documents. We have several custom forms on our documents so the category ID field that is pulled on that module is only pulling the ID of the first custom form added. I used a custom API call and an iterator to pull all custom form IDs into one string. That works but only for the new state. If you pull the oldState:ID into the URL field, it is still the same ID so it will return the new state custom forms. 

 

Does anyone have any ideas for how to pull the old state and new state custom form IDs?

1 Reply

Avatar

Level 6

Hi @maura-k 

The event module doesn't bring the "categories" collection, so you can't do this. 
The only way to do this is to have a field on each custom form that always has a value. Then when oldState has a value and newState doesn't you know the form was removed. 

 

Easiest is to use a calculated field, e.g. DE:hasFormA and set it to a string "true"