cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
oappdev Post Patron
Post Patron

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
Super User
Super User

Re: Retrieve checkbox value and remove "@odata.type"

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

Community Support
Community Support

Re: Retrieve checkbox value and remove "@odata.type"

 

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

6 REPLIES 6
Super User
Super User

Re: Retrieve checkbox value and remove "@odata.type"

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

oappdev Post Patron
Post Patron

Re: Retrieve checkbox value and remove "@odata.type"

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

oappdev Post Patron
Post Patron

Re: Retrieve checkbox value and remove "@odata.type"

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

Super User
Super User

Re: Retrieve checkbox value and remove "@odata.type"

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.

 

oappdev Post Patron
Post Patron

Re: Retrieve checkbox value and remove "@odata.type"

Thank you @DeepakS  Having one of those days

Community Support
Community Support

Re: Retrieve checkbox value and remove "@odata.type"

 

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

Helpful resources

Announcements
firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Users online (4,667)