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 :
Finance | Project Operations, Human Resources, ...
Answered

To customize the dynamic email's subject and content in workflow

(3) ShareShare
ReportReport
Posted on by 1,264
I have faced an issue that the email's subject and content is dynamic in workflow.
 
1. if the checkbox field, for example, urgency, is turned 'Yes', the mail notification in workflow will be
 
subject: (Urgent) xxxx
Content: It is in urgency....
 
Otherwise,
subject: xxxxx
Content: .....
 
Does the email notification have IF function in workflow?  for example: IF(%Urgent% ="Yes, "(Urgent)", "") xxxxx
Categories:
I have the same question (0)
  • Suggested answer
    Mohamed Amine Mahmoudi Profile Picture
    26,443 Super User 2025 Season 2 on at
    Hi @J_Lee,
     
    You need to use conditional descision in WF.
     
     
    Best regards,
    Mohamed Amine MAHMOUDI
  • J_Lee Profile Picture
    1,264 on at
    It will duplicate a lot of process boxes.
     
    Any flexible solutions?
  • Verified answer
    André Arnaud de Calavon Profile Picture
    301,156 Super User 2025 Season 2 on at
    HI J Lee,
     
    Out of the box there is no option to use e.g. functions or expressions. To avoid too many conditions in your flow, you can consider creating a virtual field that will be exposed by the workflow class. This is like a display method. In this method you can write all logic or load data from a configuration table to return an email subject.
  • J_Lee Profile Picture
    1,264 on at
    May i know what the virtual field is? Is it the field in data entity?
  • Suggested answer
    Alireza Eshaghzadeh Profile Picture
    14,684 Super User 2025 Season 2 on at
    Hi,
    I agree with André that this requirement needs to be addressed through customization. As mentioned, you can achieve this by extending the workflow class

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 449 Super User 2025 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 422 Most Valuable Professional

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans