none
Can an Azure Function be triggered on the creation of a DocumentDB document? RRS feed

  • Question

  • If I have another Azure Function creating documents, based on some other event (e.g. API call).

    Is there support (or will there be) to have an Azure Function run based on a new document being created?

    using System;
    public static void Run(object doc, TraceWriter log)
    {
        log.Info($"doc based trigger? ... {doc}");
    }

    Binding I tried to use, i tried it with and wihout the "id" property, and type 'documentDB' and 'documentDBTrigger' :

    "bindings": [
        {
          "type": "documentDB",
          "name": "doc",
          "databaseName": "MyDb",
          "collectionName": "MyCollection",
          "connection": "mydb_DOCUMENTDB",
          "direction": "in"
        }

    Monday, September 12, 2016 1:04 PM

Answers