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

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

 

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

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

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

Highlighted

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

Highlighted

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

Highlighted

 

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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Top Solution Authors
Top Kudoed Authors
Users online (12,579)