cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
SlavaS1
Helper I
Helper I

Id is malformed (Copy Email, Graph API)

Hi,

To copy an incoming an email, I have created a flow with trigger "When a new email arrives (V3)".

Due to there is no out-of-the-box Power Automate action to copy an email, I have registered an app and used Graph API call

POST https://graph.microsoft.com/v1.0/users/{id | userPrincipalName}/messages/{id}/copy

 

I use "Message Id" from the trigger, but I received the error "Id is malformed".

SlavaS1_0-1652178646913.png

 

result:

SlavaS1_1-1652178744593.png

 

I have tried on Graph explorer and received the same issue.

Forward out-of-the-box action with the same Message Id works.

 

I will appreciate for idea why Graph API may work wrong.

 

Thanks in advance.

 

Slava

1 ACCEPTED SOLUTION

Accepted Solutions
Expiscornovus
Dual Super User
Dual Super User

Hi @SlavaS1,

 

Are you sure you are using the correct mailFolders id? It does look a bit strange starting with id::

 

Maybe you need to try it without the id:: part. Try a destinationid which starts with AAMkAD

graphapi_copymessage_testing.png

View solution in original post

3 REPLIES 3
VictorIvanidze
Community Champion
Community Champion

Did you try to do the same in the Graph Explorer?

--------------------------------------------------------------------------------------
Contact me if you are interested in custom Power Automate development.
Expiscornovus
Dual Super User
Dual Super User

Hi @SlavaS1,

 

Are you sure you are using the correct mailFolders id? It does look a bit strange starting with id::

 

Maybe you need to try it without the id:: part. Try a destinationid which starts with AAMkAD

graphapi_copymessage_testing.png

Hi @Expiscornovus that works, thank you. I was confused due to we have to use "id::xxxxx" when we use out-of-the-box move email action

SlavaS1_0-1652182033032.png

 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Top Kudoed Authors
Users online (3,708)