- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-10-2018 11:37 PM
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?
Any leads would be of great help.
Thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-11-2018 01:56 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-11-2018 03:25 AM
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