Need to Autopopulate assignment group in Transfer order line tasks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2025 03:06 AM
Hi,,
I have a requirement in Transfer order, in which I need to autopopulate assignment group from table "alm_transfer_order" variable "From Stockroom" assignment group should be copied to "alm_transfer_order_line" assignment group.
Do anyone have idea on this implementation, if then please share the details here.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2025 03:33 AM - edited 07-25-2025 03:33 AM
Hi @Arun Priya
Create a Business Rule
- Table: alm_transfer_order_line
- When: before insert
- Condition: current.assignment_group.nil() (to only set if not already defined)
- Advanced: check “Advanced”
(function executeRule(current, gForm, gUser, gSNC) {
// Load the parent transfer order
var transferOrder = current.transfer_order.getRefRecord();
if (!transferOrder.isValidRecord()) return;
// Get the stockroom from the transfer order
var stockroom = transferOrder.from_stockroom.getRefRecord();
if (!stockroom.isValidRecord()) return;
// Get the assignment group from the stockroom
if (!stockroom.assignment_group.nil()) {
current.assignment_group = stockroom.assignment_group;
}
})();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2025 07:52 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2025 09:13 AM
I can't see the image
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2025 05:02 AM
Hi @Rafael Batistot
Sorry for the delay I have executed but it is only updating after the description is updated.