Send messages to ASB scheduled queue via APIs

Pavan G 186 Reputation points

Hi Experts,

I am new to Azure World.

I have a requirement to schedule the messages[for about 5 min] while sending them to Azure Service Bus via API as we are sending messages from the SAP Cloud Integration tool.
So I am trying to send the messages using postman with the below details, but the messages are going to the main queue instead of scheduled queues. It seems like I am making mistake in the header property
Operation: POST
URL: https://{mynamespace}{myqueuename}/messages
**Header:**ScheduledEnqueueTimeUtc = 2021-09-15T14:25:00Z

Any leads will be really helpful.

Pavan G

Azure Service Bus
Azure Service Bus
An Azure service that provides cloud messaging as a service and hybrid integration.
588 questions
0 comments No comments
{count} votes

Accepted answer
  1. MayankBargali-MSFT 69,991 Reputation points

    @Pavan G As per the Send Message document you need to set the BrokerProperties in the header and the value should be json object of BrokerProperties class

    BrokerProperties: {"ScheduledEnqueueTimeUtc":"2021-09-16T12:01:00Z"}
    Content-Type : application/atom+xml;type=entry;charset=utf-8

    Let me know if you are still facing the issue.

    Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful