Ali45
(Alison Francisco Miguel Acosta Uc)
September 27, 2024, 7:23pm
1
Hello everyone,
I was trying to call a “function” from a “visual studio” project but I haven’t had success yet, have any of you managed it?
A solution I found was to create a BPM that calls the function, in order to update some field and activate the BPM, but I think it would not be correct, nor the most optimal.
Invoking it by API is not an option
Banderson
(Brandon Anderson)
September 27, 2024, 7:26pm
2
Welcome to the forum. You can start here, people do that all the time, and this thread has a lot of sample code and links to other threads.
@klincecum , I’ve been able to get past the Function issue, but I’m still having a problem calling the function within C#. Below is thte code I’m using in the call:
private static async void CallPostFunction()
{
try
{
string ApiKey = Properties.Settings.Default.APIKey;
var RestClient = new RestClientBuilder()
.SetAppServerUrl(Properties.Settings.Default.AppServerURL)
.SetCompanyId(Prop…
Ali45:
A solution I found was to create a BPM that calls the function, in order to update some field and activate the BPM, but I think it would not be correct, nor the most optimal.
Without knowing what your project is, we won’t have any way of answering that question for you. Each tool has it’s place.
kve
(Kevin Veldman)
September 27, 2024, 7:26pm
3
The easiest way would probably just be to call the function via API.
Ali45
(Alison Francisco Miguel Acosta Uc)
September 27, 2024, 8:29pm
4
Thanks for the response, but what I’m trying to avoid is calling it through the rest API
1 Like
jtownsend
(John Townsend)
September 27, 2024, 8:33pm
6
That’s basically why they exist though.
josecgomez
(Jose C Gomez)
September 27, 2024, 8:50pm
7
The entire Epicor / Kinetic ERP is built on a RESTFul architecture you have no choice in the matter. You either call it via rest, or you use a library that calls it via rest. Or use a BPM that also… calls it via Rest
1 Like
klincecum
(Kevin Lincecum)
September 27, 2024, 10:05pm
8
So, umm, how are you calling the bpm?
klincecum
(Kevin Lincecum)
September 28, 2024, 3:07pm
9
Oh wow, I forgot about that one. That was an adventure.
Got the most replies that year lol.