How to add a year to when a document is uploaded

0
Hey all,  My question is i have risk assessment documents that get uploaded to the database. This works as i use [%CurrentDateTime%] to know when the risk assessment has been uploaded. However this need to be reviewed every year. How do i set it to add one year to every document i upload to fulfil the Next review attribute. I currently have 2 attribute 1. orginal upload (which uses as above) and 2. Next review (which i want to be a year from original upload) .    Maybe using a microflow but not sure how to edit this as is the attribute considered a object ?     
asked
1 answers
1

Take a look at the addYears function.

https://docs.mendix.com/refguide/add-date-function-calls/#10-addyearsutc

You can set your next review attribute using something like

 

addYears([%CurrentDateTime%], 1)

 

answered