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 / Publishing HTML fields
Power Automate
Answered

Publishing HTML fields

(1) ShareShare
ReportReport
Posted on by 334

I have a flow where I do copy all data from an old SP doc library to a DataVerse table.

however there is a column that is not showing up in the action 'Get File Properties'.

The Column type is  'Publishing HTML'.

 

Anyone suggestions?

Categories:
I have the same question (0)
  • Michael E. Gernaey Profile Picture
    53,928 Super User 2025 Season 2 on at

    Hi @Vitss 

     

    Get file Properties doesn't return any columns at all, it returned properties of a File in SharePOint or Onedrive.

     

    Can you please clarify what you mean by column.


    If I have helped you, I would really appreciate if you please Mark my answer as Resolved/Answered, and give it a thumbs up, so it can help others

    Cheers

    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

  • sandeepstw Profile Picture
    312 Moderator on at

    Hi There,

     

    In SharePoint, "Publishing HTML" fields are not directly supported in the 'Get file properties' action in Power Automate due to their complex nature.

     

    You might can use these steps -

     

    Use the 'Get files (properties only)' action to retrieve the item and its ID from the document library.

    Use this action to send a REST API request to SharePoint to fetch the specific item details including the Publishing HTML field. Select the site where your document library resides.

    Use method GET, Url - /api/web/lists/getbytitle('YourDocumentLibraryName')/items('ItemID')?$select=YourPublishingHtmlFieldName. Headers like  ‘application/json;odata=verbose’

    content-type - ‘application/json;odata=verbose’

     

    The HTML field’s content will be in the response body. Use the ‘Parse JSON’ action to extract the value. use body('Send_an_HTTP_request_to_SharePoint')?['d']['YourPublishingHtmlFieldName']

     

    Now you can use the extracted HTML value in subsequent actions in your flow to copy it to the DataVerse table or any other desired operations.

    Ensure you have the necessary SharePoint permissions to send HTTP requests and access the document library and its items.

     

    Please give kudos and mark as solution if it helps.  

      

    Thanks, 

    Sandeep Mishra 

  • Vitss Profile Picture
    334 on at

    Hello @sandeepstw  and @FLMike , 

    Thank You very much for the effort and quick response.

    I was trying to achieve something like that with the HTTP request.

    Due to spaces in the titles I have a return I figured out I had to use coded spaces like this:

    _api/web/GetFolderByServerRelativeUrl('/teams/Folder/Voorstellen/Sub%20Folder%20Number%20One')

    I have a response using that URI and header accept application/json

     

    adding /items('4191') to the uri gives me back a 'not found'

    I!m quite sure I!m missing something in the http request, not enough experience with that one.

     

     

  • Vitss Profile Picture
    334 on at

    getting somewhere using  _api/web/GetFolderByServerRelativeUrl('/teams/Folder/Voorstellen/Sub%20Folder%20Number%20One')/Properties

  • sandeepstw Profile Picture
    312 Moderator on at

    Hi There,

     

    my solution for for list item, for File use this use this code in case of file path - 

    fetch("https://yourdomain.sharepoint.com/sites/yoursite/_api/web/GetFileByServerRelativeUrl('/sites/yoursite/Shared%20Documents/Reports/example.docx')", {
    method: "GET",
    headers: {
    "Accept": "application/json;odata=verbose",
    },
    })
    .then(response => response.json())
    .then(data => {
    console.log(data); // Handle the response data here
    })
    .catch(error => {
    console.error("Error:", error);
    });

  • sandeepstw Profile Picture
    312 Moderator on at

    is it working?

  • Verified answer
    Vitss Profile Picture
    334 on at

    Thank You For the suggestion.

    I will check out the code so I can understand that.

    For now the URI: _api/web/GetFolderByServerRelativeUrl('/teams/Folder/Voorstellen/Sub%20Folder%20Number%20One')/Properties is working. 

     

    Vitss_0-1698406973468.png

     

    Thanks for assistance.

    The output is from a compose to create the exact URL because it depends per item in the for each loop offcourse?

  • sandeepstw Profile Picture
    312 Moderator on at

    yes, mark it as a solution if it works.

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…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 378 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 273 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Expiscornovus 135 Most Valuable Professional

Last 30 days Overall leaderboard