cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

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
Community Support

Hi @Anonymous ,

 

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.
Anonymous
Not applicable

Helpful resources

Announcements
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (43,254)