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 pass List as parameter using Javascript

Avatar

Level 1

Hi,

I have a requirement to load a audience list from a campaign workflow and share it with customer service group. The tricky part is that this list needs to be pulled and shared prior to actual email is triggerred.

 

I tried to export the audience list in a list. Now I am trying to pass this list to another export workflow using xtk.workflow.PostEvent and External Signal activity, but now I am struggling with the appropriate syntax and activities I need to use.

 

If anyone have any experience with the technical functionality and can provide guideline it will be very much helpful...

 

Thank in advance...

 

Kind regards,

Dipankar Basu

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi Dipankar,
 
You can achieve above functionality using below components as well.
1) Save your list in a list for your reference, if needed.
2) Use 'data Extraction' activity after list save and select all the the columns you want to export.
3) Use 'File Transfer' activity and specify the WinSCP folder path, place from where customer can pick the files.
4) You can keep wait activity, assuming customer provides approval within 3-4 hours. after waiting for that time your next activity i.e email will be triggered.
Your workflow will look like:
 extract column.PNG
 
 Or you can pass variable like:
Below is the syntax you can use to pass a list of variables in your PostEvent JavaScript function -
xtk.workflow.PostEvent("<workflow name>", "<externalsignal name>", "", "listName='xyz'", false);
Same variable will be read in workflow as: $(vars/@listName)
 
Thanks,
Jyoti

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Hi Dipankar,
 
You can achieve above functionality using below components as well.
1) Save your list in a list for your reference, if needed.
2) Use 'data Extraction' activity after list save and select all the the columns you want to export.
3) Use 'File Transfer' activity and specify the WinSCP folder path, place from where customer can pick the files.
4) You can keep wait activity, assuming customer provides approval within 3-4 hours. after waiting for that time your next activity i.e email will be triggered.
Your workflow will look like:
 extract column.PNG
 
 Or you can pass variable like:
Below is the syntax you can use to pass a list of variables in your PostEvent JavaScript function -
xtk.workflow.PostEvent("<workflow name>", "<externalsignal name>", "", "listName='xyz'", false);
Same variable will be read in workflow as: $(vars/@listName)
 
Thanks,
Jyoti