Source Request UI Action in Procurement

Rajarshi1
Tera Expert

I installed the "Procurement" plugin in our ServiceNow instance and was trying to understand the overall flow. I came across two UI action named "Source Request" which are of same name and the conditions provided for both the cases are same. Can anyone please help why two UI actions are there OOTB with same name? Also what is the condition for the "sourceable" field to become true? 

 

 

find_real_file.png

 

find_real_file.png

Any leads would be of great help.

 

Thanks!

1 ACCEPTED SOLUTION

rammohanraomadd
Kilo Guru

Hi,

 

There is a difference in the condition:

For Onclick "openPopUp()" : current.parent.sys_class_name == "sc_request" && !current.parent.sourced && !current.isNewRecord() && (gs.getSession().getProperty('user_agent_browser') == 'ie' && gs.getSession().getProperty('user_agent_version') < 10)

 

For onclick "openSourceRequestPage()" : current.parent.sys_class_name == "sc_request" && !current.parent.sourced && !current.isNewRecord() && !(gs.getSession().getProperty('user_agent_browser') == 'ie' && gs.getSession().getProperty('user_agent_version') < 10)//! has been given in the condition

 

Condition for sourceable field to be true is when the catalog item related to the current request contains model then the "Sourceable" field be checked. Please find the below BR for reference:

 

Can request be sourced

 

Please let me know for any queries.

 

Regards,

Ram M

View solution in original post

5 REPLIES 5

Hi,

 

Seems functionality wise similar to submit "Transfer Order" or "Purchase Order" for the task. But only the UI Part was differ for those.

 

Regards,

Ram M