連線最適化表單與Microsoft® Power Automate connect-adaptive-form-with-power-automate

您可以設定最適化表單,在提交時執行 Microsoft® Power Automate Cloud Flow。設定的最適化表單會將擷取的資料、附件和記錄文件傳送到 Power Automate Cloud Flow 進行處理。它可幫助您建立自訂資料擷取體驗,同時利用Microsoft® Power Automate的強大功能,圍繞擷取的資料建立商業邏輯,並自動化客戶工作流程。

最適化Forms編輯器提供 叫用Microsoft®Power Automate流程 傳送最適化表單資料、附件和記錄檔案的提交動作會傳送到Power Automate雲端流程。

AEMas a Cloud Service提供多種現成的提交動作,用於處理表單提交。 如需這些選項的詳細資訊,請參閱 最適化表單提交動作 文章。

優點

以下是整合最適化表單與 Microsoft® Power Automate 後,可以執行的部分操作範例:

  • 在 Power Automate 業務流程中使用最適化表單資料
  • 使用 Power Automate 將擷取的資料傳送到 500 多個資料來源或任何公開可用的 API
  • 對擷取的資料執行複雜的計算
  • 按預定義的排程將最適化表單資料儲存到儲存系統

先決條件

以下為連線最適化表單與Microsoft® Power Automate的必要條件:

  • Microsoft® Power Automate Premium授權。
  • Microsoft® Power Automate流程 使用 When an HTTP request is received 觸發以接受最適化表單提交資料。
  • 具有的Experience Manager使用者 Forms AuthorForms管理員 許可權
  • 用來連線至Microsoft的帳戶®Power Automate是已設定為可從調適型表單接收資料的Power Automate流程的所有者

使用Microsoft® Power Automate連線您的Formsas a Cloud Service執行個體 connect-forms-server-with-power-automate

執行以下動作,將您的Formsas a Cloud Service執行個體與Microsoft® Power Automate連線:

建立Microsoft® Azure Active Directory應用程式 ms-power-automate-application

  1. 登入 Azure入口網站.

  2. 選取 Azure Active Directory 從左側導覽。

  3. 在「預設目錄」頁面上,選取 應用程式註冊 從左側面板。

  4. 在「應用程式註冊」頁面上,按一下「新註冊」 。

  5. 在頁面上指定名稱、支援的帳戶型別和重新導向URI。 在「重新導向URI」中,指定下列專案,然後按一下「儲存」。

    • https://[Forms as a Cloud Service Server]/libs/fd/powerautomate/content/dataverse/config.html
    • https://[Forms as a Cloud Service Server]/libs/fd/powerautomate/content/flowservice/config.html

    註冊Azure Active Directory應用程式

    note note
    NOTE
    如有需要,您也可以從「驗證」頁面指定其他重新導向URI。
    對於支援的帳戶型別,請根據您的使用案例選取單一租使用者、多個租使用者或個人Microsoft®帳戶
  6. 在「驗證」頁面上,啟用下列選項,然後按一下「儲存」。

    • 存取權杖(用於隱含流程)
    • ID權杖(用於隱含和混合流量)
  7. 在API許可權頁面上按一下「新增許可權」 。

  8. 在Microsoft® API底下選取流量服務,然後選取以下許可權。

    • Flows.Manage.All
    • Flows.Read.All

    按一下「新增許可權」以儲存許可權。

  9. 在API許可權頁面上按一下「新增許可權」 。 選取我的組織使用的API並搜尋 DataVerse.

  10. 啟用user_impersonation ,然後按一下新增許可權。

  11. (選擇性)在「憑證和密碼」頁面上,按一下「新增使用者端密碼」。 在「新增使用者端密碼」畫面上,提供密碼到期的說明和時段,然後按一下「新增」。 產生秘密字串。

  12. 記下特定於您的組織的資訊 動態環境URL.

建立Microsoft® Power Automate Dataverse雲端設定 microsoft-power-automate-dataverse-cloud-configuration

  1. 在AEM Forms作者例項上,導覽至 工具 錘子 > 一般 > 設定瀏覽器.

  2. 設定瀏覽器 頁面,選取 建立.

  3. 建立設定 對話方塊,指定 標題 對於設定,啟用 雲端設定,並選取 建立. 這樣便會建立儲存 Cloud Services 的設定容器。請確保資料夾名稱未含任何空格。

  4. 瀏覽至 工具 錘子 > Cloud Service > Microsoft®® Power Automate Dataverse 然後開啟您在上一步中建立的設定容器。

    note note
    NOTE
    建立最適化表單時,請在 設定容器 欄位。
  5. 在設定頁面上,選取 建立 以建立 Microsoft®®® Power Automate Flow Service AEM Forms中的設定。

  6. 設定Microsoft®® Power Automate的Dataverse服務 頁面,指定 使用者端ID (也稱為應用程式ID)、 使用者端密碼OAuth URL動態環境URL. 使用的使用者端ID、使用者端密碼、OAuth URL及動態環境URL Microsoft® Azure Active Directory應用程式 您在上一節中建立。 在Microsoft® Azure Active Directory應用程式UI中使用端點選項來尋找OAuth URL

    使用Microsoft Power Automate應用程式UI中的「端點」選項來尋找OAuth URL

  7. 選取 連線 . 如有要求,請登入您的Microsoft® Azure帳戶。 選取「儲存」。

建立Microsoft® Power Automate流程服務雲端設定 create-microsoft-power-automate-flow-cloud-configuration

  1. 瀏覽至 工具 錘子 > Cloud Service > Microsoft® Power Automate流程服務 並開啟您在上一節中建立的設定容器。

    note note
    NOTE
    建立最適化表單時,請在 設定容器 欄位。
  2. 在設定頁面上,選取 建立 以建立 Microsoft® Power Automate Flow Service AEM Forms中的設定。

  3. 設定Microsoft® Power Automate的Dataverse 頁面,指定 使用者端ID (也稱為應用程式ID)、 使用者端密碼OAuth URL動態環境URL. 使用使用者端ID、使用者端密碼、OAuth URL和Dynamics環境ID。 在Microsoft® Azure Active Directory應用程式UI中使用端點選項來尋找OAuth URL。 開啟 我的流程 連結並選取「我的流程」,使用URL中列出的ID作為「動態環境ID」。

  4. 選取 連線. 如有要求,請登入您的Microsoft® Azure帳戶。 選取「儲存」。

發佈Microsoft® Power Automate Dataverse和Microsoft® Power Automate流程服務雲端設定 publish-microsoft-power-automate-dataverse-cloud-configuration

  1. 瀏覽至 工具 錘子 > Cloud Service > Microsoft® Power Automate Dataverse 並開啟您之前建立的設定容器 建立Microsoft® Power Automate Dataverse雲端設定 區段。
  2. 選取 dataverse 設定並選取 發佈.
  3. 在發佈頁面上,選取 所有設定 並選取 發佈. 發佈Power Automate Dataverse和Power Automate流程服務雲端設定。

您的Formsas a Cloud Service執行個體現在已與Microsoft® Power Automate連線。 您現在可以將最適化Forms資料傳送到Power Automate流程。

使用叫用Microsoft® Power Automate流程提交動作將資料傳送至Power Automate流程 use-the-invoke-microsoft-power-automate-flow-submit-action

在您之後 使用Microsoft® Power Automate連線您的Formsas a Cloud Service執行個體,執行下列動作來設定您的最適化表單,以在表單提交時傳送擷取的資料至Microsoft®流程。

  1. 登入您的Author例項,選取您的Adaptive Form並按一下 屬性.

  2. 在設定容器中,瀏覽並選取在區段中建立的容器 建立Microsoft® Power Automate Dataverse雲端設定,並選取 儲存並關閉.

  3. 開啟最適化表單進行編輯並導覽至 提交 最適化表單容器屬性的區段。

  4. 在屬性容器中,針對 提交動作 選取 叫用Power Automate流程 選項並選取 Power Automate流程. 選取所需的流程,並在提交時提交最適化Forms資料。

    設定提交動作

NOTE
提交最適化表單前,請確定 When an HTTP Request is received 已將具有以下JSON結構描述的觸發程式新增至您的Power Automate流程。
        {
            "type": "object",
            "properties": {
                "attachments": {
                    "type": "array",
                    "items": {
                        "type": "object",
                        "properties": {
                            "filename": {
                                "type": "string"
                            },
                            "data": {
                                "type": "string"
                            },
                            "contentType": {
                                "type": "string"
                            },
                            "size": {
                                "type": "integer"
                            }
                        },
                        "required": [
                            "filename",
                            "data",
                            "contentType",
                            "size"
                        ]
                    }
                },
                "templateId": {
                    "type": "string"
                },
                "templateType": {
                    "type": "string"
                },
                "data": {
                    "type": "string"
                },
                "document": {
                    "type": "object",
                    "properties": {
                        "filename": {
                            "type": "string"
                        },
                        "data": {
                            "type": "string"
                        },
                        "contentType": {
                            "type": "string"
                        },
                        "size": {
                            "type": "integer"
                        }
                    }
                }
            }
        }

相關文章

recommendation-more-help
fbcff2a9-b6fe-4574-b04a-21e75df764ab