How can I transform an SO to an INV and attach an externalId using REST?
I’m having an issue including an externalId when I transform a sales order to an invoice using the REST API.
My request looks like this:
{{REST_SERVICES}}/record/v1/salesOrder/8/!transform/invoice
and the request goes through, but I get the following header:
Unknown field name externalid. Field does not exist on this record instance.
And the resulting INV does not have an externalId
Hi Jonathan,
Just check it’s not “externalId”, with a capital “I”.
If that doesn’t work, I’ll do some further testing at my end.
Thanks,
Chris
Hey Chris, I actually tried both, and neither work.
I have no problem including an externalId when I transformed a customer -> customer payment, however.
That’s really strange. Can you set it if you just create the Invoice without the transformation?
Yeah, I can create an invoice with an external ID. Is the transformation with extra fields working for you?
Just jumped on to do some testing and no fields on the transformation seem to be working for me.
It seems like there’s something fundamentally not working there – tried a few variants but no success.
You might need to do the transformation and then PATCH the Invoice for now. Would that work for you?
Hey Chris, this is what I’m doing now. Would you be able to file a bug with NS? Unfortunately, I only have basic support so I’m unable to file one myself.
POST {{REST_SERVICES}}/record/v1/salesOrder/eid:so-test/!transform/invoice
With {“externalId”: “123”}
Yields: X-NetSuite-PropertyValidation: Unknown field name externalId. Field does not exist on this record instance.
Hi Jonathan,
Sorry – I can’t raise the case either.
Chris