OData Archives -

Tag Archives: OData

Using OdataKeyFields for fetching records in Business Central Web Services

Introduction: Business Central provides us with Web Services which we can use for CRUD operations on specific tables. However it also provides us with different methods of accessing specific records for CRUD operations. Pre-requisites: Business Central On-Premise or OnCloud. References: https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/properties/devenv-odatakeyfields-property Usage: In Business Central, if we do not specify the ODataKeyFields as a property on the Page that we’ll be using as Web Service, then by default we have to use the Primary Key. However if we specify the “ODataKeyFields” in the page, we can use the field we have specified as the key for pulling the record in Web Services. While there are no limitations on which field can be used as key field, keep in mind that Business Central fetches the first record matching that field. For instance if you use the “Buy-from Vendor No.” as the ODataKeyField, then the Web Service will fetch the first matching record sorted by the Primary Key. Standard Business Central APIs use the “SystemId” field as the ODataKey field. You can also use multiple Keys in ODataKeyFields and use them for fetching records. Conclusion: Thus, we saw how we can use ODataKeyFields property for fetching records and performing CRUD operations. As a side note, you can also use multiple keys in ODataKeyFields.

Load Azure Devops Data into Power BI using Odata

In this blog we will see how to fetch Azure Devops Data and based on it create Visualization as per requirements. Step 1: Go to Azure Devops > Go to User Setting > Personal Access Token  Step 2: Once Clicked on Personal Access Token, click on New Token, following popup will appear.  Enter details Name, organization and Expiration and specify Scope.  New popup will appear, and it will generate access token key, copy it.  Step 3: Prepare the OData URL             Sample OData URL: https://analytics.dev.azure.com/{OrganizationName}/_odata/{version}/   In our Case, Organization is gvishwakarma Version is  v1.0  Then URL will be https://analytics.dev.azure.com/gvishwakarma/_odata/v1.0/  Step 4 :Open Power BI click Get Data > select OData Feed  Sample Data  Once data loaded in power BI we create visualization as per requirement.  Hope this Helps! 

SEARCH :

FOLLOW CLOUDFRONTS BLOG :

[gravityform id="36" ajax="true"]

FOLLOW CLOUDFRONTS BLOG :