訓練
模組
Text manipulation in Power Automate for desktop - Training
Learn how to manipulate text and datetime values in Power Automate for desktop.
Text.Format(formatString as text, arguments as any, optional culture as nullable text) as text
傳回透過將清單或記錄中 arguments
套用至格式字串 formatString
所建立的格式化文字。 也可以提供選擇性的 culture
(例如,"en-US")。
將數值清單格式化。
使用方式
Text.Format("#{0}, #{1}, and #{2}.", {17, 7, 22})
輸出
"17, 7, and 22."
根據美國英文文化特性,將記錄中的不同資料類型格式化。
使用方式
Text.Format(
"The time for the #[distance] km run held in #[city] on #[date] was #[duration].",
[
city = "Seattle",
date = #date(2015, 3, 10),
duration = #duration(0, 0, 54, 40),
distance = 10
],
"en-US"
)
輸出
"The time for the 10 km run held in Seattle on 3/10/2015 was 00:54:40."
訓練
模組
Text manipulation in Power Automate for desktop - Training
Learn how to manipulate text and datetime values in Power Automate for desktop.