cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Set nested object variable values

kylerussell
Deputy Chef I
Deputy Chef I

I've created an object variable with 2 nested string variables that you can see in the image below. When I later use an update variable step and select the "pet" variable is does not give me an option to set each of the nest variables. What's the point of building object variables if you can't access the nested properties? Any ideas how I can update these values later in my recipe?

updatevariable.pngobjectdetails.png

1 ACCEPTED SOLUTION

vinay
Deputy Chef II
Deputy Chef II

Hi @kylerussell ,
Yes, directly updating nested variables in the Update Variable action may not be possible. However, you can structure the nested variables as a JSON object and pass them accordingly. This way, you can modify the nested fields effectively. Please refer to the attached image for better clarity. Let me know if you need further assistance!

Screenshot 2024-12-04 at 4.22.26โ€ฏPM.png

Vinay Kumar N

View solution in original post

1 REPLY 1

vinay
Deputy Chef II
Deputy Chef II

Hi @kylerussell ,
Yes, directly updating nested variables in the Update Variable action may not be possible. However, you can structure the nested variables as a JSON object and pass them accordingly. This way, you can modify the nested fields effectively. Please refer to the attached image for better clarity. Let me know if you need further assistance!

Screenshot 2024-12-04 at 4.22.26โ€ฏPM.png

Vinay Kumar N