Showing results for 
Search instead for 
Did you mean: 
Level: Powered On

Email to D365 status and missing fields

Hi all,

I want to realize a flow that when a mail arrives at an mailbox, this mail is being attached to an opportunity. Now am i having a two problems:
1. The fields: 'From', 'To', 'CC', 'BCC' are not being filled.
2. The created mail has the status CONCEPT and I want to have the status to Received (Ontvangen). 
2.1 - When i change the flow to 'Get e-mail record' i see that i need to fill the following fields
get email record.PNG

But when i  fill the field Statuscode i get the following error? 

message": "3 is not a valid status code for state code EmailState.Open on email with Id 009bc0e1-59a2......

The flow i trying to realize is :

Flow create mail.PNG
This is my output on the D365 side
Dynamics mail open.PNGD365 created mail

Community Support Team
Community Support Team

Re: Email to D365 status and missing fields

Hi @Oos ,


"From" you mentioned can be found in the field list.


To/CC/BCC seems to be unified into To Recipients field. It may be necessary to use a semicolon to separate the relevant email addresses.



In addition, regarding the invalid status code, I can reproduce similar errors here, but I have not found the reason yet. Please refer to the thread and see if it helps in Dynamic community:



Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources


New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!


Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!


Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!


Microsoft Learn

Learn how to build the business apps that you need.


Power Platform World Tour

Find out where you can attend!


Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (4,652)