Hey all, has anyone had any luck creating Vendor Prepayment records and setting the Purchase Order field value? I set the entity field first, then I try to set the Purchase Order field using the PO internal id, but I get the error quoted below. I've even tried record.transform, which seems to work even though it's not a supported transformation type according to Netsuite documentation, but I get the same error. I can create the prepayment from the PO using Netsuite's Enter Prepayment button, but we need to be able to create these prepayments via SuiteScript.
"name":"INVALID_FLD_VALUE","message":"You have entered an Invalid Field Value 3134426 for the following field: purchaseorder"