Skip to content

Bindings not working #204

Open
Open
@edufsrj

Description

@edufsrj

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<String, String> 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions