Parent-Child Stream Configuration Issue with Parameterized Requests

Summary

The user is facing an issue with passing the uid from a parent stream to a child stream in the declarative source setup. The parameterized request is not injecting the actual uid value correctly, resulting in a literal representation in the URL.


Question

This might be a dumb question but…
I’m facing an issue with a parent-child stream configuration in the declarative source setup. I have a parent stream (Clients) and a child stream (Properties). I need to pass the uid from the parent Clients stream into the child Properties stream as a query parameter.
In the Parameterized Requests section, I’m using {{ parent['uid'] }} as the value list and uid as the Current Parameter Value Identifier. However, when I test the configuration, the request URL encodes the query parameter incorrectly, and instead of injecting the actual uid from the parent, it ends up as a literal {{ parent['uid'] }} in the URL.
Here’s an example of the generated request:

T
<https://dev.test.io:123/api/v1/properties?uid=%7B%7B+parent%5B%27uid%27%5D+%7D%7D>```
Could you please confirm if `{{ parent['uid'] }}` is the correct syntax for injecting a parent stream value, or suggest the correct approach to pass the `uid` from the parent stream into the child stream’s request?
Thanks in advance for your help!

<br>

---

This topic has been created from a Slack thread to give it more visibility.
It will be on Read-Only mode here. [Click here](https://airbytehq.slack.com/archives/C021JANJ6TY/p1728581338178349) if you want 
to access the original thread.

[Join the conversation on Slack](https://slack.airbyte.com)

<sub>
["parent-child-stream", "parameterized-requests", "uid", "connector"]
</sub>

I think you want to fstring it

https://github.com/airbytehq/airbyte/blob/c45b87083702b84e3b4306dd2a51f13bf3bb2534/airbyte-integrations/connectors/source-stripe/source_stripe/source.py#L412|https://github.com/airbytehq/airbyte/blob/c45b87083702b84e3b4306dd2a51f13bf3bb2534[…]e-integrations/connectors/source-stripe/source_stripe/source.py

{"payout": f"{stream_slice['parent']['id']}"}

Here is another example: https://github.com/airbytehq/airbyte/blob/c45b87083702b84e3b4306dd2a51f13bf3bb2534/airbyte-integrations/connectors/source-stripe/source_stripe/source.py#L493|https://github.com/airbytehq/airbyte/blob/c45b87083702b84e3b4306dd2a51f13bf3bb2534[…]e-integrations/connectors/source-stripe/source_stripe/source.py

f"application_fees/{stream_slice['parent']['id']}/refunds"

I’m still a python noob, but that’s how I got it to eval my stuff f"blah{objectref}"

Your a beast, thank you!!

You shouldn’t have to use f"" syntax in the Builder, it should be a matter of the right interpolation.