Skip to main content

Notifications

Community site session details

Community site session details

Session Id : STFN1eRo5hQnAgxWeSUjEQ
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 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,651 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard
Loading started