Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX forum
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 225,549 Super User 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 225,549 Super User 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,148 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.

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,914 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,549 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans