Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

How to send JSON file from AX to service bus in Ax 2012 R3

(0) ShareShare
ReportReport
Posted on by 30

Hi All,

Request you please let me know how to send the JSON file using x++ code to service bus. 

@'{"ItemId": "3583609",
"WarehouseId": "210",
"AvailableQty": 10,
"OrderedQty": 4,
"OrderedAvailableDate": "20191105",
"DocumentType": "ErpNewSum"}';

using the following info like  keyName, Key and address URL. 

Please help

Regards,

Ranjan

  • Suggested answer
    Dip Kanjilal Profile Picture
    on at
    RE: How to send JSON file from AX to service bus in Ax 2012 R3

    Hello R Ranjan,

    The article Martin shared explains it all. docs.microsoft.com/.../net-interop-from-x

    Please let us know if you already received the help you were looking for from this forum by verifying the suggested answers.

    Regards,

    Dip

  • Martin Dráb Profile Picture
    232,978 Most Valuable Professional on at
    RE: How to send JSON file from AX to service bus in Ax 2012 R3

    If you're looking for an introduction to .NET Interop, try .NET Interop from X++ page in AX documentation.

  • R Ranjan Kumar Profile Picture
    15 on at
    RE: How to send JSON file from AX to service bus in Ax 2012 R3

    Thank you Martin for quick suggestion.

    Could you please share me some trips how to create the x++ job using .NET Interop. it will help me to proceed further.

  • Suggested answer
    Martin Dráb Profile Picture
    232,978 Most Valuable Professional on at
    RE: How to send JSON file from AX to service bus in Ax 2012 R3

    Consult Azure Service Bus libraries for .NET.

    You can either use the library directly from X++ (via .NET Interop), or create a custom C# library, use the C# code directly there and call this custom library from X++.

  • nmaenpaa Profile Picture
    101,158 Moderator on at
    RE: How to send JSON file from AX to service bus in Ax 2012 R3

    First you need to contact the owner of the service and get some documentation about it. Perhaps they can even provide sample C# code which you could use.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,217 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,978 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans