Hi @hnguy71 ,
Could you share the method you are currently using?
If it is an authentication error, make sure the username and password are configured correctly.
I did a test on my side and it seems that we can get the link to team through List channels action.
I noticed that the channel web url is very similar to the link to team, so just replace some of the elements in channel web url to get the link to team.
channel web url:
https://teams.microsoft.com/l/channel/19%3a231de7d6ff8fb6af35cda%40thread.skype/General?groupId=849ca1da-e091-4354-91d3-6aafe5&tenantId=9e51064f-f6a5-41a2-89a9-97806
Link to team:
https://teams.microsoft.com/l/team/19%3a231de7d6ff8fb6af35cda%40thread.skype/conversations?groupId=849ca1da-e091-4354-91d3-6aafe5&tenantId=9e51064f-f6a5-41a2-89a9-97806
You could get the link to team by the following method.
- First get all the channels in the specified team through List channels action, and then initialize a variable to store link to team.
- Traversing all the channels, here you only need to traverse the first element, but it does not affect the subsequent operations.
- Replacechannel in the channel's web url with team.
- In Set variable action, replace channel display name in the result obtained in the previous step with conversations.
- The result of the last variable is link to team.
Compose:
replace(items('Apply_to_each')['webUrl'],'channel','team')
Set variable:
replace(outputs('Compose'),items('Apply_to_each')['displayName'],'conversations')
Image reference:

Best Regards,