C# external program insert AR data

My main goal is to create a C# program that inserts AR data. (using ARInvoiceAdapter, unless someone has a better suggestion.)
I got the part about creating a session with login credentials.
I created an invoice group with GetNewInvcGrp.
When I try to create a header with GetNewInvcHeadType, I get an error:

the formatter threw an exception while trying to deserialize the message:
there was an error while trying to deserialize parameter erp.BO:ARInvoice:ds
the inner exception message was unable to find assembly epicor.servicemodel

Is there any example code for inserting AR data?
Is there any documentation on the correct order to call things?

Thanks for any help.

You should use REST or the WCF Services for this. Look at the WCF Guide in EpicWeb

While I prefer all new integrations to be done in REST, there are (at least) three approaches to integrations as alluded to by @josecgomez above. I have a rough first draft overview I posted some time ago up here Integration Doc - Beta testers needed - Experts' Corner - Epicor User Help Forum

If you still decide to do the ‘Impl DLL’ approach, you will need to ensure you are all the dlls required to make the Impls function (and update them as needed). In your case, the error is straightforward:
epicor.servicemodel is missing. That dll should be in a client deployment. Just copy and paste or include as reference in your coding environment.

1 Like