Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM forum
Suggested answer

Dynamic value not working on the email body in workflow

Posted on by Microsoft Employee

Hello Everyone,

I am writing a workflow that sends an email on-field value change. I am using dynamic values. The values are working fine on "To" and "Subject" but it is not working on the email body. Any suggestions on that. What is the error?

Here is the screenshot.

emailproblem.PNG

  • Claudia Ardelean Profile Picture
    Claudia Ardelean 10 on at
    RE: Dynamic value not working on the email body in workflow

    Hi,

    I've tried both with a workflow in the solution and to create a completely new, no difference. However, I managed to get further yesterday when I realized the values did work even though they did not get yellow, just needed to save in between every added value.

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Dynamic value not working on the email body in workflow

    Hi,

    Please Check you form proper whether the form on which you are trying which is not part of your solution. Or else i suggest you to create new form for trail purpose and add it and modified it then check whether you and able to get dynamic value or not.

    Thanks,

    Please like and subscribe my YouTube Channel and follow my blog for latest interview question and answer.

    juniorcrmblog.blogspot.com/

    juniorazurecrm.blogspot.com/

    www.youtube.com/.../videos  

  • Claudia Ardelean Profile Picture
    Claudia Ardelean 10 on at
    RE: Dynamic value not working on the email body in workflow

    Hi

    I have the exact same issue, working in the header but not in the body (even though I use the Look for and Add. Customer is on on-prem version 8.1.

    pastedimage1652269073897v1.png

    I've tried different web browsers but no difference.

    Did you find a solution for this at the end? 

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Dynamic value not working on the email body in workflow

    Dear Roohi,

    I selected it from the look for.

  • Suggested answer
    Inogic Profile Picture
    Inogic 23,963 on at
    RE: Dynamic value not working on the email body in workflow
    Hi Mohammad,

    You can not manually enter the input for retrieving dynamic values from entities. You will need to select the related entity and fields (which you want to populate the value dynamically) from the “Look For” options and the chick ok “Add” button. Then click on the position in the “Email Body” (where you want to add the dynamic value) and click on the “Ok” button. This way the “Dynamic Value” will be added in the “Email Body” and it will be highlighted in “Yellow”.  
     

    Please refer below screenshot,
    7382.image004.jpg

    And when you execute the workflow on the related entity, then it will populate the “Email Body” based on the values provided in the workflow.
     

    Please refer to the below screenshot,
    1106.image005.jpg

    Hope this helps,
    Thanks!
  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Dynamic value not working on the email body in workflow

    Hi Mohammad,

    The dynamic value that filled in to the email body based on what fields in the email form, regarding? If so, you can check the regarding field has filled or not?

    pastedimage1611305827431v1.png

    and you can clear cache or change another browser to test again.

    Or you can try to use 'send email ' action of power automate to achieve the same results.

    pastedimage1611306065723v3.png

    Go Power Automate(https://us.flow.microsoft.com/en-us/ ) to create an automated flow, select trigger 'when  a record  is update'

    pastedimage1611306136517v4.png

    then get dynamic value fron previous step.

    pastedimage1611306475241v5.png

    Also, you can create email message then send email using a the "Send Email" bound action that is part of the "CDS (current environment)" connector. 

    you can refer it:Send Dynamics 365 Emails from Power Automate - CRM Software Blog | Dynamics 365 

    Regards,

    Leah Ju

    Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,986 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,588 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans