web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Update Salesforce reco...
Power Automate
Unanswered

Update Salesforce record when Sharepoint Item is modified

(0) ShareShare
ReportReport
Posted on by 19

Hello! I have 2 flows I'm working with to populate data from Salesforce to SharePoint when an emergency service case is entered and then write the other data back into Salesforce. 

 

Flow #1- When an emergency case created in Salesforce, a new item is created in a SharePoint List. This flow works as expected and the list item is created and email notifications are sent out to the respective parties.

 

Flow #2  and where I'm struggling - When a certain column in the SharePoint list from flow 1 is modified, I want to then "write" that updated data back into the associated Salesforce case. My flow is writing the data back into Salesforce, but not just to the case associated with the updated item. It's writing it back to ALL open cases. 

 

Each Salesforce Case has a case number that's auto associated with it upon creation. I also have this case number populating to my SharePoint list so I could use it in a condition action in my flow to compare the case number of the updated list item to the case number in Salesforce. I thought this would work to update only the case that matched the one updated in the list, but it did not work since it's updating ALL cases. 

 

nDaniel_0-1713876945517.png

 

 

 

 

 

Categories:
I have the same question (0)
  • Verified answer
    nDaniel Profile Picture
    19 on at
    Re: Update Salesforce record when Sharepoint Item is modified

    ****UPDATE**** 

     

    In case anyone else has this issue, through trial and error, I was able to resolve it by simply moving the "Send to Salesforce" action out of the for each "bucket". I'm not sure why Power Automate automatically added a for each to that action, but that was what was causing my issue. Now ONLY the associated case in Salesforce is being updated instead of all of them. 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard