Previewing queries

In addition to viewing queries in the mobile app, you can preview them in a web browser.

To connect to the Rest Services, you must first use the authentication service to log in. To call the authentication services, enter the URL of your Rest Services site followed by /api/auth. Then enter a valid Infor Operations and Regulations user name and password in the query string.

http://server/rest services/api/auth?UserName=admin&Password=password

After you have logged in, you can use this request URL syntax to view the current list of all mobile queries:

http://server/rest services/api/mobile/queries

This will load and display all queries as defined in the Mobile configuration. For a specific query, supply the unique identifier of the query, as defined in the configuration. For example, this URL will display the MyBuildingInspections query.

http://server/rest services/api/mobile/queries/MyBuildingInspections

Note that this will show the query definition rather than the records returned by the query. To view the results of a query, add the /invoke route to the end of the URL.

http://server/rest services/api/mobile/queries/MyBuildingInspections/invoke