- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2023 10:51 AM
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2023 05:46 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2023 05:46 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2023 06:56 AM
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