I am writing a plugin which fires on the PostCreation of an invoice. This plugin creates a commission record and is supposed to set a lookup field on the commission record which points to the newly created invoice. However there seems to be no value for the Guid of the invoice while the plugin runs - I assume it only gets a Guid once it is committed to the database?
Is there a way in which I can get the Guid of the new invoice or even set it manually, so that I know what it will be before the plugin ends?
Thanks