Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Can use JavaScript to set an expiration date for list updates?

uz2020
Level 2
Level 2

Hello.

 

Can use JavaScript to set an expiration date for list update activity?

 

I want to set when updating the workflow list without using Explorer.

 

Thank you.

 

1 Accepted Solution
Deb007
Correct answer by
Level 5
Level 5

Hi,

You can use the update data activity after the list creation to set the expiry date.

In case you want to have a computed label for your List,

1.you can store it in a instance variable first

2. set the label using instance variable.

3. set expiry date using a update data activity as per the following.

Debabrata_T_0-1614281183050.png

 

Thanks,

Deb

View solution in original post

9 Replies
DavidKangni
Community Advisor
Community Advisor

Yes You can set this up. Just create a workflow that read list table and select list without expiration date and update them with a data update activity.

Thanks,

David

uz2020
Level 2
Level 2

@DavidKangniThank you for your reply. Does that mean selecting "Delete" for "Record identification"? I want to delete unnecessary lists after the scheduled time. Thank you.

DavidKangni
Community Advisor
Community Advisor

@uz2020

if you set up the expiration date, list will be automatically purge after the expiration date. Cleanup workflow will do it.

No need to set up a workflow for that

Thanks,

David

uz2020
Level 2
Level 2

@DavidKangniThank you for your reply. My perception may be wrong or my explanation may be wrong. I want to set the expiration date of a list in a workflow, is that possible? Thanks.

Deb007
Correct answer by
Level 5
Level 5

Hi,

You can use the update data activity after the list creation to set the expiry date.

In case you want to have a computed label for your List,

1.you can store it in a instance variable first

2. set the label using instance variable.

3. set expiry date using a update data activity as per the following.

Debabrata_T_0-1614281183050.png

 

Thanks,

Deb

View solution in original post

uz2020
Level 2
Level 2
@Deb007 Thank you for your reply! Sorry for the late confirmation. What is a "list calculation label"? Is it the "Internal Name" of list? Thank you.
uz2020
Level 2
Level 2

@Deb007  Append:Is it the "Internal Name" of list? or If "explicitly specified" instead of "Create the list if necessary (comouted name)", does the identifer contain the list name? Thank you.

Deb007
Level 5
Level 5

Hi,

It was about the following. Not the internal Name but the computed label.

Deb121_0-1614676742148.png

 

uz2020
Level 2
Level 2
@Deb007 Thank you for your reply! I was able to set the expiration date. Thank you!