lonear request application

23nu1a05d0
Giga Contributor

i am currently working on the project of lonear request application in that i wanted to reject the request such as approved status = rejected and status = rejected.  I want the  flown on that context.

2 REPLIES 2

Dr Atul G- LNG
Tera Patron

You need to create a fix script to fetch all records and update their status to “Rejected.”

*************************************************************************************************************
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/dratulgrover [ Connect for 1-1 Session]

****************************************************************************************************************

Tanushree Maiti
Giga Patron

Hi @23nu1a05d0 

 

To reject a Loaner Request in ServiceNow and accurately set the approval and record status, you should configure your ServiceNow Flow Designer 

 

Sample Steps :

 1.Ask for Approval Action

Add the core approval action. Configure the condition to wait for the approver’s decision.

  1. Add an If Logic

Directly after the approval action, add a logical condition. 

  • Condition Label: If Approval is Rejected
  • Condition Value: Trigger - Ask for Approval -> State is Rejected
  1. Inside the 'If' Branch: Update Record (Approval State) :Update the approval record or the parent Loaner Request table to reflect the rejection: 
  • Table: [sysapproval_approver] or your custom Loaner Request Table
  • Fields to Set:
    • Approval: Rejected
    • State: Rejected 
  1. Inside the If Branch: Update Record (Request Status) :Update the primary Loaner Request record to close out the workflow:
  • Table: Loaner Request Table (like x_snc_loaner_req) or RITM table
  • Fields to Set:
    • State: Closed Incomplete or Rejected
    • Active: false 
    • Stage: Rejected 
Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin: