unfamiliar territory here. I need a piece of code to run every day at 10.00am but am unsure where to create the code.
What needs to happen
Get 3rd party API from Company Table
Get daily data from BAQ
send dataset to 3rd party API
I have a BAQ that collects the data required.
I know i can add code to an updateable BAQ but my BAQ is not updateable.
I thought maybe a BPM but there is no specific method or data event required to send the code. In fact, i do not want the code to fire an any specific method or data event…
I have everything ready in terms of my daily schedule.
Where would i place my code so that i can attach it to a daily schedule?
You’re welcome! If you go to the post I quoted that from, there’s a library you can download and import that has that function along with some others that is helpful for managing BAQs and other datasets in functions. You can call the BAQ function, just passing in the BAQ name, and get the dataset without adding any additional code. Just add a the helper library to in your references > libraries tab.
Thanks for that. Unfortunately for me, we are still on 3.2.500 and your library is 4.2.500
I also need to add a reference to System.Net.Http so that i can access HttpClient for an API call to a 3rd party payroll system but im struggling to add any external references…
My external Visual Studio class project works perfectly, getting it to work within Epicor is a different thing all together
You should just be able to add using System.Net.Http in the usings tab of the code editor:
You can also add your VS Class Library if you compile it to a DLL, and add it to your server assemblies folder (there are a few more steps to this, but it’s not difficult).
My objective is to send data from the Labor table to UKG Rest service. My Custom Library works in visual studio test by passing the ID, Secret, URL and data as a datatable to the library. The library converts the data to json and sends it. I tested in in VS with another project referencing the library.
There is a BAQ with 2 parameters (From / To) that gets the data.
What is the step by step process to do this?
I have tried
Post Process BPM on GetList of the Labor table
Created a function, cant see how to schedule or test that…
I set up remote debugging but get an error about no symbols loaded…
Currently,
my VS code works, i cant get it working in Epicor…