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 / How to attach files to...
Power Automate
Answered

How to attach files to Notes using power automate flow

(0) ShareShare
ReportReport
Posted on by 4

Hi all,

 

I think what I'm trying to accomplish is simple, but I'm stumped.

 

In a power automate flow, I'm converting a file to PDF format and now I want to add that file as an attachment to a new Note in Dataverse.

 

Here's what I've done so far:

 

First, I grab the file from a Note that already exists, where the file is in Word format (.docx). I get the file and convert it to PDF successfully using the "Convert Word Document to PDF" connector. 

 

However, in the next step, when I try add a new row using the file output of the previous step, the flow is failing and I'm receiving the following error message: "Invalid character in field 'documentbody': '', hexadecimal value 0x1B, is an invalid character."

 

 

add a new row connector.PNGadd a new row connector_error.PNG

 

Am I missing a step or are my inputs wrong?

 

Any help is appreciated!

Categories:
I have the same question (0)
  • Verified answer
    v-bofeng-msft Profile Picture
    on at

    Hi @lcaputo :

    I am afraid there is no action that can directly update the attachments in Note,if you need this function I suggest you post this ideal on the IDEAL forum.

    In addition ,I have an alternative:

    You could consider adding a file column and use "Upload a file or an image " action to Upload the file.

    I've made a test for your reference:

    1\My table

    vbofengmsft_0-1636080426318.pngvbofengmsft_1-1636080444824.png

    2\My Flow:

    vbofengmsft_2-1636080799083.png

    The Result:

    vbofengmsft_3-1636080821391.png

    Best Regards,

    Bof

     

     

     

  • bhatiavinay99 Profile Picture
    23 on at

    We were able to upload attachment files to Notes table of Dataverse by following these steps to add a new row to Notes table name:
    1. Set IsDocument to True

     

    2. Wrap file content with base64() function in an expression

    e.g.  Document needs to be set to base64(outputs('Get_file_content_using_path')?['body']) where I am reading document from SharePoint document library in an previous action

     

    3. Associate between Note and Entity table by populating the Regarding (EntityNameS) column with value in the format PublisherName_EntityPluralName(GUID)

    Note: For #3, Start with PublisherName_ for your environment and use Entity Plural name ending in s
    e.g. crf39_customercases(cdf5ef2e-988e-ec22-b400-0022480af153) for entity called customercase
    Use Dataverse action Get Row By Id and check the value of the @OData.id or @OData.editLink in Output body if you are still having doubts about the format.

     

    4. Set description to *web* to display on Portal

  • bharathik Profile Picture
    2 on at

    Hi How can we upload multiple files for a single note file from power automate. The above code works for only one attachment. Please let me know how to proceed on this.

  • bhatiavinay99 Profile Picture
    23 on at

    I will simply use a loop, and for each file,  repeat the steps.

  • Community Power Platform Member Profile Picture
    on at

    Thank you! This helped me out. 

  • Community Power Platform Member Profile Picture
    on at

    Instead of uploading file as pdf, it uploads it in .txt format. 

  • Community Power Platform Member Profile Picture
    on at

    Were you able to upload the pdf file? 

  • bhatiavinay99 Profile Picture
    23 on at

    Yes, we were saving PDF files to Dataverse. 

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 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard