# Get Value from ${result.value}

**URL:** <https://forum.radzen.com/t/get-value-from-result-value/8296>\
**Category:** Angular\
**Created:** [June 23, 2021, 9:01pm UTC](https://forum.radzen.com/t/get-value-from-result-value/8296 "2021-06-23T21:01:41Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![kest874](https://forum.radzen.com/letter_avatar_proxy/v4/letter/k/ba9def/32.png) [@kest874](https://forum.radzen.com/u/kest874)\
**Post date:** [June 23, 2021, 9:01pm UTC](https://forum.radzen.com/t/get-value-from-result-value/8296/1 "2021-06-23T21:01:41Z")

</div>

I have a record set that returns 1 row of data, I want to get just a single value from the record-set for conditional formatting.

Property that is set on page load is "todayData" value is ${result.value}

How to I get "PlantID" (columname) from ${todayData} I tried ${todayData.PlantID} but it doesn't seem to work.

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![enchev](https://forum.radzen.com/user_avatar/forum.radzen.com/enchev/32/16_2.png) [@enchev](https://forum.radzen.com/u/enchev)\
**Post date:** [June 23, 2021, 9:23pm UTC](https://forum.radzen.com/t/get-value-from-result-value/8296/2 "2021-06-23T21:23:36Z")

</div>

> [@kest874](#):
>
> result.value}

If this is array you can use result.value[0].YourProperty

---

<div class="post-metadata">

**Author:** ![kest874](https://forum.radzen.com/letter_avatar_proxy/v4/letter/k/ba9def/32.png) [@kest874](https://forum.radzen.com/u/kest874)\
**Post date:** [June 24, 2021, 12:24pm UTC](https://forum.radzen.com/t/get-value-from-result-value/8296/3 "2021-06-24T12:24:50Z")

</div>

> [@enchev](#):
>
> result.value[0].YourProperty

So simply only thing I didn't try! Thanks again for all your help.

---

<div class="post-metadata">

**Author:** ![Owais\_Raza](https://forum.radzen.com/user_avatar/forum.radzen.com/owais_raza/32/4054_2.png) [@Owais\_Raza](https://forum.radzen.com/u/Owais_Raza)\
**Post date:** [August 15, 2021, 10:57pm UTC](https://forum.radzen.com/t/get-value-from-result-value/8296/4 "2021-08-15T22:57:28Z")

</div>

I'm facing this error, Please Guide Me...  
I'm Using Blazor Server Side...  
Please Guide me How can I get a single value from Invoke Method?

error CS0021: Cannot apply indexing with [] to an expression of type 'IQueryable'

---

<div class="post-metadata">

**Author:** ![Vinod\_Pillai](https://forum.radzen.com/user_avatar/forum.radzen.com/vinod_pillai/32/7451_2.png) [@Vinod\_Pillai](https://forum.radzen.com/u/Vinod_Pillai)\
**Post date:** [August 16, 2021, 1:13am UTC](https://forum.radzen.com/t/get-value-from-result-value/8296/5 "2021-08-16T01:13:16Z")

</div>

Since your return value is Iqueryable you can use

```auto
${result.FirstOrDefault().YourColumnName}

```

---

<div class="post-metadata">

**Author:** ![Owais\_Raza](https://forum.radzen.com/user_avatar/forum.radzen.com/owais_raza/32/4054_2.png) [@Owais\_Raza](https://forum.radzen.com/u/Owais_Raza)\
**Post date:** [February 11, 2023, 10:26pm UTC](https://forum.radzen.com/t/get-value-from-result-value/8296/6 "2023-02-11T22:26:12Z")

</div>

I'm facing this error, Please Guide Me...  
I'm Using Blazor Web Assembly...  
Please Guide me How can I get a single value from Invoke Method?

error CS0021: Cannot apply indexing with [] to an expression of type 'IEnumerable'

---

<div class="post-metadata">

**Author:** ![Owais\_Raza](https://forum.radzen.com/user_avatar/forum.radzen.com/owais_raza/32/4054_2.png) [@Owais\_Raza](https://forum.radzen.com/u/Owais_Raza)\
**Post date:** [February 11, 2023, 11:03pm UTC](https://forum.radzen.com/t/get-value-from-result-value/8296/7 "2023-02-11T23:03:30Z")

</div>

${result.Value.Sum(o=\>o.Balance)}

Resolved it myself

thank You!
