Azure / azure-sdk-for-js

This repository is for active development of the Azure SDK for JavaScript (NodeJS & Browser). For consumers of the SDK we recommend visiting our public developer docs at https://docs.microsoft.com/javascript/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-js.

Repository from Github https://github.comAzure/azure-sdk-for-jsRepository from Github https://github.comAzure/azure-sdk-for-js

[Bug] Unable to set applicationProperties (Custom Properties)

bennguyenxx opened this issue · comments

commented
  • Package Name: @azure/service-bus
  • Package Version: ^7.9.5
  • Operating system:
  • nodejs
    • version: 22.11.0
  • browser
    • name/version:
  • typescript
    • version: ^4.7.4
  • Is the bug related to documentation in

Describe the bug
A clear and concise description of what the bug is.
I tried to set the applicationProperties.submissionId when sending message to service bus topic. However, it doesn't exist in the message, so that the subscription filter based on applicationProperties.submissionId value is not working

    await sender.sendMessages({
      body: {
        submissionId,
        status: 'COMPLETED',
        timestamp: new Date().toISOString(),
      },
      applicationProperties: {
        submissionId,
      },
    });

To Reproduce
Steps to reproduce the behavior:
1.

Expected behavior
A clear and concise description of what you expected to happen.
Should be able to send message with custom values applicationProperties (Custom Properties) by SDK

Screenshots
If applicable, add screenshots to help explain your problem.
The custom value not exists if I send message through SDK

Image

I tried to send a message to topic in Azure portal --> The subscription filter and custom value work perfect

Image

Image

Additional context
Add any other context about the problem here.

commented

Close as it was not a bug