Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Suggested answer

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

(4) ShareShare
ReportReport
Posted on by 167
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:
  • Suggested answer
    Alireza Eshaghzadeh Profile Picture
    Alireza Eshaghzadeh 13,062 Super User 2024 Season 2 on at
    To customize the dynamic email's subject and content in workflow
    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
  • J_Lee Profile Picture
    J_Lee 167 on at
    To customize the dynamic email's subject and content in workflow
    May i know what the virtual field is? Is it the field in data entity?
  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,642 Super User 2024 Season 2 on at
    To customize the dynamic email's subject and content in workflow
    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
    J_Lee 167 on at
    To customize the dynamic email's subject and content in workflow
    It will duplicate a lot of process boxes.
     
    Any flexible solutions?
  • Suggested answer
    Mohamed Amine Mahmoudi Profile Picture
    Mohamed Amine Mahmoudi 10,169 Super User 2024 Season 2 on at
    To customize the dynamic email's subject and content in workflow
    Hi @J_Lee,
     
    You need to use conditional descision in WF.
     
     
    Best regards,
    Mohamed Amine MAHMOUDI

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

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,642 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,371 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans