• Contact
  • Newsletter Archive
CRM Developer's How-To
  • Contact
  • Newsletter Archive

Articles Tagged: Email

“Invalid Party object type 9” error when trying to send an email

If you get an “Invalid Party object type 9” error when you’re trying to send an email, either from code or from a workflow, it is because you have set the From Party to a team. For instance: Or it could be that you set It’s completely valid for an Opportunity to have a Team […]

Read More →

How do I send an email using a mail template and connect it to a system entity, e. g. an Incident?

First you need to create an email template. Go to Settings | Templates | Email Templates: Then click the New button and select the desired entity. If the entity you want to connect the email template to is not shown in the list, just select Global. It is not possible to extend the list of […]

Read More →

How do I send an email with attachment and connect it to a system entity, e. g. an Incident?

Sample code to send an email with custom attachement, connected to an Incident entity: Once the email has been sent, it should be visible as an email activity in the selected incident entity’s timeline.Observe: The sample supplied requires early bound entity classes for ActivityParty, Email, ActivityMimeAttachment, SendEmailRequest and SendEmailResponse!

Read More →

How do I send a simple email and connect it to a system entity, e. g. an Incident?

Sample code to send a simple email connected to an Incident entity: Once the email has been sent, it should be visible as an email activity in the selected incident entity’s timeline.Observe: The sample supplied requires early bound entity classes for ActivityParty, Email, SendEmailRequest and SendEmailResponse!

Read More →

Two ways to change the default “From” email address to a Queue for Case/Incident emails

A common scenario in Dynamics 365 CRM is that you have a mail queue where the customers can send support requests. When a mail is received in the queue, a Case/Incident is automatically created and the mail attached. When your support staff replies to that mail, it will be from their personal mail address. So […]

Read More →

Subscribe to our Newsletter

Check your inbox or spam folder to confirm your subscription.

Recent Posts

  • Why doesn’t my multi-select option set field show up in the Business Rule designer?
  • How do I hide a Ribbon button if the Form is “dirty”/contains unsaved changes?
  • “Invalid Party object type 9” error when trying to send an email
  • How do I impersonate a user so I can see what he sees?
  • A MUST-HAVE browser extension: Level Up for Dynamics 365/Power Apps

Archives

  • November 2025 (1)
  • October 2025 (5)
  • June 2024 (2)
  • January 2024 (4)
  • May 2023 (3)
  • April 2023 (3)
  • March 2023 (10)
  • February 2023 (2)

Categories

  • Getting Started with Dynamics 365 CRM development
  • General Dynamics 365 CRM development
  • Tips from the coach
  • Plugins
  • XRM Toolbox
  • C# code
  • Javascript
  • Ribbon customization
  • Templates
  • Deployment
  • Debugging – Errors & Bugs
  • I'm sorry Dave! I'm afraid you can't do that!
  • Contact
  • Newsletter Archive
© Copyright [this-year] CRM Developer's How-To