Monday 15 June 2020

Consume Business Event using Microsoft Flow


Consume Business Event using Microsoft Flow

Go to Microsoft Flow 
Click New > Below Screen will Open then click on Automated-From blank.

A Pop up will open , give flow name as PO confirm and select "When a Business event occurs" in  choose your flow's trigger  and click on Create.

A new form will open , where we have to give all details :


Instance – Specify the hostname of the Finance and Operations instance where business events occur.
Category – Select the category of business events such as Purchase Order, Sales Order, Account Payable, Account Receivable, etc.
Business Event – The available business events in the selected category like PO Confirmation, Sales Confirmations, etc.
Legal Entity – Specify the legal entity where the business event is being subscribed to.


Click on Next step and type Parse in the search box and select Parse JSON

Click on content and select Body from Dynamic content 


Now go back to D365 F&O , and open form Business catalog (System administration - >Setup -> Business events)




Select the business event , which we want to enable And click on download schema .
Save the file downloaded.

Now in Flow ,Select schema and  click on generate from sample.


Open the file , which we downloaded from F&O and copy the text from file and paste into this and click done.

Now click on Next step and add send email 


Put all these info and save this flow.

Now go back to D365 F&O and open again Business Events Catalog 

You should see the PO confirm business event activated under Active business event


Now Create a new PO and post confirmation of same. you should recevie the email as per setup in Send an email.

Make sure that Batch service is running , because as soon as any business event occur in system , it is pushed in a batch job,when this batch job is executed Flow will be triggered.


Thanks for reading .....

Happy DAXing....






Wednesday 23 November 2016

Microsoft Dynamics AX - Cannot open database "AXDBRain" requested by the login



While doing some development in new Microsoft Dynamics AX , while adding a field in a Data entity ,during synchronization I got below error :


Error        Cannot open database "AXDBRain" requested by the login. The login failed.
Login failed for user 'xxxxxxx-xxx\xxxxx'. when try to connect to business database with provided configuration.  
 


This error was misleading  , because AXDBRain is not the correct DB which my AX is connected with.
        
Solution :

Go to C:\Users\userid\Documents\Visual Studio 2015\Settings\DefaultConfig.XML
and change the following :

<BusinessDatabaseName>CorrectDBname</BusinessDatabaseName> 

Save the file.

Restart VS and try to do Sync again , hopefully this will help to sync.
 

Wednesday 13 April 2016

Cross Reference renamed as Find Reference in AX 7



Hi ,

In AX 7 , Cross reference has been renamed as Find Reference .
Go to Application Explorer , AOT -> Data Types -> EDT -> Select any EDT and right click



 You can find the "Find References"  click on this and system will give all paths , where this EDT has been used like below screen shot :




Here you can click on  "Go To Refernce" and system will show the code , where this object have been used.





Happy DAXing  :)