Generic Inquiry Access Through OData: To Access an Exposed Inquiry in Microsoft Excel
In this activity, you will learn how to access a generic inquiry that was exposed through OData in Microsoft Excel.
Story
Suppose that you are a technical specialist in your company who is working on simple customizations, including those involving the creation, modification, and use of generic inquiries. An accountant of your company has asked to have access in Excel to the predefined Invoices and Memos (AR3010PL) generic inquiry form. This form, which is a list of records, has the AR-Invoices and Memos inquiry title and the Invoices and Memos site map title specified on the Generic Inquiry (SM208000) form. The accountant uses Excel for building reports based on the data of this generic inquiry and wants the data to always be up to date.
You have exposed the requested generic inquiry, and now you need to verify that it can be accessed through Excel.
Process Overview
On Access Rights by User (SM201055) form, you will verify that your user account has sufficient access rights (the Delete level) to the predefined Invoices and Memos (AR3010PL) generic inquiry.
You will then open Microsoft Excel and import data from the exposed inquiry to a spreadsheet.
System Preparation
Launch the MYOB Acumatica website, and sign in to a tenant with the U100 dataset preloaded as system administrator Kimberly Gibbs. You should sign in by using the gibbs username and the 123 password.
Step 1: Verifying the Access Rights
To verify that your user account has the appropriate level of access rights to the exposed inquiry, do the following:
- Open the Access Rights by User (SM201055) form.
- In the Login box, select your username, which is gibbs.
- In the Hidden node of the left pane, and click
Invoices and Memos with the AR3010PL screen
ID. Tip:The system displays a tooltip with the screen identifier when you point to a node; this can help you find the needed form when multiple forms have the same name.
- In the right pane, verify that the Access Rights column
has the
Delete
level of access rights. Tip:If a user account has multiple roles assigned to it, the user account’s level of access rights to a particular form is the most permissive level of the active roles.
Step 2: Viewing a Generic Inquiry in Excel
To access the exposed inquiry through Microsoft Excel, do the following:
- Open an Excel workbook.
- In the Data ribbon tab, click .
- In the OData Feed wizard, do the following:
- Click the Basic option button.
- Enter the URL to the OData endpoint.
- Click OK.
- On the next step of the wizard, go to the Basic
tab, and enter your sign-in credentials, which are your MYOB Acumatica username and password.Tip:Do not add the tenant name after your username.
- Click Connect.
Excel connects to the MYOB Acumatica instance and obtains the list of exposed generic inquiries that are available for your MYOB Acumatica user account.
- In the left pane of the Navigator dialog box, which
opens, select the
AR-Invoices
and Memos generic inquiry. You can preview the data
in the right pane of the dialog box.Tip:In this dialog box, for a generic inquiry with parameters, you can specify the values of the parameters.
- Click Load.
The system connects to the server, downloads the data from your MYOB Acumatica instance, and presents the data in the way you selected.
Tip:The sorting order in the resulting Excel file may differ from the sorting order in MYOB Acumatica because Excel applies sorting after the data is downloaded. - To update the data, click Refresh All in the Data ribbon tab.