Stream Slicing with Substreams

I have a stream that returns the leads uuIDs
And then, I have a substream that should use every ID from the parent stream to return data about every lead.

I’m doing like this:

def path(
        self,
        stream_state: Mapping[str, Any] = None,
        stream_slice: Mapping[str, Any] = None,
        next_page_token: Mapping[str, Any] = None
    ) -> str:
        uuid=stream_slice["parent"]["uuid"]
        return f"platform/contacts/uuid:{uuid}"

The problem is, this only returns data about the last lead ID. How can I make so it returns data about all IDs in the parent stream and not only the last one?
Do I need to define what is the parent stream_slice in the parent stream? Do I have to make a Loop?

Hi @caquinhodomato,
Could you please share your full implementation?

Hi there from the Community Assistance team.
We’re letting you know about an issue we discovered with the back-end process we use to handle topics and responses on the forum. If you experienced a situation where you posted the last message in a topic that did not receive any further replies, please open a new topic to continue the discussion. In addition, if you’re having a problem and find a closed topic on the subject, go ahead and open a new topic on it and we’ll follow up with you. We apologize for the inconvenience, and appreciate your willingness to work with us to provide a supportive community.