Skip to main content
Aug 25, 2020 11:43 PM UTC
Solved

JS API to read all the filters/conditions used in Campaign from workflow

Hello team,

 

In one of our project we're using interaction schema to provide data dynamically in SOAP request `<context></context>`. Is there a Javascript API to read all the filters/conditions used in the campaign, the idea is to find all the @2314129 fields used in the campaign?

 

My use case is like this, a workflow will be triggered to read the filters/conditions used in the campaign, if there are any interaction filters/conditions used, then collect all the fields and send it External Rest API call.

 

Any recommendation/feedback or alternate approach is welcome.

 

Thanks in Advance!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Jonathon_wodnicki
Jonathon_wodnickiAccepted solution
Community Advisor
Sep 3, 2020 5:24 PM UTC

Hi,

 

Easiest way is to iterate over the workflows in the campaign, parsing each's data field with new XML() and spooling the conditions with an xpath selector.

 

Thanks,

-Jon

 

1 reply

Jonathon_wodnicki
Community Advisor
Jonathon_wodnickiCommunity AdvisorAccepted solution
Community Advisor
Sep 3, 2020 5:24 PM UTC

Hi,

 

Easiest way is to iterate over the workflows in the campaign, parsing each's data field with new XML() and spooling the conditions with an xpath selector.

 

Thanks,

-Jon

 

Translate