sim icon indicating copy to clipboard operation
sim copied to clipboard

How to use variables

Open rajnandan1 opened this issue 9 months ago • 10 comments

I am trying to update the value of a variable but I am getting error. I am using the below code

 variable.context = "<variable.context.value>" + "<execute.response.data>"
 
 return "<variable.context>"

I have tried all possible combinations, but it is not working

rajnandan1 avatar May 09 '25 06:05 rajnandan1

Hey! Here's a simple example of me using the variables. Are there any additional details for the error you are seeing or context around what specifically you are doing? @rajnandan1

Image Image

waleedlatif1 avatar May 09 '25 17:05 waleedlatif1

I have defined a variable. It is empty string at start. I have a loop in my workflow. And each workflow runs updates the variable.

Variable = variable + some_data

rajnandan1 avatar May 09 '25 18:05 rajnandan1

Got it @rajnandan1. We actually need to add the ability to update variable values at runtime. That's an improvement for sure

emir-karabeg avatar May 09 '25 18:05 emir-karabeg

So will it be built anytime soon?

rajnandan1 avatar May 09 '25 18:05 rajnandan1

@rajnandan1 yes! We'll work on it today.

emir-karabeg avatar May 09 '25 18:05 emir-karabeg

Can't wait. Will you update the issue once. Also please share the documentation with sample code. Thank you so much.

rajnandan1 avatar May 09 '25 19:05 rajnandan1

@rajnandan1 can do!

emir-karabeg avatar May 09 '25 19:05 emir-karabeg

@emir-karabeg - +1. This would be super helpful! Do we have an update on this? Cheers

therealkamil avatar May 22 '25 15:05 therealkamil

Hi! I would love to help with documentation or sample workflows once the runtime variable update feature is live. Please let me know when it's ready so I can contribute. 🙌

ehtishamk29 avatar Jun 06 '25 11:06 ehtishamk29

@ehtishamk29 @therealkamil @rajnandan1

I appreciate you all! We're doing a big overhaul of connection blocks and variables to make it much more intuitive to use. The variables updating at runtime is a part of this change. I appreciate your patience and checking in, and will hopefully get this out this week! We've been hard at work and we're excited to release a massive update to the connections.

Looking forward to showing you all!

emir-karabeg avatar Jun 09 '25 05:06 emir-karabeg