I am trying to build a workflow with trigger as “Identity Created”, currently we have one static “startDate” attribute and we have "actualStartDate" attribute which displays the currentdate and we have done this by using trasform with expression as now.
I see that startDate of the user will have to refresh and only when the refresh happens correctly at actualStartdate value, this workflow is gets triggered. So is the system not able to handle this condition? Is there any other workaround for this?
Could you please help me with this issue and suggest me more information about the same?
Could you kindly provide more details regarding your use case? It would be helpful to understand the specific objectives you are aiming to achieve and the challenges you are currently encountering.
If I understand your requirement correctly, you are looking to execute the workflow only when user Start Date = Today (now). If that is correct, the Identity Attribute Created trigger may not work as expected because it is fired on the date the identity record is created in IDN, it may or may not be the same day as today.
One of the options you can try is using a Scheduled Trigger which will fire everyday. You can then find the list of identities that have start date as today and then process them in a loop.
Hi @atarodia I want workflow to be triggered based on startDate.
Suppose if identities are created today and their startDate is set to some future date.
I need workflow to be triggered on that startDate.
Thank you so much for suggesting me, but I still have this question on “actualStartdate” attribute which is calculated from “now” expression, that for example
my startDate attribute value is “2023-07-18T17:44:29.072695Z” of identity1 and
my actualStartdate attribute value is “2023-07-18T08:12:40.967933Z” (got this value from the below transform)
However for the conditions (actualStartdate == startDate) to match “actualStartdate” attribute value should be same as “startDate” attribute value even the seconds of time should match. But actualStartdate value will be updated to new current time only when refresh happens on the identity profile and if refresh happens on the same time as startDate both attribute matches. How to proceed with this?
With now I am getting current date value as “2023-07-17T09:41:42.715970Z”
With now/d I am getting value as “2023-07-18”
Is there something I need to be aware of?
If you are doing now/d in a transform and optional attribute roundUp is true, then you will see that date will be rounded up to next date. If you remove the roundUp flag from your transform or set the flag roundUp be false, then you will see the output as 2023-07-17