Use PDIs? Take our 5-minute survey to help shape the PDI roadmap.

itsm

RoshB
Tera Contributor

Requested Item ${sysapproval} -${wf_activity}- approved   

this wf-activity is only working for workflow item notification but for flow its showing empty is their any way we can manage for both workflow and flow notification without creating separate for each 

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron

@RoshB 

is that a notification?

screenshots please

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

4 REPLIES 4

Ankur Bawiskar
Tera Patron

@RoshB 

is that a notification?

screenshots please

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

Here is the email templet body i need something so it will show both approvals part for now its only displaying for workflow 

@RoshB 

if you are using flow then that wf_activity won't come

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

Tanushree Maiti
Tera Patron

Hi @RoshB 

 

This behavior is expected.

${wf_activity} is a Workflow context variable that is populated by the legacy Workflow Editor approval activities.

When the approval is generated through Flow Designer, there is no workflow activity context, so ${wf_activity} resolves to blank/empty

 

In Flow Designer: Approvals are created by Flow Designer actions (such as Ask for Approval)

Create a Flow Variable (like Approval_Type) under flow.

  1. Set value:
    • "Manager Approval"
    • "Finance Approval"
    • "CAB Approval"
  2. Include that value in the email subject/body.

e.g

 

Requested Item ${number} - ${Approval_Type} - approved

 

 

Please Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti