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
{
"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)."
}
}
WarrenBelz
146,651
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,999
Most Valuable Professional