Showing results for 
Search instead for 
Did you mean: 
Helper I
Helper I

Adding a folder to a Sharepoint location for an opportunity in Dynamics

All I want to do is add a folder to the Sharepoint Document location when I create an opportunity.

If I try to just look up the location, I cannot seem to pick the right "item identifier".

I thought the actual Opportunity GUID would work.  But alas not.

Do I need to get something else before I can do this step.


Also if instead I go to Create a record, and again choose Document Location, I have many more options.

The only issue here is I cannot get the folder to show up under the opportunity record.   What should go in the "regarding url" field for an Opportunity?  Is it the topic?

Community Support
Community Support

Hi @colbournescott,


If you want to get the record of the dynamic entity, you should use the item identifier. 

Do you want to access a particular record or a record with a particular condition? If you want to get the record with a particular condition, you can use the List records action with the OData filter query - columnName eq "value".

Annotation 2019-10-07 092804.png


The issue gets the folder to show up under the opportunity record, do you mean to find the folder in SharePoint to store the record? 


Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

That is awesome thank you @v-litu-msft .

Sorry for asking another question.  Once I have listed the opportunity - which worked well thanks to your answer, I need to get the folder location or ID.

Can you please assist with what goes in here?

Dcoument location id.JPG

I cannot seem to work out how I get the document location.


Hi @colbournescott,


I do not quite understand your requirements, did you store data of opportunity in the Document Location entity to connect them, then you want to get the record of the Document Location which associated with the opportunity?

This is my Flow configuration according to my speculation:

ColumnName eq 'value' to find the associated record in Document Location.

Annotation 2019-10-10 134938.png

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Sorry if my process is not clear.

The steps are:

  1. Create an opportunity (this is the trigger for Flow)
  2. From this opportunity - get the Sharepoint location associated with it. i.e. "opp name"_"GUID of Opp" (from what I can tell this is not created automatically and I need to use the List records action)
  3. Copy a folder from Sharepoint to this Opportunity Sharepoint location

Here is what I have so far. 

flow opp sharepoint folder.JPG

It gives an error on the "copy folder" step regarding the destination folder not existing (Destination folder path not set).

But I do not think there is a folder being created in my flow.  I say this because when I run an advance find in Dynamics for the Document Location the folder does not exist.  Therefore my flow is not creating it.


Can you please help?

Helpful resources

UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Kudoed Authors
Users online (1,610)