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

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 Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,585)