Azure / Azure/azure-functions-java-library
Bindings not working
- Dominant language
- Java
- Stars
- 45
- Forks
- 49
- PR merge metrics
- No merged PRs in 30d
Description
I have a function using QueueTrigger and I want to get some metadata info:
`@FunctionName("func-name")
public void run(
@ServiceBusQueueTrigger(
name = "message",
queueName = "%SERVICE_BUS_QUEUE_NAME%",
connection = "some connection details"
) String message,
//@BindingName("ApplicationProperties") Map applicationProperties,
//@BindingName("DeliveryCount") int deliveryCount,
@BindingName("MessageId") String messageId,
//@BindingName("deadLetterSource") String deadLetterSource,
//@BindingName("status") String status,
final ExecutionContext context
)`
The only data that I'm able to retrieve is the message MessageId. If I uncomment any of the other bindings, I get the following error:
**Cannot find matched @BindingName of customer function, please check if customer function is defined correctly**
But when I go to the queue and select a message and go to the tab Message Properties, I can see the properties but for some reason I'm not able to get it. Any hints of what might be?
I see the properties from the Dead letter queue and I'm resending the message to the queue.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.