web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Get a file FROM Sharep...
Power Automate
Answered

Get a file FROM Sharepoint Doc Library TO OneDrive for Business

(0) ShareShare
ReportReport
Posted on by 1,855

How do I get the URL of a document in a Sharepoint Doc Library? 

 

I've tried https://mything.sharepoint.com/:w:/s/mysite/

  • ID
  • Identifier
  • FolderPath
  • Path
  • Filename With Extension
  • etc, etc, etc

 

Where is the "doc url" parameter!?!?! 

 

An example url is: https://mything.sharepoint.com/:w:/s/mysite/EVyZUHK8hk1FhL0segS-fqABmyOEH8jn2PfmSzrKzMRZDA?e=oXg3XZ

 

How is the long string on the end referenced? 

 

Thanks

Categories:
I have the same question (0)
  • ScottShearer Profile Picture
    25,270 Most Valuable Professional on at

    Can you explain a little more about what you are trying to accomplish?  I ask because you likely don't need to reference the URL in order to copy a file from OneDrive for Business to SharePoint.  The OneDrive connection that you use determines the URL.

  • Community Power Platform Member Profile Picture
    on at

    Hi @ScottShearer

     

    Thank you for the reply. Here is the deep explanation: 

     

    • Sharepoint: 
      • When an item is created
      • Get file content
      • Create file
      • Update file properties
    • OneDrive for Business
      • Want to take the Word from the Sharepoint doc repo
      • Convert it to PDF
      • Write the file back to the Sharepoint doc repo

    Not interested in a 3rd party solution. OneDrive for Business has PDF conversion baked-in and i'd like to leverage it. 

  • Verified answer
    ScottShearer Profile Picture
    25,270 Most Valuable Professional on at

    Try this:

    convert1.jpg

     

    convert2.jpgconvert3.jpg

    This Flow ran successfully for me.  One enhancement is that if you are saving the PDF back to the same document library, you want to add a condition (not a pdf file) so the Flow doesn't run a second time.

     

    Please let me know if this solves your issue.

     

    Scott

  • seadude Profile Picture
    1,855 on at

    Nice work @ScottShearer! That was what I needed!

     

    There is one little item... when I create a new record in the Sharepoint list using a form, the text is created as HTML. Any idea how to pull plaintext instead of HTML?

     

    Here is what I end up with in my PDF where all I typed in the Sharepoint form was "test test test":

     

    <div class="ExternalClass1A514AEE288F4C3B924055541FE3993D"><p>test test test
    <span id="ms-rterangecursor-start"></span>
    <span id="ms-rterangecursor-end"></span>
    <br>
    </p>
    </div>

     

     

  • ScottShearer Profile Picture
    25,270 Most Valuable Professional on at

    Can you post a screen shot of your Flow?

  • seadude Profile Picture
    1,855 on at

    When I open the Sharepoint list and click "+ New" to create a record and test, I just fill in the blanks as such:

     

    Screenshot from 2018-05-11 11-46-36.png

     

    Screenshot from 2018-05-11 11-43-18.png

     

    Above is my flow doing some super cool things..

     

    And the output is HTML for the "Issue" field. I want it to be (of course) plain text.

     

    Screenshot from 2018-05-11 11-48-24.png

  • ScottShearer Profile Picture
    25,270 Most Valuable Professional on at

    Don't mean to be a pain, but can you post the detail of the first 4 steps in your Flow please.

  • seadude Profile Picture
    1,855 on at

    Thats kind of secret sauce at the moment. I want to get a video out on some cool functionality before I expose that too much. sorry to be a wet blanket!

  • seadude Profile Picture
    1,855 on at

    Wow... I feel like a jerk! My apologies to you @ScottShearer. Here you are sharing with me and I'm attempting to be veiled. Sorry man, corporate culture wearing off on me. 

     

    Here is a screenshot of the first 4 steps of the flow:

     

    Screenshot from 2018-05-11 18-57-37.png

  • seadude Profile Picture
    1,855 on at

    @ScottShearer, I figured out what the problem was!

     

    I had to edit the column settings for the cell coming across as HTML. Had to uncheck the "Use enhanced rich text..."

     

    Works like a charm now.

     

    Screenshot from 2018-05-11 19-14-51.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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard