Description
Sends a message to the Azure Service Bus queue using a SAS key name \ value pair for authentication.
Signature
AzureServiceBusSendMessage( 'servicebusqueueurl', 'sas-key-name', 'sas-key-value', 'namespaceurl', 'messageformat', 'message' ) Note : 'messageformat' can take in two types of format , JSON and XML.
Example 1
The example below uses a SAS key name \ value pair to send a JSON message to the queue named 'n52bpa'.
AzureServiceBusSendMessage( 'https://n52bpa-sb-north52v2.servicebus.windows.net/n52bpa/messages', 'RootManageSharedAccessKey', 'HKutpMU25diCyJyl5X0BO5sYw8nfkx6gI1VyppEFAII2', 'https://n52bpa-sb-north52v2.servicebus.windows.net', 'json', '{"name":"John", "age":31, "city":"New York"}' )
Example 2
The example below uses a SAS key name \ value pair to send a JSON message to the queue named 'n52bpa'. And send custom properties.
SmartFlow(
SetVar('BrokerProperties', '{ "SessionId": "{27729E1-B37B-4D29-AA0A-E367906C206E}", "MessageId": "{701332E1-B37B-4D29-AA0A-E367906C206E}", "TimeToLive" : 94}'),
AzureServiceBusSendMessage( 'https://n52bpa-sb-north52v2.servicebus.windows.net/n52bpa/messages', 'RootManageSharedAccessKey', 'HKutpMU25diCyJyl5X0BO5sYw8nfkx6gI1VyppEFAII2', 'https://n52bpa-sb-north52v2.servicebus.windows.net', 'json', '{"name":"John", "age":31, "city":"New York"}', SetRequestHeaders('BrokerProperties', GetVar('BrokerProperties'), 'Custom_Property1', 'abc', 'Custom_Property2', utcdatetime()) ))
Parameters
Name | Type | Description | Required |
---|---|---|---|
fromdate | xxxx | xxxx | xxxx |
todate | xxxx | xxxx | xxxx |
interval | xxxx | xxxx | xxxx |