Use result of a read data fn in the where conditions box of another read data fn

Use the result of one read data function in another's where conditions.

Overview

The second function was running before the first, so the variable was not yet available.
Ensure the first read data function runs before the second to populate the variable correctly.

Answered
Connectivity v6
st stikkimorey 15 May, 2019
Hi

I have a read data function which displays correctly when I refer to it using custom code like: {var:read_hub.Hub.value} In this instance, it returns the hub "Cleeve"

I have another function called read_articles which has the models Article and Asset

When I use this Where condition in read_articles it works: Asset.asset_owner:Cleeve

But if I try to refer to the result of read_hub with Asset.asset_owner:{var:read_hub.Hub.value} I don't get any results.

Please tell me what I am doing wrong.

Thanks
st stikkimorey 15 May, 2019
Answer
Ahh - I needed the read_hub function to run before the read_articles function. Now it works
This topic is locked and no more replies can be posted.