How to get offer title and textcontent in Javascript Activiy? | Community
Skip to main content
Level 3
September 27, 2020
Solved

How to get offer title and textcontent in Javascript Activiy?

  • September 27, 2020
  • 1 reply
  • 3108 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Jonathon_wodnicki

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

1 reply

Jonathon_wodnicki
Community Advisor
Jonathon_wodnickiCommunity AdvisorAccepted solution
Community Advisor
October 7, 2020

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