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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Forums / Finance forum / Check connectivity wit...
Finance forum

Check connectivity with Service bus topic

(0) ShareShare
ReportReport
Posted on by 70

Hi , 

I am using below X++ code to send message to service bus from D365FO. 

using Microsoft.ServiceBus.Messaging;

class RunnableClass1

{      

   public static void main(Args _args)

   {  

       

TopicClient sbClient = null;        

           sbClient   = TopicClient::CreateFromConnectionString('ConnectionString','topic');

           sbClient.Send(new BrokeredMessage('TestMessage'));

           sbClient.Close();

       }

}

 

My requirement is to check the connectivity with service bus topic before sending the message.

Can someone provide me code to check the connectivity with service bus topic from D365FO

 

 

 

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