Can you tell me a way to add X days based on the current date using STATIC transform?
We have a scenario where the number of days a user can keep their account active will be filled out via a form. After filling it out, I need to get the current date and add up the days the user filled out on the form.
This is not possible using Date Math, because the expression variable only accepts the mocked number.
The requester will request a role, this role will trigger a workflow that sends the form to the requester. This form is responsible for collecting data that another workflow will later be responsible for creating an account in a csv source.
There is a field in the form that stores the number of days that the user can keep the account. Maximum of 30 days.
If the requester fills in 5 days, for example, I need to take the current date when the account was created in the source and add another 5 days. With this, I will have an expiration date.
Assuming you are using Form Submitted Workflow trigger to capture the input of the form. You can use define variable operator and in that you can use $.now() to get the current date and in the same variable you can add operation as Add time. It’ll look something like this:
And this account that the workflow will create in a csv source is linked to an identity profile. In other words, the accounts that are being created via workflow will later become identities in Sailpoint.
The problem is that “Add Time” only accepts numbers. And when I pass my field that stores the number of dates, it can’t do the sum. Returning the following error: