"Source request" UI action in Procurement process

bhargavakandlak
Kilo Explorer

Hi,

I installed procurement plugin and when I click on "source request" UI action   present on catalog task it is redirecting to a page which is asking for some details. Code of UI action is below

function openSourceRequestPage() {

  var gr = new GlideRecord("sc_task");

      gr.get(g_form.getUniqueValue());

  var url = new GlideURL('$source_request.do');

  url.addParam('sysparm_stack', 'sc_task.do?sys_id='+gr.sys_id);

  url.addParam('sysparm_req_sysid', gr.parent);

  url.addParam('sysparm_sc_task',gr.sys_id);

  url.addParam('sysparm_nostack', 'true');

  window.location.href = url.getURL();

}

What is glide URL? What will '$source_request.do' do. I tried to remove "$" and verified that it is redirecting to "source_request" page, but '$source_request.do' is redirecting to a page which I am not able to find in UI pages.

I want to edit the content in '$source_request.do' page. Is there anyone who worked on this?

Thanks,

Bhargava

8 REPLIES 8

Curious, did you ever find a solution for this?   We have the same need, would like to adjust the source_request UI page, but I know that could cause me issues.   But we need to fill out another systems "Request #" within somewhere, I was thinking SN's PO creation too and your idea seemed like a good idea.



Did you idea work?   And how did you execute it?



Thanks!


Did you implement this ? if so, please let us know if that worked.

@rohit2926 please see my answer in the below post:

https://community.servicenow.com/community?id=community_question&sys_id=cf74162ddbc4bf48d82ffb2439961954

 

In short you cannot edit or view the code for the OOB source_request UI page. You can however create new functionality and a new page which utilizes the OOB functionality as per your requirements. Is is definitely more work as you mostly have to 're-invent' the wheel so to speak but it is possible.