I'm struggling to invoke a custom IONAPI from a Mongoose form. In the past, I've been able to invoke the IONAPI to start a ION workflow. But I can't figure out how to call a custom ION API from Mongoose Form Script. What I mean my custom IONAPI is a service that I wrote. Does anyone know what I'm doing wrong?
I can call my service in IONAPI. This is a very simple GET service that only has one input parameter. It returns one field in the body to indicate success.
Here is a screenshot of calling my service from IONAPI.

Here is the Request URL.
https://mingle-ionapi.inforcloudsuite.com/AECI_TRN/CustomerApi/MongooseInterfaces/MI/api/ValidateGLAccount?glAccount=101301.000.0000000.000.00.0000000
When I call my IONAPI from Mongoose Form Script. Then I get a HTTP 500 error.
Here is how I'm invoking the IONAPI in Mongoose Form Script. When I call an IONAPI to start a workflow, then I need the variable "parms". I'm not sure if I need the "parms" variable when I call my IONAPI. I don't know the layout of the "InvokeParameterList". I'm just using what I used when I invoked the IONAPI to start a workflow.
var parms = "";
InvokeRequestData request = new InvokeRequestData();
InvokeResponseData response;
request.IDOName = "IONAPIMethods";
request.MethodName = "InvokeIONAPIMethod";
InvokeParameterList parameters = new InvokeParameterList
{
"1",
"0",
"IONSERVICES",
"GET",
"/CustomerApi/MongooseInterfaces/MI/api/ValidateGLAccount?glAccount=101301.000.0000000.000.00.0000000",
parms,
"application/json",
"10000",
{ string.Empty, true },
{ string.Empty, true },
{ string.Empty, true },
{ string.Empty, true }
};
request.Parameters = parameters;
response = IDOClient.Invoke(request);
For reference, this is how I'm invoking the IONAPI to start a workflow. Everything is the same except for the parms. Which I don't think I have parms. Since my one parameter is passed in the RequestURL.
var parms = "[" +
"{"+
""Name":"logicalId","+
""Type":"query","+
""Value":"lid://infor.iondesk.1""+
"},"+
"{"Name": "StartWorkflowJSONBody", " +
""Type": "body", " +
""Value": " +
"{"+
""workflowName": "" + workflow + "","+
""instanceName": "MONGOOSE","+
""inputVariables": ["+
"{"+
""name": "InstanceName","+
""dataType": "STRING","+
""value": "" + instanceName + """+
"}"+
"]"+
"}" +
"}]";
InvokeRequestData request = new InvokeRequestData();
InvokeResponseData response;
request.IDOName = "IONAPIMethods";
request.MethodName = "InvokeIONAPIMethod";
InvokeParameterList parameters = new InvokeParameterList
{
"1",
"0",
"IONSERVICES",
"POST",
"/process/application/v1/workflow/start",
parms,
"application/json",
"10000",
{ string.Empty, true },
{ string.Empty, true },
{ string.Empty, true },
{ string.Empty, true }
};
request.Parameters = parameters;
response = IDOClient.Invoke(request);