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

(1) ShareShare
ReportReport
Posted on by 65
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:
  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,405 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 65 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 9,833 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,455 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans