When I want to call a Mongoose REST Service API like:
/MONGOOSE/IDORequestService/ido/load/{ido}
I need to specify the X-Infor-MongooseConfig header.
What is this config? Where do I manage these configurations?
It is the configuration, basically the database you log in to. You can see it on the Mongoose Log in screen or when logged in on the Help→About dialog.
Usually it is of the following form:
For tenant COMPANY_ENV it is COMPANY_MONGOOSE_ENV_DEFAULT.
Hi,
Did you manage to get this going please?
I am trying to set up exactly the same API call in a form script in Factory Track and I am stuck on the same stage with the X-Infor-MongooseConfig header. Any idea where I could set this up?
I am not sure if you want to call the FactoryTrack API or an external Mongoose application. Either way, log into the application for which you want to call the API, then go to Help→About. Somewhere in the text you will have "Connected via data configuration XXX" The XXX is what you need in the X-Infor-MongooseConfig header.
Hi Carsten,
Thank you for your reply. I am trying to do an API call to Infor Syteline API from Factory Track form script by using IONAPIMethod2, the request I am sending is returning "Missing Mongoose configuration header". I know what it is, but I am just unsure where to add it in my request.
Add it to the parameters of the API call. The IONAPIMethods.InvokeIONAPIMethodX methods take a methodParms parameter that is a Json array of parameters. Each parameter is a Json object:
{"type": "header/body/query/path", "name": "name of parameter", "value": "value of parameter"},
so in your case:
[{"type": "header", "name": "X-Infor-MongooseConfig", "value": "Configuration Name"}]
where Configuration name is the one you found above. Add any other paramters to the array.
That was the missing piece! Thank you so much Carsten!