{"id":72763,"date":"2026-10-21T20:38:15","date_gmt":"2026-10-21T12:38:15","guid":{"rendered":"https:\/\/oihelp.corporate.ifs.com\/help\/?page_id=72763"},"modified":"2026-10-22T21:33:09","modified_gmt":"2026-10-22T13:33:09","slug":"getting-started","status":"publish","type":"page","link":"https:\/\/oihelp.corporate.ifs.com\/help\/oi-odata\/getting-started\/","title":{"rendered":"Getting Started"},"content":{"rendered":"<p class=\"intro-text\">This guide explains how to configure the OI OData Adaptor, create a dataset query, add parameters, and display the results on an Explorer page.<\/p>\n\n<p class=\"left-bar\">This article applies to version 26R2 and later of IFS OI Explorer.\u00a0<\/p>\n<p class=\"intro-text\"><strong>Before you begin, make sure you have:<\/strong><\/p>\n<ul class=\"intro-text\">\n<li style=\"list-style-type: none;\">\n<ul class=\"intro-text\">\n<li>Access to IFS OI Core Management, with rights to create datasources.<\/li>\n<li>An Explorer workspace where you can create a page.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2 id=\"1-create-the-oi-odata-datasource\" class=\"page-subheading\">1. Create the OI OData datasource<\/h2>\n<p class=\"intro-text\">You only need to do this once per server. One datasource can hold as many datasets as you like.<\/p>\n<ol class=\"intro-text\">\n<li>Open IFS OI Core Management and click the <strong>Configuration<\/strong> icon.<\/li>\n<li>Select <strong>Datasources<\/strong> from the middle panel, then click <strong>Create New Datasource<\/strong>.<\/li>\n<li>\n<p class=\"intro-text\">Fill in the fields:<\/p>\n<table style=\"width: 78.7605%; border-collapse: collapse; border: 1px solid #cccccc;\">\n<thead>\n<tr>\n<th style=\"border: 1px solid #cccccc; padding: 6px 8px; text-align: left; width: 22.8614%;\">Field<\/th>\n<th style=\"border: 1px solid #cccccc; padding: 6px 8px; text-align: left; width: 55.7522%;\">Value<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"border: 1px solid #cccccc; padding: 6px 8px; width: 22.8614%;\"><strong>Name<\/strong><\/td>\n<td style=\"border: 1px solid #cccccc; padding: 6px 8px; width: 55.7522%;\">OI OData (or any name you like)<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #cccccc; padding: 6px 8px; width: 22.8614%;\"><strong>Description<\/strong><\/td>\n<td style=\"border: 1px solid #cccccc; padding: 6px 8px; width: 55.7522%;\">Queries Explorer's own data through OData<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #cccccc; padding: 6px 8px; width: 22.8614%;\"><strong>Data Type<\/strong><\/td>\n<td style=\"border: 1px solid #cccccc; padding: 6px 8px; width: 55.7522%;\"><strong>Dataset<\/strong><\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #cccccc; padding: 6px 8px; width: 22.8614%;\"><strong>Adaptor<\/strong><\/td>\n<td style=\"border: 1px solid #cccccc; padding: 6px 8px; width: 55.7522%;\"><strong>OI OData Adaptor<\/strong><\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #cccccc; padding: 6px 8px; width: 22.8614%;\"><strong>Time Zone<\/strong><\/td>\n<td style=\"border: 1px solid #cccccc; padding: 6px 8px; width: 55.7522%;\">UTC. OI OData returns times in UTC.<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #cccccc; padding: 6px 8px; width: 22.8614%;\"><strong>Request Timeout<\/strong><\/td>\n<td style=\"border: 1px solid #cccccc; padding: 6px 8px; width: 55.7522%;\">Leave the default (1 minute) to start with. Raise it if large queries time out.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/li>\n<li>\n<p class=\"intro-text\">The adaptor has no <strong>Adaptor Parameters<\/strong>. There is no server, database or password to enter: the adaptor always queries this server, signed in as the user viewing the page.<\/p>\n<\/li>\n<li>Click <strong>Save<\/strong>.<\/li>\n<\/ol>\n<hr \/>\n<h2 id=\"2-write-your-first-dataset-query\" class=\"page-subheading\">2. Write your first dataset query<\/h2>\n<p class=\"intro-text\">After saving, click <strong>Create one now<\/strong> to add a dataset.<\/p>\n<ol class=\"intro-text\">\n<li>Enter a <strong>Name<\/strong>, such as <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">Assets - Wells<\/span>, and a <strong>Description<\/strong>.<\/li>\n<li>\n<p class=\"intro-text\">In the <strong>Query Editor<\/strong>, type:<\/p>\n<p class=\"intro-text\"><span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px; background-color: #eeeeee; padding: 2px 5px;\">Entities?$filter=startswith(Name,'WELL-')&amp;$select=Name,DisplayName,Latitude,Longitude&amp;$orderby=Name<\/span><\/p>\n<\/li>\n<li>\n<p class=\"intro-text\">Click <strong>Save<\/strong>.<\/p>\n<\/li>\n<\/ol>\n<p class=\"intro-text\">The query text is the part of an OData URL <strong>after<\/strong> <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">\/odata\/<\/span>. The adaptor adds the server address for you, so don't include <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">https:\/\/...<\/span> or <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">\/odata\/<\/span>.<\/p>\n<p class=\"intro-text\">This dataset returns one row per well, with four columns:<\/p>\n<table style=\"width: 100%; border-collapse: collapse; border: 1px solid #cccccc;\">\n<thead>\n<tr>\n<th style=\"border: 1px solid #cccccc; padding: 6px 8px; text-align: left;\">Name<\/th>\n<th style=\"border: 1px solid #cccccc; padding: 6px 8px; text-align: left;\">DisplayName<\/th>\n<th style=\"border: 1px solid #cccccc; padding: 6px 8px; text-align: left;\">Latitude<\/th>\n<th style=\"border: 1px solid #cccccc; padding: 6px 8px; text-align: left;\">Longitude<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"border: 1px solid #cccccc; padding: 6px 8px;\">WELL-A12<\/td>\n<td style=\"border: 1px solid #cccccc; padding: 6px 8px;\">Alpha 12<\/td>\n<td style=\"border: 1px solid #cccccc; padding: 6px 8px;\">-20.3121<\/td>\n<td style=\"border: 1px solid #cccccc; padding: 6px 8px;\">118.6012<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #cccccc; padding: 6px 8px;\">WELL-A14<\/td>\n<td style=\"border: 1px solid #cccccc; padding: 6px 8px;\">Alpha 14<\/td>\n<td style=\"border: 1px solid #cccccc; padding: 6px 8px;\">-20.3150<\/td>\n<td style=\"border: 1px solid #cccccc; padding: 6px 8px;\">118.6033<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p class=\"note\"><strong>Tip:<\/strong> Change <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">'WELL-'<\/span> to match your own asset naming convention. If you're not sure what your assets are called, start with <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">Entities?$select=Name,DisplayName&amp;$top=20<\/span>.<\/p>\n<hr \/>\n<h2 id=\"3-add-a-parameter\" class=\"page-subheading\">3. Add a parameter<\/h2>\n<p class=\"intro-text\">A parameter lets the page user choose a value. Here's a dataset that lists Sentinel events on a chosen asset, since a chosen time:<\/p>\n<ol class=\"intro-text\">\n<li>Add another dataset to the same datasource, called <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">Sentinel - Events for Asset<\/span>.<\/li>\n<li>\n<p class=\"intro-text\">Enter this query on one line:<\/p>\n<p class=\"intro-text\"><span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 12px; background-color: #eeeeee; padding: 2px 5px;\">SentinelEvents?$filter=Entity eq ODataParam(asset,string) and StartTime ge ODataParam(since,datetime)&amp;$select=Entity,MonitorName,SeverityName,StartTime,EndTime,Value&amp;$orderby=StartTime desc&amp;$top=500<\/span><\/p>\n<\/li>\n<li>\n<p class=\"intro-text\">Core Management detects the two <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">ODataParam<\/span> keywords and lists <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">asset<\/span> and <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">since<\/span> as parameters. Give each one a default value, such as <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">WELL-A12<\/span> and a date a week ago.<\/p>\n<\/li>\n<li>Click <strong>Save<\/strong>.<\/li>\n<\/ol>\n<p class=\"intro-text\"><span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">ODataParam<\/span> writes the value in the right OData format for you. Text gets its single quotes and dates are written as ISO 8601 UTC, so don't add quotes around the keyword yourself. See <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/oi-odata\/parameters\/\">Parameters<\/a>.<\/p>\n<hr \/>\n<h2 id=\"4-show-the-dataset-on-a-page\" class=\"page-subheading\">4. Show the dataset on a page<\/h2>\n<ol class=\"intro-text\">\n<li>Open Explorer Studio and create or edit a page.<\/li>\n<li>Add a table (or a chart or map) control.<\/li>\n<li>For its data, choose the <strong>OI OData<\/strong> datasource and then your dataset.<\/li>\n<li>For the parameterised dataset, link <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">asset<\/span> and <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">since<\/span> to page variables so users can choose them.<\/li>\n<li>Save the page and view it.<\/li>\n<\/ol>\n<p class=\"intro-text\">The page runs the query as the person viewing it. Sentinel events aren't filtered by Explorer security, so every viewer sees the same events. Objects such as entries, workbooks and tags are filtered by the viewer's access.<\/p>\n<hr \/>\n<h2 id=\"5-try-your-queries-in-a-browser\" class=\"page-subheading\">5. Try your queries in a browser<\/h2>\n<p class=\"intro-text\">Before you save a dataset, it's quickest to try the query in a browser. Sign in to Explorer, then open:<\/p>\n<p class=\"intro-text\"><span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px; background-color: #eeeeee; padding: 2px 5px;\">https:\/\/&lt;your-oi-server&gt;\/&lt;service-root&gt;\/odata\/&lt;your query&gt;<\/span><\/p>\n<p class=\"intro-text\">For example:<\/p>\n<p class=\"intro-text\"><span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 12px; background-color: #eeeeee; padding: 2px 5px;\">https:\/\/oi.example.com\/oi.core\/odata\/Entities?$filter=startswith(Name,'WELL-')&amp;$select=Name,DisplayName&amp;$top=10<\/span><\/p>\n<p class=\"intro-text\">Your administrator can tell you the server and service root. The browser shows the JSON the dataset will be built from, and if something's wrong, the full error message.<\/p>\n<p class=\"intro-text\">To see every object and field OI OData offers, open <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">...\/odata\/$metadata<\/span>, or see the <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/oi-odata\/object-reference\/\">Object Reference<\/a>.<\/p>\n<hr \/>\n<h2 id=\"6-five-rules-for-oi-odata-datasets\" class=\"page-subheading\">6. Five rules for OI OData datasets<\/h2>\n<ol class=\"intro-text\">\n<li><strong>Write the query on one line<\/strong>, starting with the object name. No <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">https:\/\/<\/span>, no <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">\/odata\/<\/span>, no <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">GET<\/span>.<\/li>\n<li><strong>Return flat rows.<\/strong> Use <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">$select<\/span> to pick plain columns. Don't <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">$expand<\/span> related objects in a dataset. To include a related value such as a workspace name, compute it as its own column instead. See <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/oi-odata\/writing-queries\/\">Getting related values into a dataset<\/a>.<\/li>\n<li><strong>Stay under 1,000 rows.<\/strong> A dataset reads one page of results, which is at most 1,000 rows. Filter, use <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">$top<\/span>, or <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/oi-odata\/aggregation\/\">aggregate<\/a> on the server.<\/li>\n<li><strong>Use <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">ODataParam<\/span> for parameters<\/strong>, not <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">PARAM<\/span>. The SQL keywords <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">PARAM<\/span>, <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">PARAMS<\/span>, <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">SORTBY<\/span>, <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">FIRSTROW<\/span> and <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">LASTROW<\/span> don't work with this adaptor. To page a dataset, use <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">ODataSkip()<\/span> and <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">ODataTop()<\/span> in <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">$skip<\/span> and <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">$top<\/span>. See <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/oi-odata\/parameters\/\">Parameters<\/a>.<\/li>\n<li><strong>Count and group on database-backed objects<\/strong>, such as <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">EntryRecords<\/span> instead of <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">SapiCases<\/span>, or <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">TagDefinitions<\/span> instead of <span style=\"font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 13px;\">Tags<\/span>. They have no 5,000-row cap.<\/li>\n<\/ol>\n<hr \/>\n<p class=\"left-bar\"><strong>Next:<\/strong> <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/oi-odata\/writing-queries\/\">Writing Queries<\/a><\/p>\n<p class=\"left-bar\"><strong>Related:<\/strong> <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/oi-odata\/oi-odata-primer\/\">OI OData Primer<\/a> \u00b7 <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-server\/connecting-your-data\/creating-a-dataset-datasource\/\">Dataset Datasources<\/a> \u00b7 <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/oi-odata\/troubleshooting\/\">Troubleshooting<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This guide explains how to configure the OI OData Adaptor, create a dataset query, add parameters, and display the results on an Explorer page. This article applies to version 26R2 and later of IFS OI Explorer.\u00a0 Before you begin, make sure you have: Access to IFS OI Core Management, with\u2026<\/p>\n<p class=\"continue-reading-button\"> <a class=\"continue-reading-link\" href=\"https:\/\/oihelp.corporate.ifs.com\/help\/oi-odata\/getting-started\/\">Read more<i class=\"crycon-right-dir\"><\/i><\/a><\/p>\n","protected":false},"author":38,"featured_media":0,"parent":72744,"menu_order":2,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-72763","page","type-page","status-publish","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/72763","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/users\/38"}],"replies":[{"embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/comments?post=72763"}],"version-history":[{"count":11,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/72763\/revisions"}],"predecessor-version":[{"id":72775,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/72763\/revisions\/72775"}],"up":[{"embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/72744"}],"wp:attachment":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/media?parent=72763"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/categories?post=72763"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/tags?post=72763"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}