web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Forums / Finance forum / Sending message to Ser...
Finance forum

Sending message to Service Bus queue (Topic)

(0) ShareShare
ReportReport
Posted on by 70

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

I have the same question (0)
  • Suggested answer
    Mea_ Profile Picture
    60,286 on at

    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

  • praneethkumar.d365 Profile Picture
    70 on at

    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

  • Mea_ Profile Picture
    60,286 on at

    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.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Finance

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans