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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

How to get offer title and textcontent in Javascript Activiy?

yueminspb
Level 3
Level 3

Hi Teams,

We have defined some Campaign Offers, but we want to get the title and text content of a offer in the javaScript activity node during a workflow. Please show me how to do this, thanks very much

1 Accepted Solution
Jonathon_wodnicki
Correct answer by
Community Advisor
Community Advisor

Hi,

 

Those are tricky, since they're in the data field. I tried adding them to target table without much luck.

Since you're in JS anyway, you can collate all the offer ID's from the target table and make a separate query in JS to exchange for titles and contents. Fields are:

  • Title: [view/shortContent]
  • Text content: [view/textSource]

 

Thanks,

-Jon

View solution in original post

1 Reply
Jonathon_wodnicki
Correct answer by
Community Advisor
Community Advisor

Hi,

 

Those are tricky, since they're in the data field. I tried adding them to target table without much luck.

Since you're in JS anyway, you can collate all the offer ID's from the target table and make a separate query in JS to exchange for titles and contents. Fields are:

  • Title: [view/shortContent]
  • Text content: [view/textSource]

 

Thanks,

-Jon

View solution in original post