@Anonymous
To get you team id dynamically using List Records as below:

Then initialize a variable and set it from the Expression pane as below
first(outputs('List_Records')?['body/value'])['teamid']

And then use the Variable on the created record as below:

If this post helps you with your problem, please mark your as Accepted solution.
If you like my response, please give it a Thumbs Up.
MG (Naturally Curious)