Expand my Community achievements bar.

Announcing the launch of new sub-community for Campaign Web UI to cater specifically to the needs of Campaign Web UI users!
SOLVED

How to get offer title and textcontent in Javascript Activiy?

Avatar

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

Avatar

Correct answer by
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

Avatar

Correct answer by
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