Standard Hardware Asset Request - Question

Rajani11
Tera Contributor

Hi All,

 

The flow for Standard Hardware Asset Request does not contain the further part of sourcing request, i.e the ui page onwards based on the option selected the next list of tasks will generate. For example, if stock transfer is selected then transfer order tasks/transfer order line tasks will be generated. Where can I find this part of the flow? Please advise.

 

Thanks

1 ACCEPTED SOLUTION

Amarjeet Pal
Kilo Sage
Kilo Sage

Hello @Rajani11 ,

 

Please check the source_request UI Page and in that, we have the processing script field you can see the logic in the same area. I've included a snapshot of the code.

 

 

// creating TOL for assets
for (var j=0; j< transAmount ; j++){
var req = new GlideRecord("alm_transfer_order_line");
req.from_stockroom = from;
req.to_stockroom = dest;
req.model = gr.sys_id;
req.request_line = sys;
req.quantity_requested = 1;
req.asset = (new AssetUtils()).getFirstItem(gr, from, '6', 'available');
req.insert();
}
gs.addInfoMessage(gs.getMessage("A Transfer order to transfer {0} of \'{1}\' has been created", [transAmount, req.model.display_name]));
}

 

Thanks,

Amarjeet Pal

View solution in original post

2 REPLIES 2

Amarjeet Pal
Kilo Sage
Kilo Sage

Hello @Rajani11 ,

 

Please check the source_request UI Page and in that, we have the processing script field you can see the logic in the same area. I've included a snapshot of the code.

 

 

// creating TOL for assets
for (var j=0; j< transAmount ; j++){
var req = new GlideRecord("alm_transfer_order_line");
req.from_stockroom = from;
req.to_stockroom = dest;
req.model = gr.sys_id;
req.request_line = sys;
req.quantity_requested = 1;
req.asset = (new AssetUtils()).getFirstItem(gr, from, '6', 'available');
req.insert();
}
gs.addInfoMessage(gs.getMessage("A Transfer order to transfer {0} of \'{1}\' has been created", [transAmount, req.model.display_name]));
}

 

Thanks,

Amarjeet Pal

Amarjeet Pal
Kilo Sage
Kilo Sage

Hello @Rajani11 ,

If you have find the answer for your question . Please mark the question as accepted solution and close the thread so that it will be useful for other Community fellows.

 

Thanks 

Amarjeet Pal