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 :
Microsoft Dynamics 365 | Integration, Dataverse...
Answered

how to create a Task when a file is uploaded to contacts sharepoint?

(0) ShareShare
ReportReport
Posted on by 803

Hello, we are wanting to create a Task whenever we upload a document to a Contact's sharepoint folder. I'm thinking we will use power automate. The Task will have a link to the sharepoint document in a URL field. Does anyone have a break down of the specifics of going about this? Thank you very much in advance. 

I have the same question (0)
  • Ben T Profile Picture
    803 on at
    RE: how to create a Task when a file is uploaded to contacts sharepoint?

    Thank you! This was exactly what we needed - incredibly helpful

  • Verified answer
    Community Member Profile Picture
    on at
    RE: how to create a Task when a file is uploaded to contacts sharepoint?

    Hi Ben T,

    If you use the Default Site to upload file, you can get it form folder path/file link/full path. However, it isn't GUID format and you need to convert it to GUID.

    For example, in my case, I can get it by this expression: substring(split(triggerOutputs()?['body/{Path}'],'_')[1],0,sub(length(split(triggerOutputs()?['body/{Path}'],'_')[1]),1))

    pastedimage1655434347533v1.png

    Result:

    pastedimage1655434377695v2.png

    Then you can convert it to GUID, please refer to this blog:

    community.dynamics.com/.../power-automate-convert-a-string-to-guid

  • Ben T Profile Picture
    803 on at
    RE: how to create a Task when a file is uploaded to contacts sharepoint?

    Steve,

    Thank you for your response. Sorry I did not mention this in the OP, but we would need the task associated with the contact whose Sharepoint folder we are adding a document to. I am thinking it may be more practical to simply update a URL field on the contact with the file URL. I am wondering how I can get the Contact ID so I can update the contact form with the "link to time." Do you have any thoughts on this? This would be a hugely helpful thing if we can do it.

    pastedimage1655408526485v1.png

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: how to create a Task when a file is uploaded to contacts sharepoint?

    Hi Ben T,

    Please try the following flow:

    pastedimage1655286599101v1.png

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…

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
DAnny3211 Profile Picture

DAnny3211 433

#2
Abhilash Warrier Profile Picture

Abhilash Warrier 137 Super User 2025 Season 2

#3
Martin Dráb Profile Picture

Martin Dráb 67 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans