Calling a snippet from another snippet with a variable

I have a snippet that uses Datablaze. It looks up 1 address in my db and then populates various fields. The snippet also calls another snippet that does a lookup of all addresses based on a market from the
initial address.

I am having trouble figuring out how to pass the market variable from the first address into the 2nd snippet.

Any help would be appreciated!

Hi Stephanie.

The imported snippet has access to the variables in the parent snippet's scope, you can directly use the main snippet's variable from the imported one. Please check this simplified example:

Hope this helped you.

@Abdalla_Mahmoud Not sure if I explained this correctly. Can I share my Datablaze space/snippets with you to take a look?

1 Like

@Stephanie_Bouldin sure, I shared my email with you in a DM.