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

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

Customer Email Notification in Dynamics 365

(0) ShareShare
ReportReport
Posted on by
Need assistance to create Flow for New Case Creation/Update/Modify  Email Notification. I can't figure out the right table and value for customer.
I have the same question (0)
  • Suggested answer
    mehmetseckin Profile Picture
    5 on at
    Customer Email Notification in Dynamics 365

    Hello! The 'Customer' field is a polymorphic lookup, which means it can refer to records in two different tables: Accounts or Contacts. Your Power Automate flow needs to check which type of record it is before you can get the right details.

    Here is a step-by-step guide to handle this:

    1. Trigger on Case:
      • Start with the Dataverse connector trigger: When a row is added, modified or deleted.
      • Set the Change type to Added or Modified.
      • Set the Table name to Cases.
      • Set the Scope as needed (e.g., Organization)
    2. Check Customer Type:
      • Add a Condition control action.
      • On the left side of the condition, select the Customer (Type) dynamic content from your trigger. This field will contain either accounts or contacts.
      • Set the operator to is equal to.
      • On the right side, type the value accounts.
    3. Get the Customer Record:
      • If Yes branch (Customer is an Account):
        • Add a Dataverse action: Get a row by ID.
        • Table name: Accounts
        • Row ID: Select the Customer (Value) dynamic content from the trigger. Power Automate will automatically extract the record's unique ID (GUID).
      • If No branch (Customer is a Contact):
        • Add a Dataverse action: Get a row by ID.
        • Table name: Contacts
        • Row ID: Select the Customer (Value) dynamic content from the trigger.
    4. Send the Email:
      • Add your Send an email (V2) action after the condition.
      • To get the customer's email address, you need to reference the output from the steps inside your condition. An easy way to do this is with a coalesce() expression, which picks the first non-null value.
      • In the To field, go to the expression editor and enter the following (remember to replace the action names with your actual step names):
      • Fill out the Subject and Body of your email using dynamic content from the trigger (like Case Number) and the 'Get a row' steps.

     

    Hope this helps! Feel free to let us know if you have any further questions.

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
DAnny3211 Profile Picture

DAnny3211 262

#2
Abhilash Warrier Profile Picture

Abhilash Warrier 137 Super User 2025 Season 2

#3
Martin Dráb Profile Picture

Martin Dráb 85 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans