I currently have a workflow where I need to get the current day of the week (Mon,Tue,Wed etc), so that I am able to add the correct amount of business days before the workflow auto approves.
I was previously using an API to retrieve this, but it seems that API stopped working. I would prefer to use an in house Nintex function, and wondered if this was possible?
Thanks for your help!
Solved! Go to Solution.
Hi @butlerj , thanks for replying!
I am trying to get this data within the workflow.
I get the day of the week, previously using the API, and then depending which day of the week it is, add on days for the auto approval process. The DueDate is sent to another workflow.
@JimOw Yeah so you can do this with a combination of two actions within your workflow. The first action will be the Format date to string action, and you will use the following configuration to get the current date (from your Context variables) with the day name:
After that you can use the Regular expression action to then parse off just the name of the day into it's own variable with the following configuration:
I used the following regex expression, but you might be able to come up with something better: ^([^,]*)
Hope that helps!