Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

Universal Request to incident

gnewuser
Tera Contributor

When I convert Universal request to Incident , I would like to close the Universal Request when the incident is created. 

I created a business rule on after insert on incident, and set the state as 

 

current.universal_request.state = 7;
 
current is incident here. But for some weird reason , the universal request state is set to "In progress" instead of "Closed" .
What am I missing here?
4 REPLIES 4

Brian Lancaster
Kilo Patron

Try a before insert but more likely you need to do a GlideRecord lookup of the universal request since current is the incident.

servicenow_devo
Tera Expert

Have you added condition universal request is not empty 

Thankyou

If it is an after insert then you can do current.universal_request != "" or if you do before insert on the when to run you can do this.

BrianLancaster_0-1722366231648.png

 

MattCD
Tera Contributor

The correct approach to this is to read the documentation.
https://www.servicenow.com/docs/csh?topicname=ur-state-mapping.html&version=latest

 

Quick answer: Load the demo data for the sn_inc_uni_req plugin. Alternatively, you can manually create the mappings in the universal_request_state_mapping table.