I am using the Cloud version of Mongoose.
We have a Mongoose form that calls a custom ION API in form script. It always works the first time someone uses a form. We are having trouble when people open the form the next day and try again. I think it's getting an expired token. If they log out of Infor then the form will work.
Is there a way to get a new token before the ION API call? Or to check if the token is expired? I need to find a better solution than having people log off.
This is how I'm calling the custom ION API. I don't know what the parameters for InvokeParameterList are. I think I looked that up once. But I can't remember how I did that.
InvokeRequestData request = new InvokeRequestData();
InvokeResponseData response;
request.IDOName = "IONAPIMethods";
request.MethodName = "InvokeIONAPIMethod";
InvokeParameterList parameters = new InvokeParameterList
{
"1",
"0",
"CustomerAPI/MongooseInterfaces",
"GET",
method,
{ string.Empty, true },
"application/json",
"10000",
{ string.Empty, true },
{ string.Empty, true },
{ string.Empty, true },
{ string.Empty, true }
};
request.Parameters = parameters;
response = IDOClient.Invoke(request);