Some PDIs are currently unavailable, and PDI actions are paused. View the latest updates here. Read More

itsm

RoshB
Giga 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 

2 REPLIES 2

Ankur Bawiskar
Tera Patron

@RoshB 

is that a notification?

screenshots please

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