cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sudosaurus
Post Prodigy
Post Prodigy

MS Forms Yes/No choice value to SharePoint list

Hello,

 

I have built a flow that takes the values from MS Forms and puts them into a SharePoint list.

 

Whilst I've mapped across all the fields to columns, I am encountering this error:

 

OpenApiOperationParameterTypeConversionFailed. The 'inputs.parameters' of workflow operation 'Create_item' of type 'OpenApiConnection' is not valid. Error details: Input parameter 'item/S1Q3' is required to be of type 'Boolean'. The runtime value '"No"' to be converted doesn't have the expected format 'Boolean'.

 

My flow steps:

 

sudosaurus_0-1636731524470.png


The JSON is just getting the displayName, jobTitle, directorate and employeeId values from the user profile and formatting these for SharePoint list. 

sudosaurus_1-1636731644764.png

 

It's on the S1Q1 Value that it is falling over on. Whilst Yes or No is selected, this is not going to the SharePoint list even though I have a column with the same choice values.

sudosaurus_2-1636731730902.png

Any ideas?

 

Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions
Pstork1
Dual Super User
Dual Super User

Use an IF() statement to cast the "Yes" value from the form to true otherwise false.  Like this

if(equals(outputs('Get_response_details')?['body/GUID from form question'],'Yes'),true,false)


-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Join me at 365EduCon in Chicago on Sept. 26-30 where I'll be presenting on the Power Platform!

View solution in original post

7 REPLIES 7
Pstork1
Dual Super User
Dual Super User

Use an IF() statement to cast the "Yes" value from the form to true otherwise false.  Like this

if(equals(outputs('Get_response_details')?['body/GUID from form question'],'Yes'),true,false)


-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Join me at 365EduCon in Chicago on Sept. 26-30 where I'll be presenting on the Power Platform!

@Pstork1 will the SP list column need to have its values changed from yes to true and no to false likewise or will they just update as is?

Replace the dynamic content you are using in the create Item action.  That will provide the SharePoint list with the right data type.  When displayed inside SharePoint it will show as a Yes/No value.  But it is stored as a boolean true/false.  You don't need to change the list, just change the way you are submitting the value.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Join me at 365EduCon in Chicago on Sept. 26-30 where I'll be presenting on the Power Platform!
sudosaurus
Post Prodigy
Post Prodigy

Hi @Pstork1 

 

The data is now coming through but with True/False values rather than yes:

 

sudosaurus_0-1636733226297.png

 

I thought it was a Yes/No column in SharePoint, not a Choice column.  Use the same code but change the true to 'Yes' and the false to 'No'



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Join me at 365EduCon in Chicago on Sept. 26-30 where I'll be presenting on the Power Platform!
sudosaurus
Post Prodigy
Post Prodigy

@Pstork1 I've changed it back to a Yes/No column as that seems to work better. 

 

I noticed on the columns where "Yes" is chosen, this shows a check in the list however on the "No" value, nothing is shown. I was expecting to see a No value with an X mark.

sudosaurus
Post Prodigy
Post Prodigy

@Pstork1 nevermind - column formatting! ignore me 😕

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (3,555)