How can we identify that request is created from the catalog item or from an order guide

alekhyanagabhyr
Kilo Contributor

Hi,

How can we identify that request is created from either catalog item or order guide.

Thanks

Alekhya N

1 ACCEPTED SOLUTION

Please refer to the Helsinki documentation.


Request an order guide



Request Item has a new column 'Order Guide' which gets populated with the Order Guide which is used to create the request.



Thanks


Shouvik


PS: Hit like, Helpful or Correct depending on the impact of the response


View solution in original post

11 REPLIES 11

Hi All,



There is notification which gets fired when the request is created.


So, If the request is created from the order guide i need to display additional variable info in the notification.


that is the reason why I want to know whether request is created from the order guide or catalog item.



Thanks


Alekhya N


Please refer to the Helsinki documentation.


Request an order guide



Request Item has a new column 'Order Guide' which gets populated with the Order Guide which is used to create the request.



Thanks


Shouvik


PS: Hit like, Helpful or Correct depending on the impact of the response


Brad Tilton
ServiceNow Employee
ServiceNow Employee

Well, turns out the answer is: This is tracked automatically in Helsinki.


Mihir Mohanta
Kilo Sage

Hi Alekhya,


You have to do some customization if you want to know request created from catalog item or order guide.


1.Create a variable set. Add a variable "fromOrderGuide" of "Yes/No" type.


2.Write a on load catalog client script in this variable set.



function onLoad()


{


  //hide the variable set if this gets loaded on the initial order guide form


      var guide = $("sysparm_guide");


      if (guide != null)


  { //leverage the Requeste for from Order Guide


  g_form.setValue('fromOrderGuide', 'Yes');


  }


  else


  {


  //for standalone request only


g_form.setValue('fromOrderGuide', 'No');



  }



  g_form.setDisplay('fromOrderGuide', false);


}



3.Use this variable set in all the catalog items that you are using in order guide.




Note:



Make sure this script is only applies on Catalog item view.










Thanks,


Mihir


Brad Tilton
ServiceNow Employee
ServiceNow Employee

I think my favorite solution for this is one that automatically populates a field on the request with a reference to the order guide that generated the request. It would be blank if no order guide was used.



Populate Order Guide on Request Ticket - ServiceNow Guru