Who has the access to create a Universal Request and what is the property

Mishu
Tera Expert

Hello Experts,

 

To raise a universal request, is it mandatory to have a role or any user can raise it ?

Also when a Universal Request is created via an OOB inbound action "Create Universal Request", what is the role of the condition below :

 

!gs.nil(gs.getProperty("sn_uni_req.ur_email")) && email.recipients.split(",").some(function(recipient) {     return gs.getProperty("sn_uni_req.ur_email").toLowerCase().indexOf(recipient.trim().toLowerCase()) > -1; });

 

This inbound can be found in - /sysevent_in_email_action.do?sys_id=db672f79530320107465ddeeff7b12c2&sysparm_view=&sysparm_record_ta...

Mishu_1-1739867980453.png


Please help me in this , as i am not able to reach to the conclusion how it is getting created based on the condition,

 

10 REPLIES 10

Mishu
Tera Expert

@Ankur Bawiskar ...Can you help here ?

Ankur Bawiskar
Tera Patron
Tera Patron

@Mishu 

Explanation about the inbound action

Regarding the condition in the OOB inbound action "Create Universal Request," the condition checks if the property sn_uni_req.ur_email is not empty (!gs.nil(gs.getProperty("sn_uni_req.ur_email"))). It then verifies if any of the email recipients match the email address specified in the sn_uni_req.ur_email property. This ensures that the inbound email action is triggered only when the email is sent to the specified address

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

@Ankur Bawiskar As per the below screenshot in property , the value is "request.help@example.com" (which is not valid email) and in my case the recipient will be my instance email address, so the condition is not satisfying or it is failing, but still the Universal Request is getting created. how ?

Mishu_0-1739868881564.png

 

@Mishu 

I will suggest try to debug by removing the conditions from condition field and add that in script and debug the condition 1 by 1

If my response helped please mark it correct and close the thread so that it benefits future readers.

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