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

Dynamics create user

I tried to create a flow which must create a user in Dynamics but when test I get an error: BadRequest.

input item:

{
"firstname": "pat",
"invitestatuscode": 0,
"lastname": "san",
"emailaddress1": "test@free.fr",
"description": "sdazd",
"telephone1": "123456789"
}
Output
status code 400
{
"status": 400,
"message": "An error occurred while validating input parameters: Microsoft.OData.ODataException: Does not support untyped value in non-open type.\r\n at System.Web.OData.Formatter.Deserialization.DeserializationHelpers.ApplyProperty(ODataProperty property, IEdmStructuredTypeReference resourceType, Object resource, ODataDeserializerProvider deserializerProvider, ODataDeserializerContext readContext)\r\n at System.Web.OData.Formatter.Deserialization.ODataResourceDeserializer.ApplyStructuralProperties(Object resource, ODataResourceWrapper resourceWrapper, IEdmStructuredTypeReference structuredType, ODataDeserializerContext readContext)\r\n at Microsoft.Crm.Extensibility.CrmODataEntityDeserializer.ApplyStructuralProperties(Object resource, ODataResourceWrapper resourceWrapper, IEdmStructuredTypeReference structuredType, ODataDeserializerContext readContext)\r\n at System.Web.OData.Formatter.Deserialization.ODataResourceDeserializer.ReadResource(ODataResourceWrapper resourceWrapper, IEdmStructuredTypeReference structuredType, ODataDeserializerContext readContext)\r\n at System.Web.OData.Formatter.ODataMediaTypeFormatter.ReadFromStream(Type type, Stream readStream, HttpContent content, IFormatterLogger formatterLogger)",
"source": "orgxxxxxxxxx.crm4.dynamics.com",
"errors": [],
"debugInfo": "clientRequestId: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}
Where is the bug?
2 REPLIES 2
Community Support Team
Community Support Team

Re: Dynamics create user

Hi @patrick_s ,

 

I am not able to reproduce a similar error on my side. Could you provide a screenshot of Flow configuration?

Some searches found that similar errors would occur if properties that do not exist in JSON Object are configured.

You could try to configure only the required fields, the other optional fields are not populated first, and then gradually check the fields that caused the error.

In addition, please upgrade your previous version CDS database as required, although I don't know if this is the cause of this error, but it can be used as a reference.

 

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.
patrick_s
Level: Powered On

Re: Dynamics create user

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

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

firstImage

Incoming: New and improved badges!

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

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

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