Announcements
Hi,
I am trying to update the customer in D365 AX.
Once I update the customer (or whenever I create,update,insert records) , I have to Push message to Service Bus queue from X++ code.
Can anyone help me on this
Thanks
Hi praneethkumar.d365,
I assume you already know how to work with topics, if not it is well documented on docs.microsoft.com
From D365 you need to create new class and subscribe to 2 events on CustTable: onInserted and onUpdated. From event subscription you need to call your code that will work with topics (you can use c# code inline because x++ does not have libraries to work with topics). Here you can read about events and how to subscribe to them https://community.dynamics.com/ax/b/axilitynet/archive/2015/12/11/ax7-sneak-peek-events-and-subscriptions
Hi ievgen,
Thanks for your reply !!
I am interested to know how to push the message to topic.
Do you have any sample code which shows how to send the message to Service bus whenever any CUD event occurs in AX
Thanks,
Praneeth
No I don't have it. But as I said in previous post you can easily find how to subscribe to CUD event and how to work with topics, all you need is to put 2 parts together. However, I would recommend you to start from something simple either build small console app to write into a topic or subscribe to custtable event and do simple infolog to see that it works. Have you tried any of two?
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to a top community star!
In our never-ending quest to help the Dynamics 365 Community members get answers faster …
Welcome to the next edition of the Community Platform Update. This is a status …
Stay up to date on forum activity by subscribing.