cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Super User II
Super User II

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

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

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

Highlighted
Post Patron
Post Patron

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

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

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

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.

 

Highlighted
Post Patron
Post Patron

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

Thank you @DeepakS  Having one of those days

Highlighted
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

Microsoft Ignite 2020

Check out the announcement of Power Platform content at Microsoft Ignite!

thirdImage

Experience what's new for Power Automate

Join us for an in-depth look at the new Power Automate features and capabilities at the free Microsoft Business Applications Launch Event.

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,979)