I am using flow select action under which I have a field called 'completiondate' that is populated for some rows in sp list and not for some rows. So it works well but now I have a requirement to update the date format to mm/dd/yyyy so when using formatdatetime(item()?['CompletionDate'],'MM/dd/yyyy') as expression , it fails and says supplied value were null and it makes sense because some rows do not have completiondate populated.
can someone help me with a fix here, so if date is returned null then leave it null, if populated then update it with format mm/dd/yyyy for select action expression, please help, thanks in advance.
Solved! Go to Solution.
Have you tried to use a Condition action in Flow to verify the date before applying the formate date expression?
Encapsulating this condition inside an Apply to each, could help identify if the completiondate field is getting populated or not, before attempting to formate the date.
Let me know if this helped!
I think you can achieve this by including a condition that checks on the date prior to updating the format, if the date exists then you can modify the format, in the other branch of the condition you can indicate date as null.
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Announcing a new way to share your feedback with the Power Automate Team.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
The Super User program for 2022- Season 2 has kicked off!