Send messages to ASB scheduled queue via APIs

Pavan G 186 Reputation points
2021-09-15T11:55:59.863+00:00

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}.servicebus.windows.net/{myqueuename}/messages
**Header:**ScheduledEnqueueTimeUtc = 2021-09-15T14:25:00Z

Any leads will be really helpful.
132396-post-message.png
132348-postaman-message.png

Regards,
Pavan G

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

Accepted answer
  1. MayankBargali-MSFT 68,746 Reputation points
    2021-09-15T12:46:11.77+00:00

    @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

    Header
    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