Boris Yasen
08/06/2024, 9:56 AMrecord.submitfields but it shows me This customer record -1 is not valid. Please create the customer first. But the invoice already has customer configured. Could someone help me how to solve this issue please? I tried ignoreMandatoryFields:true but it didn't workCraig
08/06/2024, 11:39 AMCraig
08/06/2024, 11:45 AMChris Mercer
08/06/2024, 12:26 PMMike Robbins
08/06/2024, 1:25 PMrecord.submitFields(), this is trying to perform an XEDIT on the transaction, not a regular EDIT. In an XEDIT event, the newRecord object doesn't have access to all of the fields. It sounds like you have another user event script that is expecting an EDIT event but since it doesn't have all of the fields, it thinks the customer field is not populated.
By default, the newRecord object in an XEDIT event only contains the values that were updated. It doesn't have all the values on the record itself.Craig
08/06/2024, 2:03 PMMike Robbins
08/06/2024, 3:31 PMLuis
08/17/2024, 10:31 AM