Hi @arkiboys ,
Thank you for posting query on Microsoft Q&A Platform.
Parameters will not accept expressions as default value. So with parameter you cannot achieve getting current datetime as default value using
utcnow()
function.You can consider having a variable for this requirement. For variable you can pass
@{utcnow()}
as default value that will set current date time vaule in that variable.
In below example, I created two variables "currentDateTimeVar" & "var2". I am setting default value for "currentDateTimeVar" as @{utcnow()}
.
Now, using set variable activity I am trying to pass value of "currentDateTimeVar" in to "var2". This will help me to know @{utcnow()}
function actually storing value in to "currentDateTimeVar" variable or not.
Hope this will help. Please let us know if any further queries.
- Please don't forget to click on
or upvote
button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
- Want a reminder to come back and check responses? Here is how to subscribe to a notification
- If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators