Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - General Discussion
Answered

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

Like (1) ShareShare
ReportReport
Posted on 2 Apr 2023 15:36:22 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') を使っています(ネットで調べた情報)

 

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

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

    Mr. v-zhoqian-msft

    That was really helpful. Thanks a lot.

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

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

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

    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.

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - General Discussion

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 8 Super User 2025 Season 1

#2
ankit_singhal Profile Picture

ankit_singhal 7 Super User 2025 Season 1

#3
David_MA Profile Picture

David_MA 4 Super User 2025 Season 1

Overall leaderboard