Skip to main content
ene 25, 2023 2:23 p. m. UTC
Resuelto

Update list Expiry in advanced tab (list creation)

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

Este tema ha sido cerrado para respuestas.
ParthaSarathy
ParthaSarathyRespuesta
Community Advisor
ene 25, 2023 3:00 p. m. UTC

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.

~  ParthaSarathy S

5 respuestas

ParthaSarathy
Community Advisor
ParthaSarathyCommunity AdvisorRespuesta
Community Advisor
ene 25, 2023 3:00 p. m. UTC

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.

Traducir
~  ParthaSarathy S
akshaaga
Adobe Employee
Adobe Employee
ene 25, 2023 7:25 p. m. UTC

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.

Traducir
Amine_Abedour
Community Advisor and User Group Leader
Community Advisor and User Group Leader
ene 26, 2023 10:30 a. m. UTC

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

Traducir
Amine ABEDOUR
Ganesh5067
Level 2
ene 27, 2023 8:24 p. m. UTC

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

Traducir
Sukrity_Wadhwa
Level 4
feb 9, 2023 9:04 a. m. UTC

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!

Traducir
Sukrity Wadhwa