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 :
Customer experience | Sales, Customer Insights,...
Suggested answer

How to find the Parent site or location ID for the document location for Dynamic 365 and SharePoint integration.

(0) ShareShare
ReportReport
Posted on by

Our client wants the SharePoint folder be automatically created when the Account is add in CRM 365 without Clicking "File" in Dynamic CRM tool bar.   By using Flow, I am able to do it. I added document location record for this new account, so it can be associated with SharePoint location. 

The client need auto create folder for opportunity. The issue is I cannot get this the Parent Site or Location ID for the new opportunity related to the Account. The location for Opportunity will be Account/[Account Name]/Opportunity/[OpportunityName],  For Account the  Parent location ID is static, so I can find it. but Opportunity Location is dynamic. 

d365_2D00_1.png

How can I find the parent location ID for new opportunity which is for Account/[Account Name]/Opportunity/[OpportunityName], so I can create a record for it. 

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at
    RE: How to find the Parent site or location ID for the document location for Dynamic 365 and SharePoint integration.

    Any suggestion? Thanks

  • Suggested answer
    JayBuddhdevtest Profile Picture
    275 on at
    RE: How to find the Parent site or location ID for the document location for Dynamic 365 and SharePoint integration.

    Hi,

    You will have to use List record step in between and get the Parent location ID from the above step. I have done similar approach to transfer document location from one URL to another. The only difference between my requirement and your requirement would be the change in Absolute and relative URL.

    Here is a screenshot of the List records step from my flow. This will be same in your case as well:

    pastedimage1594227820019v1.png

    Now the next step is to create the new document location. Keep your relative url as you need it, but you can use your parent location from the above step. Here is a screenshot of my flow:

    pastedimage1594227899448v2.png

    I hope this helps. Please let me know if you have any questions/concerns.

    Thanks

    Jay

  • Community Member Profile Picture
    on at
    RE: How to find the Parent site or location ID for the document location for Dynamic 365 and SharePoint integration.

    Thanks, Jay

  • JayBuddhdevtest Profile Picture
    275 on at
    RE: How to find the Parent site or location ID for the document location for Dynamic 365 and SharePoint integration.

    Hi,

    If my answer helped you solve your problem, please mark it as verified for the other community users to understand the solution of this problem.

    Thanks

    Jay

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 117 Super User 2025 Season 2

#2
MVP-Daniyal Khaleel Profile Picture

MVP-Daniyal Khaleel 115

#3
Erin Lubben Profile Picture

Erin Lubben 66

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans