im trying to create an "invoice" record using plugin. here is my code.
Entity newentity = new Entity("invoice");
newentity["name"] = "Something";
im getting business process error. when i use the same code to create account record, record is getting created.
when i debug this plugin, getting exception because of last line (ie:, service.Create(newentity)).
is it not possible to create "invoice" record using plugin.?
or is there any other way to create "invoice" record using plugin.?
any suggestions to create invoice record using plugin ?
here is the error message.
At the very least you also need to add a customer.
newEntity["customerid"] = new EntityReference("account", new Guid("509A5DCE-BD56-E111-9BBC-000C29336979"));