Formatting Content in Workflow Email

Randal Flinn 311 Reputation points
2021-03-02T21:02:02.947+00:00

Hello,

Is it possible to conditionally format email content that is generated from a SharePoint workflow? I have a field (# of Workdays) that I would like to highlight in the Workflow email based on the value. For values less than 5 = Red, values greater than 5 and less than 13 = yellow and greater than 13 = green.

Is there a method to accomplish?

Thank You

SharePoint Server Development
SharePoint Server Development
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Development: The process of researching, productizing, and refining new or existing technologies.
1,573 questions
0 comments No comments
{count} votes

Accepted answer
  1. Amos Wu-MSFT 4,051 Reputation points
    2021-03-03T06:40:41.557+00:00

    SharePoint workflow has a condition option, we could use this to do the logical operation.

    1. Define a workflow number variable to get the workdays column value.
    2. Define a workflow string variable as the body of the email.
    3. Judge the number value and set the email body of different color.
      73664-image.png
      73673-image.png
      73681-image.png

    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 additional answers

Sort by: Most helpful