Using map to get a value in an array

I need to get a value in an array “TaxLine” where the TaxLineDetail.TaxRateRef.value = 30. In the case in the screenshots the Amount would be 1.75. How do I retrieve this Amount?

chrome_KvNXMao4ee
chrome_O7PssqzPSn

Hi @Shawn ,
To get nested data inside map function just write the name of the object with . to reach the nested params .
blue print is attached:)


blueprint.json (5.0 KB)

3 Likes

That worked. Thank you :+1:

Now, I’m trying to add this to a cost and the math isn’t working. 25 + 1.75 should be 26.75 but I am getting 251.75

in this case its just join the 2 strings
you need to make sure both params are number type before you try to do calculations

the other option is to use the sum() function:
{{sum(“cost”; “amount”)}}

3 Likes

got it. Appreciated.

3 Likes