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 365 | Integration, Dataverse...
Suggested Answer

Creating email with Web API automatically adds signature

(0) ShareShare
ReportReport
Posted on by 5

I am using the following to create a new email in Dynamics 365:

export const createEmail = (
  subject: string,
  description: string,
  trackingToken: string | undefined,
  caseId: string,
  emailId: string,
  partyData: any[],
): JQuery.jqXHR => $.ajax({
  url: `${apiBaseUrl}/emails?$select=activityid,_ownerid_value,createdon,subject,statuscode,directioncode,sender,attachmentcount,
trackingtoken`,
  type: 'POST',
  global: true,
  headers: {
    'Prefer': 'return=representation'
  },
  dataType: 'json',
  contentType: 'application/json',
  data: JSON.stringify({
    subject,
    description,
    trackingtoken: trackingToken,
    'regardingobjectid_incident@odata.bind': `/incidents(${caseId})`,
    'parentactivityid@odata.bind': `/emails(${emailId})`,
    email_activity_parties: partyData,
  }),
});

The new email is meant to be a reply to customer's incoming email. In the description parameter I'm passing the user's signature, because I need to add a separator between our response and the original email thread. However, the resulting email in Dynamics 365 has the signature I provided in the description, and another automatically-added signature. Is there a way to prevent Dynamics 365 from adding signatures to emails?

I have the same question (0)
  • Suggested answer
    Naveen Ganeshe Profile Picture
    3,397 User Group Leader on at

    Hi Kentico-EricD ,

    I think your default email signature is applied to the email body.  

    Please check this link: www.forvis.com/.../how-add-custom-email-signatures-in-dynamics-365-crm

  • Kentico-EricD Profile Picture
    5 on at

    Yes, it looks like Dynamics 365 is applying the user's signature to the new email. However, I'd like to prevent that from happening, do you know a way?

  • Suggested answer
    Naveen Ganeshe Profile Picture
    3,397 User Group Leader on at

    Hi Kentico,

    Have you tried setting default template to no? I believe it should work 

    pastedimage1675186754196v1.png 

  • Suggested answer
    Leco Lv Profile Picture
    on at

    Hi partner,

    I think Naveen is right, the signature is not auto filled when the value is NO. Or you can delete the signature template.

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 365 | Integration, Dataverse, and general topics

#1
Martin Dráb Profile Picture

Martin Dráb 62 Most Valuable Professional

#2
#ManoVerse Profile Picture

#ManoVerse 57

#3
Pallavi Phade Profile Picture

Pallavi Phade 49

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans