Skip to main content
Level 3
Sep 27, 2020 8:30 AM UTC
Solved

How to get offer title and textcontent in Javascript Activiy?

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.
Jonathon_wodnicki
Jonathon_wodnickiAccepted solution
Community Advisor
Oct 7, 2020 11:10 PM UTC

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
Oct 7, 2020 11:10 PM UTC

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

Translate