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 : ouxnOL0/UdYebd3pyGgzGR
Power Automate - Building Flows
Unanswered

How to add image attachment to Notes in D365 using Power Automate?

Like (0) ShareShare
ReportReport
Posted on 11 Jan 2024 17:42:20 by

I'm trying to convert MS Forms submissions to Notes in Dynamics 365 using Power Automate flow. The flow is triggered when the form is submitted, gets response details, and then Parses JSON Attachment.

dgergfdbdfgds_0-1704994339969.png

Using OneDrive connector I get the file content using path, the output looks like this:

{
  "$content-type""image/jpeg",
  "$content""/9j/4AAQSkZJRgABAgEAlgCWAAD/7QAsUGhvdG9zaG9wIDM........."
}

Then I create the Note using Dataverse connector.

dgergfdbdfgds_1-1704994491390.png

However when I add File content to the Document field I get an error:

{ "error": { "code": "0x80040278", "message": "Invalid character in field 'documentbody': '.', hexadecimal value 0x00, is an invalid character.", "@Microsoft.PowerApps.CDS.ErrorDetails.ApiPluginSolutionNameKey": "System", "@Microsoft.PowerApps.CDS.ErrorDetails.ApiStepSolutionNameKey": "System", "@Microsoft.PowerApps.CDS.ErrorDetails.ApiExceptionCategory": "ClientError", "@Microsoft.PowerApps.CDS.ErrorDetails.ApiExceptionMessageName": "InvalidCharactersInField", "@Microsoft.PowerApps.CDS.ErrorDetails.ApiExceptionHttpStatusCode": "400", "@Microsoft.PowerApps.CDS.HelpLink": "http://go.microsoft.com/fwlink/?LinkID=398563&error=Microsoft.Crm.CrmException%3a80040278&client=platform", "@Microsoft.PowerApps.CDS.InnerError.Message": "Invalid character in field 'documentbody': '.', hexadecimal value 0x00, is an invalid character." } }

What is the proper way of attaching the document to the Note in Dynamics 365 using power automate?

I have tried base64(File Content) expression and the attached file is just .txt file instead of an image.

I have the same question (0)

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…

Tom Macfarlan – Community Spotlight

We are honored to recognize Tom Macfarlan as our Community Spotlight for October…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 626 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 374 Moderator

#3
Expiscornovus Profile Picture

Expiscornovus 284 Most Valuable Professional

Last 30 days Overall leaderboard