Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GraphWebhookSubscription attribute binding error #94

Open
DDAndyChen opened this issue Jan 18, 2019 · 1 comment
Open

GraphWebhookSubscription attribute binding error #94

DDAndyChen opened this issue Jan 18, 2019 · 1 comment

Comments

@DDAndyChen
Copy link

I'm trying to create a function to get all subscription:

        [FunctionName("WebhookTest")]
        public static IActionResult Run(
            [HttpTrigger(AuthorizationLevel.Function, "get", Route = null)] HttpRequest req,
            [GraphWebhookSubscription] string[] subIds
            )
        {
            return new OkObjectResult("OK");
        }

I got this error in the CLI tool:

[1/18/2019 2:47:20 AM] Error indexing method 'WebhookTest.Run'
[1/18/2019 2:47:20 AM] Microsoft.Azure.WebJobs.Host: Error indexing method 'WebhookTest.Run'. System.Private.CoreLib: The given key 'T' was not present in the dictionary.

If I remove the [GraphWebhookSubscription] string[] subIds binding the function is OK.

@DDAndyChen
Copy link
Author

This binding [GraphWebhookSubscription] Microsoft.Graph.Subscription[] subIds seems OK.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant