Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

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

Avatar

Avatar
Level 1
srajvenkat
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
View profile

Avatar
Level 1
srajvenkat
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
View profile
srajvenkat
Level 1

25-08-2020

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 @interaction 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!

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Contributor
MVP
wodnicki
MVP

Likes

932 likes

Total Posts

1,061 posts

Correct Reply

495 solutions
Top badges earned
Contributor
Shape 1
Give Back 100
Give Back 50
Give Back 25
View profile

Avatar
Contributor
MVP
wodnicki
MVP

Likes

932 likes

Total Posts

1,061 posts

Correct Reply

495 solutions
Top badges earned
Contributor
Shape 1
Give Back 100
Give Back 50
Give Back 25
View profile
wodnicki
MVP

03-09-2020

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

 

Answers (0)