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 : Wa4ACAfKPCiVkABfaCKUGM
Power Automate - Building Flows
Unanswered

Dynamics 365 Replace Annotation attachment.

Like (0) ShareShare
ReportReport
Posted on 23 Oct 2017 14:45:41 by

Hello,

 

to explain the whole of my flow:

- When create new annotation in dynamics, i create a new file in OneDrive with the attachment body.

- I create a new file, with for body that of the file lastly create and converts to PDF (WordToPDF). The PDF file is well created and readable.

- Now, I want to modify the annotation by updating the documentbody and putting the one of the PDF.

But I encounter an error at the time of the final update.

 

"Bad Request"

INPUTS :

item

{

  "notetext": "I'm modified.",

  "documentbody": {

    "$content-type": "application/pdf",

    "$content": "JV9(...)G"

  },

  "isdocument": true,

  "subject": null

}

 

OUTPUTS :

Status code

400

Headers

Key

 

Value

Pragma

no-cache

x-ms-request-id

d79efeee-e8a1-42b7-9078-fde9b9406d4a

Timing-Allow-Origin

*

Cache-Control

no-cache

Date

Mon, 23 Oct 2017 13:52:10 GMT

Set-Cookie

ARRAffinity=1c9e178b01a7edf5c61dddca8a1b25611827b36b00452aca3fbb81b8878998b1;Path=/;HttpOnly;Domain=dynamicscrmonlineconnectionprovider-northeurope.db3-ase-001.p.azurewebsites.net

X-AspNet-Version

4.0.30319

X-Powered-By

ASP.NET

Content-Length

242

Content-Type

application/json; charset=utf-8

Expires

-1

Body

{

  "status": 400,

  "message": "A value must be provided for item.",

  "source": "dynamicscrmonlineconnectionprovider-northeurope.db3-ase-001.p.azurewebsites.net",

  "debugInfo": "clientRequestId: d79efeee-e8a1-42b7-9078-fde9b9406d4a"

}

 

If I'm not clear, do not hesitate to ask me for more details.

 

Thanks in advance.

I have the same question (0)
  • bruce365 Profile Picture
    17 on 30 Apr 2018 at 02:50:47
    Re: Dynamics 365 Replace Annotation attachment.

    I figured this out..the issue is that you need to have the body content 'cast' to base64. I was able to create pdf attachments back in Dynamics via Flow.

  • bruce365 Profile Picture
    17 on 30 Apr 2018 at 01:25:34
    Re: Dynamics 365 Replace Annotation attachment.

    Heya,

    Did you ever figure out what the issue was with creating the attachment back in CRM?

  • v-monli-msft Profile Picture
    on 25 Oct 2017 at 07:51:28
    Re: Dynamics 365 Replace Annotation attachment.

    Hi @BDDev,

     

    Can you share the detailed configuration of the fields in each actions?

     

    Regards,

    Mona

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