Views:

Description

Returns a message in the Azure Service Bus queue using a SAS key name/value pair for authentication. It then locks the message in the queue and returns for processing. 

Note: This function is always used in conjunction with the function AzureServiceBusDeleteMessage which deletes the message after AzureServiceBusPeekLockMessage is finished.

Signature

AzureServiceBusPeekLockMessage('servicebusqueueurl', 'sas-key-name', 'sas-key-value', 'namespaceurl')
 

Example

The example below uses a SAS key name \ value pair to look at a message in a queue named 'n52bpa'. It is then deleted by AzureServiceBusDeleteMessage.

SmartFlow(
  
 AzureServiceBusPeekLockMessage(
    'https://n52bpa-sb-north52v2.servicebus.windows.net/n52bpa/messages/head',
    'RootManageSharedAccessKey',
    'HKutpMU25diCyJyl5X0BO5sYw8nfkx6gI1VyppEFAI22',                   
    'https://n52bpa-sb-north52v2.servicebus.windows.net'
    ),

  Setvar('messageid', GetVarJsonValue('MessageId', '', GetVarHeaderValue('BrokerProperties')) ),
  Setvar('locktoken', GetVarJsonValue('LockToken', '', GetVarHeaderValue('BrokerProperties')) ),
  
  
  /*Do your processing steps here*/


AzureServiceBusDeleteMessage(
    'https://n52bpa-sb-north52v2.servicebus.windows.net/n52bpa/messages/' + GetVar('messageid') + '/' + GetVar('locktoken'),
    'RootManageSharedAccessKey',
    'HKutpMU25diCyJyl5X0BO5sYw8nfkx6gI1VyppEFAI22',                   
    'https://n52bpa-sb-north52v2.servicebus.windows.net' 
    )
  
)

 
 

== $0

Parameters

Name Type Description Required
fromdate xxxx xxxx xxxx
todate xxxx xxxx xxxx
interval xxxx xxxx xxxx

Notes: