Hi, anyone know if it's possible to have a UE beforeSubmit script to work on setting Inventory Details on Item Fulfillment (Bin and Status)? I'm testing it but when it's tryna save it goes to show the error first ("inventory detail not configured for line 1") before it even processes the script.
m
Matt Carter
03/19/2024, 8:23 PM
@Justine Cruzit It should be possible, can you post a copy of the code? Something in the code is not finalizing the addition of the inventory details line prior to saving.
j
Justine Cruzit
03/19/2024, 8:26 PM
Hi @Matt Carter, thanks for checking in on this one. Here's the code. My log.debug though don't work as immediate as the beforeSubmit comes in, so I thought it's not triggering the UE script in general.
m
Matt Carter
03/19/2024, 8:31 PM
Hi @Justine Cruzit, you're welcome, your code didn't actually post. There is a chance that you're beforeSubmit script isn't triggering at all though. Are you trying to get it to trigger from an integration or when a user is using NetSuite?
j
Justine Cruzit
03/20/2024, 9:07 AM
Hi @Matt Carter, I'm testing it on both UI saving and through integration we have, both do not show the first log.debug I got on entry of beforeSubmit
m
Matt Carter
03/20/2024, 7:10 PM
@Justine Cruzit Is the log.debug not showing for either way?
The integration route I understand. The beforeSubmit function doesn't run when a record is affected from another server side script. If the log.debug isn't showing from the UI perspective, there another issue causing a problem. Check the script role and user permissions.