Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Answered

Send customer data to service bus queue

Posted on by 75

I have a requirement, where we are moving data from ax 2012 r3 to D365. The data is exported from ax 2012 r3 and stored in Azure service bus queue as a message and a logic app will take it forward to D365 instance. To complete this task I need to know how we are pushing the data from ax 2012 to azure service bus queue. I never got to work on AIF before so a detailed explanation would really help me. I just want to understand how will be be pushing the data to Azure service bus queue.

I should export customer data, I believe there are 5-6 entities that hold customer data in ax 2012, so how exactly I should be doing this? 

And will the service bus queue be able to hold that much data in a single message?
 

  • Bhaswanth Koka Profile Picture
    Bhaswanth Koka 75 on at
    RE: Send customer data to service bus queue

    Thank You Martin!! That was helpful. If you don't mind could you please give me a step by step approach for me to try this.

  • Verified answer
    Martin Dráb Profile Picture
    Martin Dráb 230,149 Most Valuable Professional on at
    RE: Send customer data to service bus queue

    I'm not sure what you want to hear about the AIF Service Bus adapter (and I don't really know it anyway).

    By the way, you may also call Azure Service Bus API by yourself, if the AIF adapter doesn't work for you. It's quite simple; here is an example in C#:

    using Microsoft.ServiceBus.Messaging;
    
    var queueClient = QueueClient.CreateFromConnectionString(connectionString, queueName);
    
    var stream = ...
    
    BrokeredMessage message = new BrokeredMessage(stream);
    queueClient.Send(message);

    Regarding data combination, it's not going to happen automatically - you'll need to implement the logic somewhere (in AX 2012, in the Logic App and in D365FO).

    The maximum message size is 256 KB for Standard tier and 1 MB for Premium field. I think that 256 KB should be enough for information about a single customer. If you need more data in a single message, you can put it to another storage (e.g. a blog) and keep just a reference in the message queue.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans