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
Super User

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 blog
Power 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 blog
Power Automate Video Tutorials

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

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