Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Need to create a flag if a file/document has been uploaded in Documents Associated Grid (Sharepoint)

(0) ShareShare
ReportReport
Posted on by 187

Hi guys,

We have a requirement to create flag (Yes/No) if a document/file has been uploaded in documents associated grid (Sharepoint). Basically it should be set to YES if there's any document uploaded and NO if there isn't. 

Any thoughts on how to query from Sharepoint based on the uploaded files? 

We are using Dynamics CRM Online 8.2

*This post is locked for comments

  • JZot Profile Picture
    JZot 187 on at
    RE: Need to create a flag if a file/document has been uploaded in Documents Associated Grid (Sharepoint)

    Hello Wei,

    Yeah I've checked the 'Document Location' and didn't find any relevant information to check if there's an uploaded file/document.

    document-location.png

    I think we will go with the hard way to retrieve the files from Sharepoint. 

    Thanks for help!

  • Verified answer
    Alex Fun Wei Jie Profile Picture
    Alex Fun Wei Jie 33,626 on at
    RE: Need to create a flag if a file/document has been uploaded in Documents Associated Grid (Sharepoint)

    Hi,

    You also can do a extra checking to check if the url contain sharepoint any related item that can help you.

    If you worry about user is going to create a record without uploading anything and you have knowledge about Sharepoint, you can write your own code to retrieve the items from Sharepoint, but this is not going to be easy.

    docs.microsoft.com/.../ee534956(v%3Doffice.14)

  • JZot Profile Picture
    JZot 187 on at
    RE: Need to create a flag if a file/document has been uploaded in Documents Associated Grid (Sharepoint)

    Hi Wei Jie Fun,

    Thanks for the reply.

    Document Locations are just placeholder/folder of the attachments and can't check if there's really an uploaded file/document.

    It will still create 'Document Location' even though users didn't upload a file.

    Am I missing something? Thank you again!

  • Suggested answer
    Alex Fun Wei Jie Profile Picture
    Alex Fun Wei Jie 33,626 on at
    RE: Need to create a flag if a file/document has been uploaded in Documents Associated Grid (Sharepoint)

    Hi,

    there is an entity called document location, you can write your own code to check if the document location's record contain the regarding to your record.

    docs.microsoft.com/.../create-edit-document-location-records

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,403 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans