Payable Bot Dynamics ax 365

Satya Nadella

We have seen an age of mobile phone apps, and guess what is coming next? Chatbot’s. To acknowledge their soaring growth and to leverage on this business opportunity, at this year’s Build conference, Microsoft has released a full framework to build bots. It is called the Bot Framework

*****************************************************************************

Hi Guys,

We Bot team (Amir & Zain) has completed first ever Chat Bot integration POC at Mazik Global. We have publish the bot to skype channel and now Payable operations can be performed from any where using Skype.

Here is the user manual if anyone would like to see details on its.

Payable Bot – D365 manual

On Technical details; how we have completed this. We would divide this to 3 parts, you would need some basic C# Async programming knowledge, You will need to design connector using c# that will talk to AX on simple read/write need of the Bot, third you need to publish the bot and connector to Azure, there you need some configurations and settings.

On configuring the Bot project and machine, please ready this blog

https://msdax.wordpress.com/2018/03/27/chat-bots-microsoft-bot-framework/

Here are lots of sample projects on Chat Bot, that helps me a lot in making this simple Chat bot.

GITHUB Sample projects on ChatBot

On writing the connector and publishing the App to Azure i have already covered detail blogs previously. that will help you in making the connector and publishing it to Azure.

https://msdax.wordpress.com/2018/03/20/consuming-dynamics-ax-365fo-data-entities-using-web-api-part-1/

https://msdax.wordpress.com/2018/03/22/consuming-dynamics-ax-365fo-data-entities-using-web-api-part-2/

https://msdax.wordpress.com/2018/03/31/consuming-dynamics-ax-365fo-data-entities-using-web-api-part-3/

Thanks for reading this interesting topic, I have keep it shot and simple, If you have any further questions or you would like to get any further Technical or Functional details, you can leave a comment and i will try to respond ASAP.

Thanks again

Amir : Happy Daxing.

 

Consuming Dynamics AX 365FO Data entities using Web API (Part 2)

In this part of blog we will discuss, how we can create App on Azure, which is mandatory for creating this integration, if you have not gone through my last blog about setting up projects for creating this integration then please go through that

Consuming Dynamics AX 365FO Data entities using Web API (Part 1)

Now to start this:

1. We need to login to https://portal.azure.com we need Azure subscription, without Azure subscription we can not do this integration with D365FO

2. We could also create Trial subscription for demo purpose
Create an Azure trial

Once we are logged in to Azure then we will have interface like this and we will do these steps for creating Web Api App on Azure.

We need to click Azure Active Directory on Left pane, and then click App registration on center pane

Click New Application registration
Fill out App name, type (Native or WebApi) and Url that could be http://localhost. Click create to create the App.
Once app is created, click settings for giving access. Also note down the Application Id, This will be used in the Web api project we will create for consuming the data entity.

Click Add on Required permission page and add Microsoft Dynamics ERP permission and Grant it also.

Create private Key also, this is needed form Web Api apps. Please take a note of this also, this will be used as ActiveDirectoryClientAppSecret key in you web api application project.
We also need to list this application inside dynamics ax 365, In system administration module> Setup > Azure Active Directory applications. We need to place the Application id on this form

This concludes the Azure configuration part and listing of App on Azure portal, in the next blog we will see how we can consume Odata entities inside Web api project and how to make this integration happen.

Thanks

Amir 🙂 Happy Daxing.