web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / PowerAutomateでSharePoi...
Power Automate
Unanswered

PowerAutomateでSharePointOnlineListのcsvを作成した時、csvを開いて閲覧すると、種別「選択肢」の列が全て「{"@odata.type":"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser」のような表示になっている。(種別「1行テキスト」の列は問題無く値が表示されている。)csvを作成するタイミングで「{"@odata.type~」→値に変換する方法はありますか?

(1) ShareShare
ReportReport
Posted on by 10

はじめまして。こんにちは。

英語が苦手なので、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') を使っています(ネットで調べた情報)

 

お返事いただければ幸いです。

Categories:
I have the same question (0)
  • Verified answer
    v-zhoqian-msft Profile Picture
    Microsoft Employee on at

    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.

     

    vzhoqianmsft_0-1680505983447.png

     

    You could use the following formula:

     

     item()?['AChoice']?['Value']

     

    vzhoqianmsft_1-1680505983454.png

     

    Result:

    vzhoqianmsft_2-1680505983456.png

     

     

    Second, if the choice field allows multiple values.

    vzhoqianmsft_3-1680505983457.png

     

    You could use the following formula:

     

     join(xpath(xml(json(concat('{"body":{"value":', item()?['Choices'] , '}}'))), '/body/value/Value/text()'), ',')

     

    vzhoqianmsft_4-1680505983461.png

     

    Result:

    vzhoqianmsft_5-1680505983462.png

     

     

    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.

  • Shota_Ito Profile Picture
    10 on at

    v-zhoqian-msftさん
    丁寧に教えていただきありがとうございます。


    選択肢フィールドを持つ SharePoint リストを含む csv テーブルを作成します。
    また、選択肢フィールドで複数の値が許可されていない場合を想定しております。
    (選択肢フィールドで複数の値が許可されている場合の記載方法についても勉強になりました。)


    追加の質問となりますが

    現在SharePointOnlineListのcolumn数が85となっており
    全てのcolumnをcsvテーブル作成したいと考えております。

     

    Action:
    Create CSV table
    Form value
    Columns Custom ←カスタムを選択した場合は
    全ての column (数85)を Header、Value に手入力が必要という理解で合っておりますか。

    お返事いただければ幸いです。

  • Verified answer
    v-zhoqian-msft Profile Picture
    Microsoft Employee on at

    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.

  • Shota_Ito Profile Picture
    10 on at

    Mr. v-zhoqian-msft

    That was really helpful. Thanks a lot.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard