This guide will walk you through the steps to identify the specific item IDs within your Inspection/Template which can be used as part of a bespoke/custom integration or with Microsoft Flow to populate a Spreadsheet or a SQL database.
- Item_ID: An Item ID is a unique identifier for any field within your inspection or template.
- Response_ID: You can also follow these steps to retrieve a response ID (for example, Yes/No/NA).
We will show you how to inspect the template content in the Google Chrome web browser using the “Preview” feature within the Template Editor in iAuditor. A similar approach works for any type of web browser. Specifically, using Google Chrome’s Developer Tools to find the Item ID of a specific question within a Template along with the corresponding response ID.
There are different ways of finding Item IDs. In general, you can retrieve the Inspection content of an Inspection conducted against a template of interest using a REST API client like ours here and inspect the content for item IDs in a text editor. We will cover this method in another guide soon.
Locate the Item_id
- Log into your iAuditor Account on the web so we can locate the relevant Templates/Inspections
- Once you are in the template editor you will see the Preview on the right hand side.
- Locate the question you are looking to find the Item ID for.
- To find the Item ID, right-click on the field and select “Inspect” as shown below:
- Chrome Developer Tools will open and present you with the code (HTML/CSS) from the Web Page.
- You can use this to begin selecting specific items on the page either by hovering over/clicking parts of the HTML within the Elements tab:
- Here we’ve located the “Is the car clean?” question; we can see the corresponding item ID just above the question text (item-960c98c3-74f2-458f-b121-edb818b8aede) and displayed on the Web Page itself shown in the screenshot below.
- Double click the entry for the Item ID within the Elements view to be able to copy and paste the contents.
- The iAuditor API and MS Flow require you to remove the “item-” prefix. You’ll only need the number reference as shown below:
- The same steps can be applied to locate a specific response ID. In the below example, we’ve discovered the “Yes” response from the Elements Tab (and highlighted in the preview mode) as shown below:
- You can now use the same steps to discover any Items or Responses from within your Inspection! To see the results of this being used in conjunction with MS Flow, take a look at our “Exporting your Item & Response Data to an Excel 365 Table” guide.