I have one customer suppose Customer 1 and four contact suppose Contact 1, 2, 3 and 4 which are associated with this customer. I wanted to create a new sales invoice using out of box sales invoice api
POST - api.businesscentral.dynamics.com/.../{{Tenant}}/{{Environment}}/api/beta/companies(XYZ)/salesInvoices?$expand=salesInvoiceLines
BODY
In body I wanted to set contact number suppose Contact 3, So can anyone suggest me in which field I can add contact number.
I reviewed the sales invoice api but it only contains "contactId" field, I tried that too but new sales invoice was created with default contact instead of picking contact id from posted json.
So, please give your suggestion it will work or should I create a new custom api. Any input will be helpful.

Report
All responses (
Answers (