Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Saving a document in a different entity were SharePoint Document is configured

(0) ShareShare
ReportReport
Posted on by 274

Hello,

I have two custom entities Intake and Profile, the requirement is when users complete their profile they can attach any document that will be saved in the Intake record for that particular record. I have a workflow that will create the intake record when a profile is submitted. I  have configured SP on both entity. How can I route the documents that are being uploaded in the profile form to be saved in the intake record?

I  appreciate the help.

Thank you!

 

 

*This post is locked for comments

  • MituCRMing Profile Picture
    274 on at
    RE: Saving a document in a different entity were SharePoint Document is configured

    Thank you Kokulan. I am following what you outlined.

  • Suggested answer
    Kokulan Profile Picture
    18,054 on at
    RE: Saving a document in a different entity were SharePoint Document is configured

    Hi

    Sorry your question tagged as for Online, thats why i suggested flow, for OnPrem you will have to do the following

    01. Create a Custom Workflow Activity - that uses CSOM / REST api to create a folder for the record created and also the document location record in CRM - You can create this as a Generic CWA (taking Record URL as input not Entity Reference)

    someshsiripuram.com/.../creating-sharepoint-folder-automatically-custom-plugin-code

    sharepoint.stackexchange.com/.../c-csom-create-folders-in-lists-programmatically

    02. Create a real-time workflow on Create of Profile and call the CWA to Create Folder and Document Location Record

    03. Create a real-time workflow On Create of Intake and get the path from Document Location record of Parent Profile and create a Document Location Record for intake pointing to the same sharepoint folder path

    Hope this helps

  • MituCRMing Profile Picture
    274 on at
    RE: Saving a document in a different entity were SharePoint Document is configured

    Thank you @Kokulan. Both articles are very helpful, however I am trying to implement this on premise where I don't have a connectivity to flow.

  • Suggested answer
    Kokulan Profile Picture
    18,054 on at
    RE: Saving a document in a different entity were SharePoint Document is configured

    Hi

    If you want a no code and flexible solution, i would recommend you create Flow to create document location for Profile and Intake.

    CRM only creates document location when the user clicks on Documents tab.

    If the user completed Profile but did not visit the documents tab and when the intake record is created, Profile wont still have the document location created so you will have to create two flows

    Flow 01. When Profile Record, created, flow can trigger and create the document location for the Profile

    Flow 02. When an Intake Record is created, flow can trigger and create a document location pointing to same location as the Profile

    Please have a look at few examples about how you can create folder in SP and document location in CRM

    baddaz.com/create-your-own-document-locations-in-dynamics-365-using-flow-9649ecaf3672

    community.dynamics.com/.../using-flow-to-automate-document-locations-in-dynamics-365

    Hope this helps

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics CRM (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 83 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 52

#3
dkrishna Profile Picture

dkrishna 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans