Summary
The user is facing issues with accessing variables from multiple parent streams in a custom HTTP connector in Airbyte. They are trying to include both client_uid and property_id in the URL path but are encountering problems with interpolation. They have tried configuring the streams and transformations but are not seeing the desired results.
Question
Hi everyone,
I’m working on setting up a custom stream in Airbyte’s HTTP API connector and I’m running into some issues with accessing variables from multiple parent streams in the URL path.
Here’s what I’m trying to achieve:
• Clients Stream: Provides uid (client unique identifier).
• Properties Stream: Child of Clients, provides id (property identifier) and needs to have access to client_uid.
• Custom Stream: Needs to include both the client_uid and property_id in the URL path, similar to how the Properties stream works.
What I’ve Tried:
- Configured the
CustomStream with Two Parent Streams:
• Parent Streams:
• Properties
• Parent Key:id
︎ Current Parent Key Value Identifier: property_id
• Clients
• Parent Key:uid
◦ Current Parent Key Value Identifier:client_uid
• URL Path:
• bash
•
•
◦ /api/v1/custom/{{ stream_partition.client_uid }}/{{ stream_partition.property_id }}
• Transformations:
◦ Added fields forclient_uidandproperty_idusing{{ stream_partition.client_uid }}and{{ stream_partition.property_id }}respectively. - Issues Encountered:
◦ When making a request, only theproperty_idis correctly interpolated in the URL; theclient_uidis not appearing.
◦ If I remove theClientsparent stream, theproperty_idshows up after the/in the URL, but I still can’t get both variables to appear together. - Additional Steps:
◦ I added a transformation in thePropertiesstream to includeclient_uidin each record, but I’m still not seeingclient_uidin thePropertiesAPI response or in theCustomstream.
Current Configuration of theCustomStream:
• URL Path:
• bash
•
•
• /api/v1/custom/{{ stream_partition.client_uid }}/{{ stream_partition.property_id }}
• Parent Streams:
• Properties
︎ Parent Key: id
◦ Current Parent Key Value Identifier:property_id
• Clients
︎ Parent Key: uid
◦ Current Parent Key Value Identifier:client_uid
• Transformations:
• Add Field:
︎ Path: client_uid
◦ Value:{{ stream_partition.client_uid }}
• Add Field:
︎ Path: property_id
◦ Value:{{ stream_partition.property_id }}
Questions:
• Has anyone successfully accessed variables from multiple parent streams in a custom HTTP connector?
• Is there a better way to structure the streams or transformations to include bothclient_uidandproperty_idin the URL path?
• Do I need to adjust how I’m includingclient_uidin thePropertiesstream so that it can be accessed in theCustomstream?
Any insights or suggestions would be greatly appreciated!
This topic has been created from a Slack thread to give it more visibility.
It will be on Read-Only mode here. Click here if you want
to access the original thread.