Skip to main content

Notifications

Community site session details

Community site session details

Session Id : mGFTpLqS/hckcAXxGMPnLY
Power Automate - Building Flows
Unanswered

"code": "0x80048d19" "message": "Error identified in Payload provided by the user for Entity - Dynamics Send E-mail From Template

Like (0) ShareShare
ReportReport
Posted on 30 May 2024 14:39:46 by 27

Hello, we are in the process of building D365 CRM. I'm trying to set up an automated e-mail flow.

Trigger: When a row is added to Case table

Set Customer:

 
triggerBody()?['_customerid_value']


Get a row by ID -> GetCustomer
Table: Contacts
Row ID: Customer variable's value.

Sender e-mail: 

String
74fe1df2-7417-ef11-840a-000d3ab45aa0
hard coded id of Default e-mail address that's used to send e-mails

Template id: 
51a23b49-c81d-ef11-840a-0022489a2a85
String

baris2_0-1717079614080.png

 



{
 "apiId": "providers/Microsoft.Web/locations/westeurope/runtimes/europe-002/apis/commondataserviceforapps",
 "connectionReferenceName": "shared_commondataserviceforapps",
 "operationId": "PerformUnboundAction"
}

 

{
 "actionName": "SendEmailFromTemplate",
 "item/TemplateId": "51a23b49-c81d-ef11-840a-0022489a2a85",
 "item/Regarding": "incidents(CAS-01353-W4D6Y1)",
 "item/Target": {
 "subject": "",
 "description": "",
 "email_activity_parties": [
 {
 "partyid_systemuser@odata.bind": "/systemusers(74fe1df2-7417-ef11-840a-000d3ab45aa0)",
 "participationtypemask": 1
 },
 {
 "partyid_contact@odata.bind": "/contacts(dd283389-aa17-ef11-840a-000d3ab7cc41)",
 "participationtypemask": 2
 }
 ],
 "@odata.type": "Microsoft.Dynamics.CRM.email"
 }
}




{
 "error": {
 "code": "0x80048d19",
 "message": "Error identified in Payload provided by the user for Entity :'', For more information on this error please follow this help link https://go.microsoft.com/fwlink/?linkid=2195293 ----> InnerException : Microsoft.OData.ODataException: ')' or ',' expected at position 4 in '(CAS-01353-W4D6Y1)'.\r\n at Microsoft.OData.UriParser.FunctionCallParser.ParseArgumentListOrEntityKeyList(Action restoreAction)\r\n at Microsoft.OData.UriParser.SegmentArgumentParser.TryParseFromUri(String text, SegmentArgumentParser& instance, Boolean enableUriTemplateParsing)\r\n at Microsoft.OData.UriParser.SegmentKeyHandler.TryCreateKeySegmentFromParentheses(ODataPathSegment previous, KeySegment previousKeySegment, String parenthesisExpression, ODataUriResolver resolver, ODataPathSegment& keySegment, Boolean enableUriTemplateParsing)\r\n at Microsoft.OData.UriParser.ODataPathParser.TryBindKeyFromParentheses(String parenthesesSection)\r\n at Microsoft.OData.UriParser.ODataPathParser.TryCreateSegmentForNavigationSource(String identifier, String parenthesisExpression)\r\n at Microsoft.OData.UriParser.ODataPathParser.CreateFirstSegment(String segmentText)\r\n at Microsoft.OData.UriParser.ODataPathParser.ParsePath(ICollection`1 segments)\r\n at Microsoft.OData.UriParser.ODataPathFactory.BindPath(ICollection`1 segments, ODataUriParserConfiguration configuration)\r\n at Microsoft.OData.UriParser.ODataUriParser.Initialize()\r\n at Microsoft.Crm.Extensibility.OData.CrmEdmEntityReference.CreateCrmEdmEntityReference(Uri link, IEdmModel edmModel, CrmODataExecutionContext context, String operationName, EntitySetSegment& entitySetSegment)\r\n at Microsoft.Crm.Extensibility.ODataV4.ODataParameterReaderExtensions.TryReadFlowPrimitiveData(ODataParameterReader oDataParameterReader, ODataDeserializerContext readContext, CrmEdmEntityObject& result)\r\n at Microsoft.Crm.Extensibility.ODataV4.ODataParameterReaderExtensions.TryReadFlowPrimitive(ODataParameterReader oDataParameterReader, ODataDeserializerContext readContext, CrmEdmEntityObject& result)\r\n at Microsoft.Crm.Extensibility.ODataV4.CrmODataActionPayloadDeserializer.Read(ODataMessageReader messageReader, Type type, ODataDeserializerContext readContext)\r\n at System.Web.OData.Formatter.ODataMediaTypeFormatter.ReadFromStream(Type type, Stream readStream, HttpContent content, IFormatterLogger formatterLogger)."
 }
}

 

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - Building Flows

#1
stampcoin Profile Picture

stampcoin 125

#2
David_MA Profile Picture

David_MA 109 Super User 2025 Season 1

#3
Michael E. Gernaey Profile Picture

Michael E. Gernaey 90 Super User 2025 Season 1

Overall leaderboard
Loading started