cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
anthonys123
Helper III
Helper III

SharePoint HTTP Request for SPO List Choice Column isn't showing choices.

EDIT: I figured this out. Of course I was trying too hard. 

I ran _api/web/Lists/getByTitle('Employee List')/fields to find the section of the output that includes

"Title":"Services","FieldTypeKind":15,"TypeAsString":"MultiChoice","TypeDisplayName":"Choice","TypeShortDescription":"Choice (menu to choose from)" which indicated to me that I had wrongly changed Choices to Services in the workflow actions. I also have to change the action for Select to body('Filter_array')?[0]?['choices']?['results'] 

 

In a test Flow (Test_01 List), I've successfully used the choices in a SPO list to present them in an Adaptive Card and then create a new item with the values selected in the adaptive card. I'm using the solution provided by @DamoBird365 in this post (thanks!!).

 

You can see in the first Filter Array Output below that it was able to extract the "Choices" of fruit.
In the second Filter Array Output, you can see that "Services" doesn't show up. 

 

Screen Shot 2022-06-17 at 11.56.39 AM.png  Screen Shot 2022-06-17 at 11.51.07 AM.png  

 

Test_01 List

_api/web/Lists/getByTitle('test_01')/fields?$select=choices

 

 

     {
        "__metadata": {
          "id": "https://company.sharepoint.com/_api/Web/Lists(guid'50d54dec-0e23-4ac8-8c21-110aa19d57b5')/Fields(guid'f8169513-d57f-417b-b166-fada03f22641')",
          "uri": "https://company.sharepoint.com/_api/Web/Lists(guid'50d54dec-0e23-4ac8-8c21-110aa19d57b5')/Fields(guid'f8169513-d57f-417b-b166-fada03f22641')",
          "type": "SP.FieldMultiChoice"
        },
        "Choices": {
          "__metadata": {
            "type": "Collection(Edm.String)"
          },
          "results": [
            "Apple",
            "Orange",
            "Pear",
            "Grape",
            "Lemon"
          ]
        }
      },

 

 

 

Employee List 

_api/web/Lists/getByTitle('Employee List')/fields?$select=Services

_api/web/Lists/getByTitle('Employee List')/fields?$select=Choices < this results in a good flow. 

 

 

      {
        "__metadata": {
          "id": "https://company.sharepoint.com/_api/Web/Lists(guid'1a024822-4580-44d7-b7c9-260b31f5562f')/Fields(guid'63d64c07-cfbd-4d24-8001-0e3f153bdd46')",
          "uri": "https://company.sharepoint.com/_api/Web/Lists(guid'1a024822-4580-44d7-b7c9-260b31f5562f')/Fields(guid'63d64c07-cfbd-4d24-8001-0e3f153bdd46')",
          "type": "SP.FieldMultiChoice"
        }
      },

 

 

 

0 REPLIES 0

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (1,902)