[Bug] Unable to set applicationProperties (Custom Properties)
bennguyenxx opened this issue · comments
- 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
- README.md
- source code documentation
- SDK API docs on https://learn.microsoft.com
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
I tried to send a message to topic in Azure portal --> The subscription filter and custom value work perfect
Additional context
Add any other context about the problem here.
Close as it was not a bug