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

Report
All responses (
Answers (