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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

The email must have at least one recipient before it can be sent.

(0) ShareShare
ReportReport
Posted on by 200

Hello I am getting the below error in a workflow.

The workflow steps are as follows.

1.Create Email (set properties email from, subject, body  )

2.Update email bcc fields and send email with custom activity. 

The issue was resolved after setting up to field in step 1. However, I do not want any to fields in this email. Any solutions? Thanks

Annotation-2019_2D00_05_2D00_14-144846.jpg

*This post is locked for comments

I have the same question (0)
  • Martin Donnelly Profile Picture
    1,030 on at

    Doesn't sound likely.  I would make up a dummy address, real or not.

  • Suggested answer
    SwathiD Profile Picture
    200 on at

    Was working without to field. Since 12th April 2019, this had stopped working. For now fixed the issue by adding a "noreply" email to the to field.

  • Suggested answer
    Kokulan Profile Picture
    18,054 on at

    Hi Swathi,

    I think it looks like as part of April release or recent update, the To field has been mandatory.

    I tried on CRM 2011, 2015, and 2016 from UI  and allows me to submit the email for delivery and it does not fail on Send Email click when I only set the BCC.

    But when I try the same on latest online from UI, I get the following

    2870.ScreenClip-_5B00_62_5D00_.png

    It kind of makes sense to make To as mandatory field so in my view, they seems to have added this validation recently. 

    Just out of curiosity if possible, could you share the scenario that you only have to set BCC not the To.

  • SwathiD Profile Picture
    200 on at

    Hi,

    We need to send emails to all the endorsers of an application. Sometimes endorsers would be from different organisations. So in this case the email ids shouldn't be exposed. Hence we are using BCC.

    Thanks,

    Swathi

  • Dynamics Objects 365 Profile Picture
    550 on at

    Please check the release notes for April release, if this is not mentioned then you can raise a support ticket as it was something which was working before

  • Community Member Profile Picture
    on at

    Hi, I am facing exactly the same issue. The problem appeared since the 20th  of May. I am waiting for an answer from microsoft to know if it comes from a recent update. I checked myself. i didn't find any linked subject.

  • Martin Donnelly Profile Picture
    1,030 on at

    Again, send to a do not respond/dummy address and all the real recipients BCC.  I don’t know that this was ever otherwise.  It’s probably even an SMTP standard.  

  • Suggested answer
    Braccialle Profile Picture
    260 on at

    I received the same error when setting up a new workflow on the Lead entity just to send email. At first i used Customer (Lead) and added this to the Field To: (See Below). After further testing I set to this field To:Lead and this worked and completed workflow successfully. Provided the created by user sending the email has a mailbox associated email was received.

    pastedimage1563531865795v2.png

    pastedimage1563531521755v1.png

    Plugin Trace:

    [Microsoft.Xrm.Sdk.Workflow: Microsoft.Xrm.Sdk.Workflow.Activities.SendEmail]
    [SendEmailStep1]

    Error Message:

    Unhandled exception:
    Exception type: System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]
    Message: The e-mail must have at least one recipient before it can be sentDetail:
    <OrganizationServiceFault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts">
      <ActivityId>db3494be-3dc4-4bb6-8c95-9d8bf5b3b4c1</ActivityId>
      <ErrorCode>-2147218684</ErrorCode>
      <ErrorDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic">
        <KeyValuePairOfstringanyType>
          <d2p1:key>ApiExceptionSourceKey</d2p1:key>
          <d2p1:value xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">Plugin/Microsoft.Crm.Common.ObjectModel.EmailService</d2p1:value>
        </KeyValuePairOfstringanyType>
        <KeyValuePairOfstringanyType>
          <d2p1:key>ApiOriginalExceptionKey</d2p1:key>
          <d2p1:value xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">Microsoft.Crm.CrmException: The e-mail must have at least one recipient before it can be sent ---&gt; Microsoft.Crm.CrmException: The e-mail must have at least one recipient before it can be sent
       at Microsoft.Crm.Common.ObjectModel.EmailService.&lt;&gt;c__DisplayClass26_0.&lt;Send&gt;b__0()
       at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute[TResult](ILogger logger, EventId eventId, ActivityType activityType, Func`1 func, IEnumerable`1 additionalCustomProperties)
       at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute[TResult](ILogger logger, XrmTelemetryActivityType activityType, Func`1 func)
       --- End of inner exception stack trace ---
       at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)
       at Microsoft.Crm.Extensibility.PipelineInstrumentationHelper.Execute(Boolean instrumentationEnabled, String stopwatchName, ExecuteWithInstrumentation action, PipelineExecutionContext context)
       at Microsoft.Crm.Extensibility.Pipeline.&lt;&gt;c__DisplayClass2_1.&lt;Execute&gt;b__0()</d2p1:value>
        </KeyValuePairOfstringanyType>
        <KeyValuePairOfstringanyType>
          <d2p1:key>ApiStepKey</d2p1:key>
          <d2p1:value xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/" i:type="d4p1:guid">05cdbb1b-ea3e-db11-86a7-000a3a5473e8</d2p1:value>
        </KeyValuePairOfstringanyType>
        <KeyValuePairOfstringanyType>
          <d2p1:key>ApiDepthKey</d2p1:key>
          <d2p1:value xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:int">1</d2p1:value>
        </KeyValuePairOfstringanyType>
        <KeyValuePairOfstringanyType>
          <d2p1:key>ApiActivityIdKey</d2p1:key>
          <d2p1:value xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/" i:type="d4p1:guid">db3494be-3dc4-4bb6-8c95-9d8bf5b3b4c1</d2p1:value>
        </KeyValuePairOfstringanyType>
        <KeyValuePairOfstringanyType>
          <d2p1:key>ApiPluginSolutionNameKey</d2p1:key>
          <d2p1:value xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">System</d2p1:value>
        </KeyValuePairOfstringanyType>
        <KeyValuePairOfstringanyType>
          <d2p1:key>ApiStepSolutionNameKey</d2p1:key>
          <d2p1:value xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">System</d2p1:value>
        </KeyValuePairOfstringanyType>
      </ErrorDetails>
      <HelpLink>http%3a%2f%2fgo.microsoft.com%2ffwlink%2f%3fLinkID%3d398563%26lcid%3d1033%26error%3dMicrosoft.Crm.CrmException%26client%3dplatform%26sv%3d9.0.41.860%26de%3dLive%26opsys%3dMicrosoft+Windows+NT+6.2.9200.0%26errorCode%3d-2147218684</HelpLink>
      <Message>The e-mail must have at least one recipient before it can be sent</Message>
      <Timestamp>2019-07-19T09:08:12.5140034Z</Timestamp>
      <ExceptionRetriable>false</ExceptionRetriable>
      <ExceptionSource i:nil="true" />
      <InnerFault>
        <ActivityId>db3494be-3dc4-4bb6-8c95-9d8bf5b3b4c1</ActivityId>
        <ErrorCode>-2147218684</ErrorCode>
        <ErrorDetails xmlns:d3p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
        <HelpLink i:nil="true" />
        <Message>The e-mail must have at least one recipient before it can be sent</Message>
        <Timestamp>2019-07-19T09:08:12.5140034Z</Timestamp>
        <ExceptionRetriable>false</ExceptionRetriable>
        <ExceptionSource i:nil="true" />
        <InnerFault i:nil="true" />
        <OriginalException i:nil="true" />
        <TraceText i:nil="true" />
      </InnerFault>
      <OriginalException i:nil="true" />
      <TraceText>[Microsoft.Xrm.Sdk.Workflow: Microsoft.Xrm.Sdk.Workflow.Activities.SendEmail]
    [SendEmailStep1]
    </TraceText>
    </OrganizationServiceFault>

  • Suggested answer
    Vipin J Profile Picture
    1,603 on at

    Hi, To is mandatory among all recipient.

    Here are some tips to avoid such an exceptions.

    https://vjcity.blogspot.com/2019/07/the-email-must-have-at-least-one.html

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans