web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Dynamics - Send an Ema...
Power Automate
Unanswered

Dynamics - Send an Email as a process starts

(0) ShareShare
ReportReport
Posted on by 23

Alright so! Objective here is simple, I'm trying to do (using PA) what this person is doing in her video, I'll post the link below, but long story short is she is using GetQueue+PerformUnboundAction with a template to send email from a queue.

The problem I'm running into is that the "Recipients Item 1" seems to be erroring out. The error is as follows:

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: Bad Request - Error in query syntax.
 at Microsoft.OData.UriParser.ODataUriResolver.ResolveKeys(IEdmEntityType type, IList`1 positionalValues, Func`3 convertFunc)
 at Microsoft.OData.UriParser.SegmentArgumentParser.TryConvertValues(IEdmEntityType targetEntityType, IEnumerable`1& keyPairs, ODataUriResolver resolver)
 at Microsoft.OData.UriParser.SegmentKeyHandler.CreateKeySegment(ODataPathSegment segment, KeySegment previousKeySegment, SegmentArgumentParser key, ODataUriResolver resolver)
 at Microsoft.OData.UriParser.SegmentKeyHandler.TryCreateKeySegmentFromParentheses(ODataPathSegment previous, KeySegment previousKeySegment, String parenthesisExpression, ODataUriResolver resolver, ODataPathSegment& keySegment, Boolean enableUriTemplateParsing)
 at Microsoft.OData.UriParser.ODataPathParser.TryBindKeyFromParentheses(String parenthesesSection)
 at Microsoft.OData.UriParser.ODataPathParser.TryCreateSegmentForNavigationSource(String identifier, String parenthesisExpression)
 at Microsoft.OData.UriParser.ODataPathParser.CreateFirstSegment(String segmentText)
 at Microsoft.OData.UriParser.ODataPathParser.ParsePath(ICollection`1 segments)
 at Microsoft.OData.UriParser.ODataPathFactory.BindPath(ICollection`1 segments, ODataUriParserConfiguration configuration)
 at Microsoft.OData.UriParser.ODataUriParser.Initialize()
 at Microsoft.Crm.Extensibility.OData.CrmEdmEntityReference.CreateCrmEdmEntityReference(Uri link, IEdmModel edmModel, CrmODataExecutionContext context, EntitySetSegment& entitySetSegment)
 at Microsoft.Crm.Extensibility.ODataV4.ODataParameterReaderExtensions.TryReadFlowPrimitiveData(ODataParameterReader oDataParameterReader, ODataDeserializerContext readContext, CrmEdmEntityObject& result)
 at Microsoft.Crm.Extensibility.ODataV4.ODataParameterReaderExtensions.TryReadFlowPrimitive(ODataParameterReader oDataParameterReader, ODataDeserializerContext readContext, CrmEdmEntityObject& result)
 at Microsoft.Crm.Extensibility.ODataV4.CrmODataActionPayloadDeserializer.Read(ODataMessageReader messageReader, Type type, ODataDeserializerContext readContext)
 at System.Web.OData.Formatter.ODataMediaTypeFormatter.ReadFromStream(Type type, Stream readStream, HttpContent content, IFormatterLogger formatterLogger).

This makes me think that maybe the case itself has something going on or has the "Primary User" as an issue.

Captioned images below:

 
 
Trouserlove_5-1670533287652.png

When I open up the cases table, I notice we have two "contact" records. one is contactid and one is primarycontactid

 
Trouserlove_6-1670533314105.png

It looks like the case definitely has a primarycontactid/name

 

 

 
Trouserlove_7-1670533364064.png

and the primary contactid has an email

 

So, if it's not obvious, I'm just trying to get this "performunboundaction" to send the email via the template.

 

Youtube Vid As Promised

Picture of Flow Step

Trouserlove_8-1670533513766.png

 

Categories:
I have the same question (0)

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 523 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard