Xero - beautiful accounting software

Xero Developer Help Center

Xero Developer Community

Community > Add-ons >

Updating the existing invoice of an opportunity if sent to xero more than one time

Started by sachin sankad -   in Add-ons

Hi All,

I am using Dime for developers to integrate salesforce CRM with xero. I am new to xero.

I want to update the existing invoice of an opportunity even if it is sent to xero multiple times. I need to do this using apex code.

Is it possible to update the existing invoice of an opportunity if it is sent to xero more than one time?

Can anybody provide me code for this.

Thanks,
Sachin
Hi Sachin,

If you set the Xero Id of the invoice when sending it will update the existing invoice rather than creating a new one. However you can only update an invoice while it's in the Draft status.

Regards,
Dan
 

Dan Fowlie