Does anyone have the underlying C# code that the Automation Studio Widget inside a BPM uses? I’m on public cloud and don’t believe I have a way to dump the underlying source (If there is please let me know!). I want to iterate over the widget but I don’t really want to have to wrap the automation studio call in a function that then makes a web request if there is something already prebuilt. Thanks.
1 Like
I can grab it… stand by poking

1 Like
Well
I forogt the killed the AUtomation Studio widget for my version. Maybe @chaddb has some?
1 Like
Hmmm. I don’t know if we have any left. We moved them all to custom functions when we lost the widgets for a few weeks. We couldn’t go without them for that long. Let me see what I have maybe in a test/dev env.
2 Likes
var _lv_parameters =
System.Array.Empty<Ice.Blaq.RestQueryParameter>();
object _lv_request =
new
{
Name = "Ben",
};
var _lv_response = this.GetPlugin<Epicor.Customization.Bpm.IWorkatoCallerPlugin>()
.Invoke<Action001RestResponse>(
new Ice.Lib.EcfTools.WorkatoEndpointId(
"epicor-automation-studio-v1",
"BPM_Test/HelloWorld",
Epicor.Customization.Typed.EcfHttpMethod.Post),
_lv_parameters,
_lv_request);
this.res = _lv_response.response;
this was a simple test with a body of
{
"Name": "Ben"
}
and a response of
{
"response": "Hello Ben"
}
Hope it helps.
4 Likes
Thanks so much! I’ll try this out.
2 Likes
