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

Update list Expiry in advanced tab (list creation)

Avatar

Level 1

Is there a way to update list Expiry when doing list update activity? Something like below:

list-update.png

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @michael299 ,

You can set expiry date by using Update data activity next to List Update.

Please refer this Solved thread to know about the set up.

View solution in original post

5 Replies

Avatar

Correct answer by
Community Advisor

Hi @michael299 ,

You can set expiry date by using Update data activity next to List Update.

Please refer this Solved thread to know about the set up.

Avatar

Employee Advisor

Hi @michael299 ,

This is a manual property which you have to set this for each list.

If you are looking if this can be dynamically set up via the expiry date from the workflow as part of the list update, you can try to query the list after it’s creation and set the expiry date then.

Avatar

Community Advisor

Hello @michael299,

 

You have to put a JS activitie after the list update activitie and use this code :

var groupId = vars.groupId
var datePlusThreeMonths = new Date();
datePlusThreeMonths.setMonth(datePlusThreeMonths.getMonth() + 3);
datePlusThreeMonths = formatDate(datePlusThreeMonths,'%4Y-%2M-%2D');
var xmlqueryX = new XML (<group xtkschema="nms:group" _key="@id" _operation="update"  expirationDate={datePlusThreeMonths} id={groupId}/>);
xtk.session.Write(xmlqueryX);

 

Br,

Amine

Avatar

Level 2

1. You can store it in an instance variable first in JS Script or In the Advanced Tab of any activity

2. Set the label using the instance variable.

3. Set the expiration date using an Update Data activity

4.You can call the declared instance variable in Update Data activity

Avatar

Administrator

Hi @michael299,

Were you able to resolve this query with the help of the given solutions or do you still need more help here? Do let us know. In case the given solutions were helpful, then kindly choose the one that helped you the most as the 'Correct Reply'.
Thanks!



Sukrity Wadhwa