はじめまして。こんにちは。
英語が苦手なので、Google翻訳機能を使って英語→日本語へ変換してメッセージを作成しています。
このテーマを閲覧する場合は、日本語→英語へ変換してください。
PowerAutomate初心者です。助けてください。
題材に詳しい人がいたら教えてください。
PowerAutomateでSharePointOnlineListのcsvを作成した時、csvをアップロードして閲覧すると、種別「選択肢」の列が全て「{"@odata.type":"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser」のような表示(種別「1行テキスト」の列は問題無く値が表示されている。)
csvを作成するタイミングで「{"@odata.type~」→値に変換する方法はありますか?
フロー:
トリガー
↓
アイテムの取得(SharePointOnlineList)
↓
CSVテーブルの作成
中身
@{outputs('Get_items')?['body/value']}
↓
ファイルの作成
中身
@{concat(decodeUriComponent('%EF%BB%BF'),body('Create_CSV_table'))}
※文字化けを防ぐために concat(decodeUriComponent('%EF%BB%BF') を使っています(ネットで調べた情報)
お返事いただければ幸いです。
Mr. v-zhoqian-msft
That was really helpful. Thanks a lot.
Hi @Shota_Ito ,
Yes, if you choose "Custom" mode in the action, you can only enter the parameters manually.
If you want to avoid such a troublesome thing, you have to change the structure of the SharePoint list.
Best regards,
Community Support Team _ habsburg Qian
If this post helps, then please consider Accept it as the solution to help the other members find it.
v-zhoqian-msftさん
丁寧に教えていただきありがとうございます。
選択肢フィールドを持つ SharePoint リストを含む csv テーブルを作成します。
また、選択肢フィールドで複数の値が許可されていない場合を想定しております。
(選択肢フィールドで複数の値が許可されている場合の記載方法についても勉強になりました。)
追加の質問となりますが
現在SharePointOnlineListのcolumn数が85となっており
全てのcolumnをcsvテーブル作成したいと考えております。
Action:
Create CSV table
Form value
Columns Custom ←カスタムを選択した場合は
全ての column (数85)を Header、Value に手入力が必要という理解で合っておりますか。
お返事いただければ幸いです。
Hi, @Shota_Ito
Do you want to create a csv table with a SharePoint list that has a choice field?
Based on your description, I have made a simple test for your reference.
First, if the choice field doesn’t allow multiple values.
You could use the following formula:
item()?['AChoice']?['Value']
Result:
Second, if the choice field allows multiple values.
You could use the following formula:
join(xpath(xml(json(concat('{"body":{"value":', item()?['Choices'] , '}}'))), '/body/value/Value/text()'), ',')
Result:
Best regards,
Community Support Team _ habsburg Qian
If this post helps, then please consider Accept it as the solution to help the other members find it.
Michael E. Gernaey
8
Super User 2025 Season 1
ankit_singhal
7
Super User 2025 Season 1
David_MA
4
Super User 2025 Season 1