cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

When MS Form submitted updates existing SharePoint list with responses. (Specifically Yes or No responses update with a value)

 
 
 

Hi, I've successfully tested the workflow using only Dynamic response selections in the List fields of the flow, but need help with the Expression if the choice for Yes is selected to indicate they want to Obsolete as I want that response to update the SharePoint list to the choice Obsolete.

 

if(equals(outputs('Get_response_details')?['body/ra9c13a24f4884ad3be0a8d353822219c'],'Yes'),'Obsolete')

if(outputs('Get_response_details')?['body/ra9c13a24f4884ad3be0a8d353822219c'],'Obsolete')

I think I've even tried true instead of Yes at some point without success.

Also, found a solution for another post where I tried to insert a Filter array just before the Update Item action.

 

I even attended the Power Platform conference yesterday in hopes I would learn enough to resolve this issue. There was nothing really detailed for writing expressions that helped me with this workflow, but it did give me the courage to reach out to the community and those with the experience to help me work through this workflow.

 

If anyone has some detailed instructions or a link or solution it would be greatly appreciated.

Thanks!

 

Also, Is there a trick to providing images in a post? I get an error when I try to paste a Snagit image of the workflow screen detail.

2 REPLIES 2

Hi @Anonymous 

 

The expression: 

if(equals(outputs('Get_response_details')?['body/ra9c13a24f4884ad3be0a8d353822219c'],'Yes'),'Obsolete') should work fine. Are you seeing any errors? 

 

You can save the screenshot on your machine as an image and upload by clicking the camera icon: 

erw.PNG

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Anonymous
Not applicable

Hi, yes I do get an error.

"Unable to process template language expressions in action 'Update_item_2' inputs at line '1' and column '21152': 'The template language function 'if' expects three parameter: the condition to test as the first parameter, the value to return if the condition is true as the second parameter, and the value to return if the condition is false as the third parameter. The function was invoked with '2' parameter(s). Please see https://aka.ms/logicexpressions#if for usage details.'."

 

It appears the expression is expecting to see something when it is False (Response=No), but I do not want it to update the List/ field if the Form Response is No.

Is there another expression condition that would be better to use? If there is no change in the current item status of Active or New I do not want to update this choice column.

 

I only want it to update SharePoint column if the Form response is Yes to make it "Obsolete"

I could possibly manipulate this question to make this one work, but have several other similar yes or no questions that will need the same type of condition applied once I get this one to work.

Thanks,

 

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 (1,619)