Power BI

Power Automate 中的 UI 流輸出

了解我們如何使用 UI 流輸出從 Power Automate 流中為第三方應用提取信息,而無需連接到 API。

在本教程中,我們將討論如何使用 UI Flow 輸出從Power Automate 工作流中提取信息。這主要用於沒有可連接的連接器或 API 的第三方應用程序。

如果我們想要記錄我們的 UI 流程然後從中保存一個值,則使用輸出。

目錄

創建一個 UI 流程

例如,我們將製作一個 UI 流程,在我們的桌面上打開天氣應用程序,並複制天氣應用程序上的溫度或當前條件以輸出它。 

Power Automate 中的 UI 流輸出

首先,讓我們製作另一個 UI 流程。

Power Automate 中的 UI 流輸出

我們將再次使用 Windows 記錄器,然後單擊下一步。

Power Automate 中的 UI 流輸出

讓我們將流的名稱設置為“ UIFlowWithOutput ”,然後單擊“下一步” 。

Power Automate 中的 UI 流輸出

我們不要設置任何輸入,因為我們現在只是在處理輸出。因此,只需單擊“下一步”。

Power Automate 中的 UI 流輸出

然後點擊新建步驟。

Power Automate 中的 UI 流輸出

之後,打開錄音機。

Power Automate 中的 UI 流輸出

然後選擇Record app。

Power Automate 中的 UI 流輸出

讓我們啟動我們的記錄器。

Power Automate 中的 UI 流輸出

然後點擊錄製。

Power Automate 中的 UI 流輸出

我們現在應該打開天氣應用程序。

Power Automate 中的 UI 流輸出

使用 UI 流輸出

打開我們要使用輸出的應用程序(在本例中為天氣應用程序)後,選擇Outputs然後單擊Select text on screen。

Power Automate 中的 UI 流輸出

我們可以簡單地突出顯示我們希望它提取的文本。

Power Automate 中的 UI 流輸出

然後,它將Sample 值設置為它能夠獲取的值。在這種情況下,它選擇了Current condition: 52°。讓我們將變量名稱設置為Temperature並單擊Save。

Power Automate 中的 UI 流輸出

現在讓我們關閉我們的天氣應用程序。

Power Automate 中的 UI 流輸出

然後點擊完成。

Power Automate 中的 UI 流輸出

所以現在我們有了我們的UI 流程。讓我們看看它是如何工作的。 

理解和測試 UI 流輸出

首先,它啟動天氣應用程序。然後,它捕獲我們選擇的文本。

Power Automate 中的 UI 流輸出

然後我們點擊下一步。

Power Automate 中的 UI 流輸出

如我們所見,我們現在有一個溫度輸出和與之相關的操作名稱 ( Get_text_1 )。讓我們單擊“下一步”並嘗試一下。

Power Automate 中的 UI 流輸出

單擊立即測試 。

Power Automate 中的 UI 流輸出

然後單擊測試。

Power Automate 中的 UI 流輸出

確保不要與屏幕互動。如您所見,它會自動打開然後關閉天氣應用程序。 

Power Automate 中的 UI 流輸出

結果,它能夠獲得52°作為輸出。

Power Automate 中的 UI 流輸出


Power Automate UI 流:簡介
Microsoft Power Automate 中的 UI 流輸入
Microsoft Power Automate 中的工作流輸入

結論

總而言之,我們能夠創建一個 UI 流示例,該示例打開一個應用程序並捕獲輸出以保存它。這只是一個簡單的示例,但通常,這主要用於獲取對沒有任何連接器或任何第三方 API 的桌面應用程序的訪問或信息。

這才是您真正使用 UI 流輸出的目的。希望您能夠了解如何以及在何處使用它。

一切順利,

亨利

More in Power BI