Modify Approval Status Value
-
10-12-2019 - |
Question
I am sending an email through workflow and would like to indicate the Approval status. For example, I want the email to look like this:
Your request has been Approved by the Administrator.
OR
Your request has been Rejected by the Administrator.
HOWEVER, the email outputs:
Your request has been 0;#Approved by the Administrator.
How can I remove the 0;#?
NOTE: I am aware I could create an email for each approval status, but I was hoping to do it in just one.
Thanks in advance!
Ryan
Solution
You could have an IF/ELSE branch that says IF [%Request:Approval Status%] CONTAINS Approved set variable to "Approved" else set variable to "Rejected" and put that variable in the email body instead.
OTHER TIPS
Check below workflow actions
- Extract Substring from End of String
- Extract Substring from Index of String
- Extract Substring from Start of String
- Extract Substring of String from Index with Length Value stored in to a variable, then after that you can use this variable into your workflow actions.
Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange