How to get team_id when creating new record from Relation Manager

I have a Relation Manager ConversionsRelationManager I'm trying to create new record from there but I keep getting team_id doesn't have a default value. I have the normal resource UnitConversionResource and I'm able to create new records there with the team_id being passed correctly
Solution
Thanks @tomc actually found probaly a safer way since Users can edit values in hidden fields

->headerActions([
    Tables\Actions\CreateAction::make()->mutateFormDataUsing(function (array $data): array {
        $data['team_id'] = Filament::getTenant()->id;
        return $data;
    })
])


As mention in the docs - https://filamentphp.com/docs/3.x/actions/prebuilt-actions/create#customizing-data-before-saving
Was this page helpful?