If an Epicor function is called externally (as a REST API Endpoint), how can the function read the JSON packet that has been passed to it?
I’ve searched high and low, and I can only find how to access JSON data from an outbound API call response values.
For context, I am trying to send data to an Epicor function that uses logic to update/create entries. I find this to be more scalable for my company than making multiple API calls from our web app.
Using the below code block as an example, my main issue is what to replace the "{number:1000, str:'string', array: [1,2,3,4,5,6]}" argument within the JObject.Parse method with.
dynamic d = JObject.Parse("{number:1000, str:'string', array: [1,2,3,4,5,6]}");
Console.WriteLine(d.number);
Console.WriteLine(d.str);
Console.WriteLine(d.array.Count);
Does anyone know the correct argument(s) to represent the content of the API call?
That’s going to depend on what you’re actually passing into the function.
If you can give me the signature for your function and an example of what you’re passing to it, I should be able to give you some code examples that will work for your specific case.