How to Configure Access for Scribe Online for Dynamics 365 for Operations (AX7) Integration

By Josh Lee | October 1, 2016

How to configure access for scribe online for dynamics 365 for operations (ax7) integration

I was recently working with a client where we had deployed Dynamics 365 for Operations (AX7). One of the initiatives was to enable integration between Dynamics 365 for Operations and Scribe Online. Scribe Online has a variety of platforms where it can help enable integration. My client needed to setup integration between CRM Online and Dynamics 365 for Operations (AX7).

There are two pieces to enabling integration between Dynamics 365 for Operations (AX7) and CRM online. The first piece is setting up the connecting agent and depending on your scenario it may be an On-Premise agent or it may be a Cloud agent. For the integration I was doing, it was a Cloud agent. The initial setup was almost a breeze, however, there was a key field that required a little additional work to get the integration working correctly.

Setting up a connection from Scribe to Dynamics AX

First, a connection to Dynamics AX was required, to do this the following steps were done:

  1. Create a New Connection in Scribe
  2. Select Microsoft Dynamics AX as the Type and then enter the following bits of information:

Connection name — I typically name it for the environment.

Connection alias — Alias for Connection name (I typically name it the same as above w/o spaces).

Block color — A nice color coding option used for a visual reference to distinguish connections.

OData Service URL — The address of any acceptable URL where the OData service is located. This URL must end in /data.

User — The name of the user who has rights to access OData.

Password — Dynamics 365 for Operations authorized user that can access the oData feed.

Client Id — The GUID that identifies the client in the Dynamics AX system.

Authentication URL — The URL where the Client Id is verified which is the Microsoft Tenant URL:

Here is what an almost configured connection looks like:

Manage Connections: New

How to Configure the Client ID

The missing piece and the purpose of this blog is to explain and show how to configure the Client Id.  The Scribe Online documentation was pretty vague as to what or how to get the Client Id.

What is helpful to know is that Dynamics 365 for Operations (AX7) has 2 types of authentication mechanisms which are:

  1. User Authentication
  2. Services Authentication (OAuth)

User authentication looks like this:

User Authentication

And acts like this:

  • The User authenticates against their AAD
  • The User presents a set of claims to AX (claims-based authentication)
  •  Instead of a windows token (like on-premise AD) a user presents a set of claims saying my name is so and so and I belong to this tenant and this tenant has a subscription of AX.
  •  The Dynamics 365 for Operations (AX7) security subsystem says, all right, I’m going to verify your claims and look to see if you’re a valid user.  If you’re a valid user, I’m going to look at all the security rules that are associated with you and then I’m going give you access to the system.

Service authentication, on the other hand, looks like this:

Josh L_Service Authentication

And acts like this (the part in red we will come back to in a minute):

  1. User authenticates, creates user agent in AAD and consents to service(s) access
  2. The client receives Authorization code (Client ID)
  3. Now, the client can request access to resources with the authorization code
  4. AAD verifies authorization code and passes the client back an Access token
  5. The client now requests data from Dynamics 365 for Operations (AX7) with the Access token
  6. Hopefully, the client now receives the data

On a side note, OData Services, JSON-based Custom Service, and REST Metadata Services all support standard OAuth 2.0 authentication.

This part is critical to understand as this is the missing link.  Scribe Online is a service that needs to access Dynamics AX without a user being present (it’s a service and as such will follow service authentication).

To get scribe the Authorization code (Client Id) what is required is the following:

Josh L_Microsoft Azure
  • Click on your Domain
Active Directory
  • Click on Applications
Directory Applications
  • Click Add
Add
  • Select Add an application my organization is developing

Add an Application my organization is developing

  • Provide a name for the application and select Native Client Application

Native Client Application

There are two kinds of application are supported in Microsoft Azure Active Directory (AAD):

  1. Native client application – This flow uses a user name and password for authentication and authorization.
  2. Web application (Confidential client) – A confidential client is an application that can keep a client password confidential to the world. The authorization server assigned this client password to the client application.
  • Enter a URI (doesn’t matter) and click the check mark to complete the setup.
Application Information
  • You will land on the application page, click configure
Scribe Online Configure
  • Here you will find the golden goose, the Client Id!

 

Scribe OnlineClient ID

 

  • Continue to scroll down to the bottom to permissions to other applications
  • Click Add application and select Microsoft Dynamics ERP then click the check mark in the lower right-hand corner

Permissions to other applications

Permissions to other applications

 

  • When you return to the application page, select Microsoft Dynamics ERP and in the drop down select all check boxes

Add applications

You are now set to go back into the Scribe Connector and paste in the Client ID!

  • Once you have completed this, the only remaining piece is configuring Scribe Online to connect to Dynamics CRM online. The previous connection was for connecting Scribe Online to Dynamics AX.

 

Hopefully, this will help understand why you need the client ID and where you can get it from.

Add applications

 

 

Related Posts

Recommended Reading:

5.27.22 Dynamics GP

How to Run Drop Ship Sales in Dynamics GP

Need to Invoice the Customer before you get the invoice from the vendor? This The freight forwarder has contacted you […]

Read the Article

New Features in Dynamics 365 Business Central 2022 Wave 1 Release – Protecting G/L Accounts From Being Deleted

There are a lot of exciting New Features in Dynamics 365 Business Central 2022 Wave 1 Release to get excited […]

Read the Article
5.25.22 Financials

Rounding Numbers in Power Automate

  If you’ve ever tried to round numbers in Power Automate, you have probably already run into the issue there […]

Read the Article

Manage U.S. Use Tax on Purchase Orders in Dynamics 365 Finance and Operations

  Managing sales tax requirements on your business purchase can be complicated, but Dynamics 365 Finance and Operations can help […]

Read the Article
5.19.22 Dynamics CRM

How to Write a Great Support Ticket in the Stoneridge Support Portal

Submitting a support ticket through the Stoneridge Support Portal is a quick and effective way to get assistance for any […]

Read the Article

Managing Your Business Through Uncertain Times Using Dynamics 365 Finance and Operations

  Dynamics 365 Finance and Operations (F&O) can help you make informed decisions on how to move your business forward. […]

Read the Article
5.13.22 Power Platform

Using Power BI Object Level Security

  The following article will demonstrate how to use Power BI Object Level Security to disable column data based on […]

Read the Article
5.12.22 Dynamics CRM

How to Use the Stoneridge Support Portal

Stoneridge Software’s support portal is an intuitive and useful function that makes it easy for you to access resources to […]

Read the Article
5.6.22 Dynamics GP

Dynamics GP Transaction Removal: Purchase Orders

  Are you having performance issues with Purchase Orders?  Do you find that there are old Purchase Orders on your […]

Read the Article

Start the Conversation

It’s our mission to help clients win. We’d love to talk to you about the right business solutions to help you achieve your goals.

Subscribe To Our Blog

Sign up to get periodic updates on the latest posts.

Thank you for subscribing!

X