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 :
Power Platform Community / Forums / Power Automate / Creating a ActivityMim...
Power Automate
Unanswered

Creating a ActivityMimeAttachment

(0) ShareShare
ReportReport
Posted on by

Hi Everyone,

 

I am trying to create an attachment and link it to an appointment in CRM Dynamics.

 

I am running into a problem that it won`t let me save the flow because it gives me an error:

 

"Definition contains invalid parameters"

 

I have checked all parameters en what kind of value they should have and i really don`t know what im doing wrong here.

Hopefully someone can help me.

 

Let me guide u to the flow from beginning until the end:

 

In short:

1:Trigger - When appointment is created

2: Action - Get case record

3: Action - Get annotations records with Odata query

4: Parrallel Branch

 

4.1.1: (ForEach) Get appointment record

4.1.2: (ForEach) Edit appointment record

 

4.2.0 (ForEach) Condition if isdocument from step3 true

4.2.1 (ForEach) Create attachment record

4.2.2 (ForEach) Create ActivityMimeAttachment record

So this all works great. The problem comes at step 4.2.2

 

I will give u printscreens from all items that relate to the parallel branch:

 

Here i get all annotations from the Appointment record with Odata query.

3.PNG

 

Here i say If annotation record has a attachment:

4.2.0.PNG

Yes?

Then create a attachment in CRM (i do this because i need a attachment ID in order to create an ActivityMimeAttachement, and i need an activitymimeattachment in order to link a attachement to an appointment 🙂 )

 

4.2.1.PNG

 

So above dynamic content all comes from the Annotation Record. It gets the filename, mimetype, i dont know why i have to add a subject to the attachment but ok, for this i use the titel of the annotation. Then all things are good, attachement is created. Ready to link this attachement to the appointment by creacting a new record from the entitiy ActivityMImeAttachment.

4.2.2.PNG

I use the attachment ID from the Record i just created in step 4.2.1.

I have to fill in a Item ID. This is the ID of the appointment. I get this from the annotation record step 3.

The same with Item type.

 

So all fields are filled and now its give me the error of the definition contains invalid parameters?

What im a doing wrong?

 

 

error flow definitions parameters.PNG

Categories:
I have the same question (0)
  • Leo09 Profile Picture
    212 on at
    Re: Creating a ActivityMimeAttachment

    Must be something wrong with the content you filled in th fields, let me try and tell you the result later.

  • Community Power Platform Member Profile Picture
    on at
    Re: Creating a ActivityMimeAttachment

    have u been able to try it and have results?

    im very curious what im doing wrong.

     

    btw i think u are right about that there is something about the content in the fields im not doing right, but i just dont know it.

     

    Thanks in advance.

  • Community Power Platform Member Profile Picture
    on at
    Re: Creating a ActivityMimeAttachment

    Hi Leo9,

     

    I created a new flow and made it possible for all the fields to be correct so i can save my flow and let it get triggered.

    But then i got the error message: That the Action: Create Record for CRM Dynamics is not possible on the entity Attachment.

     

    So this means that its just nog possible to let Flow create an attachment in CRM..

    Is there anyone that can confirm this or is there still a possibility?

     

     

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

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard