Is there a way to update list Expiry when doing list update activity? Something like below:
Solved! Go to Solution.
Views
Replies
Total Likes
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.
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.
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.
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
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
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!
Views
Replies
Total Likes
Views
Likes
Replies