Hi all,
I'm new to this power automate thing so take it easy on me as i'm still learning.
So, i have an API call for a form response and i'm trying to wrap all that dynamic response into an Apply to each to create the response in SharePoint, but can't get that working, also i'm getting a format issue with 2 of the fields coming through
1 filed is a Date field and the other is a phone number, the phone number can typed in various ways when the from is getting filled out.
for the Date field/parameter I tried to use this (formatDateTime(triggerOutputs()?['body/DateOfBirth'], 'MMMM/dd/yyyy')) in the create item flow.
The phone number I'm not sure what format to use because sometimes there're spaces in the numbers and other times all the numbers are together.
see below for what I have tried currently and the response/error message I'm getting.
The flow saves fine but, then when i test it, i get the below from the apply to each
{
"foreachItems": [
{
"Form ID": "111122",
"Form Name": "Test Form",
"Response ID": "21002279",
"Response Timestamp": "2024-11-29 14:49:58",
"Given Name": "test",
"Family Name": "test",
"Date of Birth": "01/06/2001",
"Your Postcode": "0000",
"Phone Number": "000 111 0000",
"Email address if you prefer": "test@test.com",
"Preferred Language": "English",
"Questions or Comments": "TESTING",
"Privacy Policy Consent": "Yes"
}
]
}
Thanks in advance for your help.