cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Raou
Frequent Visitor

Updating a column in a sharepoint list using Flow

Hello community;

 

I have 2 columns in my sharepoint called "Agree" and "disagree" and I am creating a Flow to update/increment the columns anytime a user click on "Agree' or "disagree" Buttons in Powerapps.

 

I tried to put this function. "add(TriggerBody()?['Agree'],1)" for Agree and "add(TriggerBody()?['Disagree'],1)"

Flow 1.PNGFlow.PNG

 

However I am getting error.

 

Any idea how to make this work.

 

Thank you.

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-xida-msft
Community Support
Community Support

Hi @Raou ,

Regarding the screenshot you mentioned, I think there is something wrong with the value provided in Agree field and Disagree field in your "Update item" action.

 

I assume that the Agree field and Disagree field are both Number type field in your SP List, you should provide a valid number value for the Agree field and Disagree field in your "Update item" action, but you remain a '0' before the add(...) expression in Agree field and Disagree field.

 

On your side, please remove the '0' before the add(...) expression in Agree field and Disagree field of your "Update item" action.

5.JPG

then save your flow, then try it again, check if the issue is solved.

 

Regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
eka24
Super User
Super User

This is a Power Automate question. Kindly post it on the Power Automate community your solution.

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

v-xida-msft
Community Support
Community Support

Hi @Raou ,

Regarding the screenshot you mentioned, I think there is something wrong with the value provided in Agree field and Disagree field in your "Update item" action.

 

I assume that the Agree field and Disagree field are both Number type field in your SP List, you should provide a valid number value for the Agree field and Disagree field in your "Update item" action, but you remain a '0' before the add(...) expression in Agree field and Disagree field.

 

On your side, please remove the '0' before the add(...) expression in Agree field and Disagree field of your "Update item" action.

5.JPG

then save your flow, then try it again, check if the issue is solved.

 

Regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Raou
Frequent Visitor

Hello @v-xida-msft 

 

Thank you for the feedback.

 

yes it works later after I removed the 0s.

 

However, I am facing an issue after that with an infinite loop.

when I click on the "Yes" or "No"  buttons in my PowerApps , the number in "Agree" or "Disagree" SharePoint columns keeps incrementing.

 

Could you please advise.

I want to make sure when a user clicks on the "Yes" or "No" button in my PowerApps, the number can only increases by 1.

 

Thank you.

 

 

Helpful resources

Announcements
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

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.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (4,792)