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

 

How can I transform an SO to an INV and attach an externalId using REST?

Rookie Asked on September 1, 2020 in SuiteTalk.
Add Comment
6 Answer(s)

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

Intermediate Answered on September 1, 2020.
Add Comment

Hey Chris, I actually tried both, and neither work.

I have no problem including an externalId when I transformed a customer -> customer payment, however.

Rookie Answered on September 1, 2020.
Add Comment

That’s really strange. Can you set it if you just create the Invoice without the transformation?

Intermediate Answered on September 1, 2020.
Add Comment

Yeah, I can create an invoice with an external ID. Is the transformation with extra fields working for you?

Rookie Answered on September 1, 2020.
Add Comment

Just jumped on to do some testing and no fields on the transformation seem to be working for me.

Intermediate Answered on September 1, 2020.
Add Comment

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?

Intermediate Answered on September 1, 2020.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.
  • This site made possible by our sponsors:   Tipalti   Celigo   Limebox   Become a Sponsor