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 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.

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.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Users online (1,897)