cancel
Showing results for 
Search instead for 
Did you mean: 

Update date in automation chain

delphine_
Star Contributor
Star Contributor

Hello,

I need update a date when I created and updated a doc. For that, we make this automation chain :
/>

Fetch > Context Document
Document > Update Property (value: @{Document["mydocumenttype:expiring_date"].clone()}; xpath: mydocumenttype:recall_expiring_data; save: true)
Scripting > Run Script (Document[ 'mydocumenttype:recall_expiring_data'].add(2,-Document["mydocumenttype:duree_preavis"]);)
Document > Save

It's ok for created a document but if I use this automation chain when document updated, it loop !

So I want create an other automation chain when document updated which :
/>

  • test if Document['mydocumenttype:recall_expiring_data'] != Document['mydocumenttype:expiring_data'].add(2,-Document["mydocumenttype:duree_preavis"]
  • if different then I update "recall_expiring_data" with Document[ 'mydocumenttype:recall_expiring_data'] = Document['mydocumenttype:expiring_data'].add(2,-Document["mydocumenttype:duree_preavis"]);)

What is the syntax for this test ?

Thanks in advance !

1 ACCEPTED ANSWER
4 REPLIES 4

Hello

Hello Delphine, you're right, this operation is not provided anymore but as you can see there's a Run Chain operation. Maybe you can use separated chains and call one or the other with the ternary operator ?

Thank you !!!

Getting started

Attention: Blogs & Forums are in READ-ONLY mode from Oct 9-19 as we transition to our new platform. Learn more.

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.