I`m new to ISC and i`m trying to dinamically send the date that an account is created (Create Account/Provisioning Policy of the source) on an integrated system, trying to achieve this without using cloud rules, only static values or simple velocity scripts or transforms, how can this be achieved and is it possible?
The format has to be yyyy-MM-dd
I have tried alternatives using the static option on the form and the scripts below, but they don’t seem to work.
I would suggest to create a new identity attribute to store this identity attribute. That will allow you to enable attribute sync for this attribute as well.
You can also achieve it using transforms in create/update provisioning policy by changing the date format to YYYY-MM-DD while provisioning, but then this means that this provisioning policy will trigger every time even when some other attribute is being updated and will lead to too many unwanted events.
So in my view creating an identity attribute should do the trick, if not then you can choose to create a transform in Create provisioning policy and there you can change the date format to desired format.
What you’re trying with Static and Velocity won’t work for current date generation in ISC.
In provisioning policies, the Velocity context is very limited:
No dateTool
No java.util.Date instantiation
No built-in $currentDate
$created isn’t available unless explicitly passed
So all those attempts will silently fail or return empty.