cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
anthony-gb-lm
New Member

Sharepoint move folder issue

I have a Salesforce application which is creating folders inside of sharpoint. The SF application can't handle the logic that I need to sort the folders, but if I manually move the folders then it picks up the correct folder.

In power automate, I am trying to automate the sorting of these folders (into alphabetized folders) using the 'move sharepoint folder' action. When I do that, the sharepoint item ID changes and my salesforce application that created the folder breaks because it can't find the correct folder by ID. It seems like Power Automate is making a copy/delete action instead of just moving the folder.

I could solve this issue by updating the folder ID in Salesforce, but I can't get the correct ID back from power automate (I believe it is the ID from the GraphAPI), is there any way to get this ID of the moved folder into Power Automate, so that I can pass it back to the Salesforce record? https://prnt.sc/11vv5ca  (https://docs.microsoft.com/en-us/graph/api/driveitem-get?view=graph-rest-1.0&tabs=http)

3 REPLIES 3
abm
Super User III
Super User III

Hi @anthony-gb-lm 

 

Did you tried getting the id from the next step. Please see below.

 

image.png



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blogPower Automate Video Tutorials
anthony-gb-lm
New Member

@abm unfortunately that's not the ID I need - I think I might have to make an API call to fetch it using Graph API - really frustrating!

I need this 32 digit ID 

https://docs.microsoft.com/en-us/graph/api/driveitem-get?view=graph-rest-1.0&tabs=http

Hi @anthony-gb-lm 

 

Thanks for your reply. Try List Folder and see the run history. There is an ETag Id there. Not sure that is what you are after?



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blogPower Automate Video Tutorials

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (1,588)