Hi All, hope all's well. I'm in need of your amazing workflow talents again.
I have created a workflow thanks to @jesse_mchargue 's post regarding collections (Thanks Jesse).
However, I have reached an issue I cannot seem to solve. My workflow works as follows:
1 - Query XML from a Multi Line repeating section column on the list and pull back the following:
-ActionOwner
-Action
-ActionDate
2 - I then use Jesse's guidance to do a "For Each - Action" loop and then nest three collection operations to get the aforementioned data in to three collection variables (aptly named colActionOwner, colAction and, yep you guess it, colActionDate).
3 - I store the collection data in to Text variables (same name as above but with txt infront of their name instead of "col").
Now this is where the issue I'm suffering occurs.
The txtActionDate variables look like this: "MM/dd/yyyy 00:00:00"
I use Regex to remove the Hours, Minutes and seconds so i'm left with "MM/dd/yyyy" but further downstream, where I have a "Create Item" operation that creates new list items based on the "txtAction" and "txtActionOwner" variables, when I try to parse this date in to this new list (in to a date column called "Complete action by") it errors.
I've read various posts on this forum with people explaining either using a "Convert" operator to transpose the date alternatively building strings using "fn_FormatDate({variable}, "dd/mm/yyyy")" but unfortunately, nothing seems to be working for me. Whilst I'm sure it's down to me not comprehending something, I wondered if you have any suggestions or gold nuggets on this forum that might help me?
I think the issue has something to do with the format the date is in when I try to create the new item but I would welcome any advice you guys may be able to offer up?
Error parsing value. Value '01/24/2020 ' does not match the provided date format 'dd/MM/yyyy'.

Any information needed, please let me know.
Thanks
Sean




