Question: I have a C# Azure function.

```
  [FunctionName("MyFunction")]
    public static void Run(
        [QueueTrigger("my-queue")]MyClass item
        , [Blob("report-streams/{name}", FileAccess.Write)] Stream reportStream)
    {

```

but I get the error:

```
 Run: Microsoft.Azure.WebJobs.Host: Error indexing method 'MyFunction.Run'. Microsoft.Azure.WebJobs.Host: No binding parameter exists for 'name'.

```

Ideally I would like to bind name to the property item.Id but did not find a solution.

Answer: 
I don’t think this is directly possible. However, you should be able to achieve this using binding at runtime. <https://learn.microsoft.com/en-us/azure/azure-functions/functions-dotnet-class-library#single-attribute-example>

```
string id = item.id;// retrieve here from your item
using (var writer = binder.Bind<TextWriter>(new BlobAttribute(
                $"report-streams/{id}", FileAccess.Write)))
    {
        writer.Write("Hello World!");
    };

```
Azure Function supports binding the [Trigger metadata](https://learn.microsoft.com/en-us/azure/azure-functions/functions-bindings-expressions-patterns#trigger-metadata) as input parameters in C#. And the properties include the Id. So just bind the id with {Id} in the input path, then it will work. The below is my test.

```
         public static void Run(
            [QueueTrigger("myqueue", Connection = "AzureWebJobsStorage")]string myQueueItem, 
            [Blob("blobcontainer/{Id}", FileAccess.Write)]Stream reportStream,
            ILogger log)
        {
            log.LogInformation($"C# Queue trigger function processed: {myQueueItem}");
        }

```

This is the queue with the id.

[![enter image description here](https://i.stack.imgur.com/bLi9B.png)](https://i.stack.imgur.com/bLi9B.png)

This is the function console output and the blob container output.

[![enter image description here](https://i.stack.imgur.com/EGYwN.png)](https://i.stack.imgur.com/EGYwN.png)

[![enter image description here](https://i.stack.imgur.com/J8hFW.png)](https://i.stack.imgur.com/J8hFW.png)

Hope this could help you.