cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
oappdev
Advocate V
Advocate V

Retrieve checkbox value and remove "@odata.type"

Happy Tuesday!

 

l'm able to retrieve the checkbox value. But would like to remove. 

[{"@odata.type":"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference","Id":0,"Value":"Patient"}]

and just have  "Patient" display in the "TypeOfPerson" column.

CSV.PNG

Checkbox.PNG

 

Thank you in advance

2 ACCEPTED SOLUTIONS

Accepted Solutions
DeepakS
Super User
Super User

Hi @oappdev 

 

When you retrieve SP items  with choice field .you should use the value parameter to get the value.

Here is an screen capture for the reference:
CHSCOl.png
-------------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

 

Hi @oappdev ,

 

There are two ways to solve this problem.

 

First one, if you always pick one option of the checkbox, please try to disable Allow multiple selections in the list.

Then you only need to fill TypeOfPerson Value in Create CSV table action.

 

The second method, please refer to the following method.

  • Initialize a string variable to store choice value.
  • Initialize an array variable to store the data need to display in CSV table.
  • Append the column to be displayed in CSV table to an array variable.
  • Then create CSV table by using the output of the array variable.

Image reference:

60.PNG61.PNG62.PNG

Hope this helps.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

8 REPLIES 8
DeepakS
Super User
Super User

Hi @oappdev 

 

When you retrieve SP items  with choice field .you should use the value parameter to get the value.

Here is an screen capture for the reference:
CHSCOl.png
-------------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

Thank you @DeepakS  Will give it a try and circle back

Hi @DeepakS 

 

Getting the following error. l'm i missing something?

Flow save failed with code 'InvalidTemplate' and message 'The template validation failed: 'The inputs of template action 'Create_CSV_table' at line '1 and column '1103' is invalid. Action 'Apply_to_each_2' must be a parent 'foreach' scope of action 'Create_CSV_table' to be referenced by 'repeatItems' or 'items' functions.'.'.

Flow_Error.PNG

 

Using the following "Expression"

 

items('Apply_to_each_2')?['TypeOfPerson']?['Value']

 

 

Flow.PNGFlow1.PNG

Hi @oappdev 

 

I am not sure why you have second apply to each. i think you dont need that. your expression should looks like:

items('Apply_to_each')?['TypeOfPerson']?['Value']

 

-------------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

 

Thank you @DeepakS  Having one of those days

 

Hi @oappdev ,

 

There are two ways to solve this problem.

 

First one, if you always pick one option of the checkbox, please try to disable Allow multiple selections in the list.

Then you only need to fill TypeOfPerson Value in Create CSV table action.

 

The second method, please refer to the following method.

  • Initialize a string variable to store choice value.
  • Initialize an array variable to store the data need to display in CSV table.
  • Append the column to be displayed in CSV table to an array variable.
  • Then create CSV table by using the output of the array variable.

Image reference:

60.PNG61.PNG62.PNG

Hope this helps.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

DuncanM
Frequent Visitor

Thank you Deepak you have made my day already!

Hi Deepak !

 

I am working on a Sharepoint list and thanks to you , I am able to retrieve the choice field by value . But I want to filter this list by a particular value in the choice field . How do I go about doing that ?

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Top Solution Authors
Users online (1,123)