Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Suggested answer

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

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
    Dip Kanjilal 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
    Martin Dráb 230,198 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
    R Ranjan Kumar 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
    Martin Dráb 230,198 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
    nmaenpaa 101,156 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans