Team_id input error in UiPath MicrosoftTeams Activities

Hi, I am having trouble using UiPath MicrosoftTeams Activities.

In the Send channel message, I entered the Team_ID in the input pull-down, but it is giving me an input error and I would like to know what to do about it.

ActivitiesVersion:4.0.4-preview.

Hi @yutaka.hakiai

Can you please share the error mesaage you are receiving ?

Cheers

Hi @Anil_G

Thank you for your reply.

If you use the pull-down selection values, the
I am unable to submit and get a build error.
“Main.xaml: Value for a required activity argument ‘normalised-teams::channels::messages.team_id’ was not supplied.”

The pull-down displays the following
“Guid” - “ChannelName”.

Hi @yutaka.hakiai

Can you try clicking on ‘plus’ and then give the value in advanced editor or select from the menu you see

Cheers

Hi @Anil_G

I entered the Team_id directly into the advanced editor and ran it, but got a 400 error.

11/26/2022 20:57:42 => [Debug] Debug started for file: Main
11/26/2022 20:57:44 => [Info] 空のプロセス execution started
11/26/2022 20:57:51 => [Error] Activity ended with error:
ErrorCode: [400]
Message: Bad Request
RequestId: 6381ff3fe4b0d5352e2b3ac1
ProviderMessage: error - {code=BadRequest, message={“errorCode”:201,“message”:“The resource URL is misformatted.”}, innerError={date=2022-11-26T11:57:53, request-id=6dce69dd-52b6-48fe-ba47-b8b2e5494040, client-request-id=6dce69dd-52b6-48fe-ba47-b8b2e5494040}}
11/26/2022 20:57:51 => [Error] Send channel message: BusinessActivityExecutionException:
Error Code: [400]
Message: Bad Request
RequestId: 6381ff3fe4b0d5352e2b3ac1
ProviderMessage: error - {code=BadRequest, message={“errorCode”:201,“message”:“The resource URL is misformatted.”}, innerError={date=2022-11-26T11:57:53, request-id=6dce69dd-52b6-48fe-ba47-b8b2e5494040, client-request-id=6dce69dd-52b6-48fe-ba47-b8b2e5494040}}

thank you.

Hi @yutaka.hakiai

As per error i see the id that you entered …it is expecting in a different format…or are there any special chaeacters? If yes use uriencode(teamid)

Did you enter it in the same format you saw when you selected the drop down?

In the drop down you might see names but it needs the id of that

Cheers

Hi @Anil_G

Did you enter it in the same format you saw when you selected the drop down?

I typed the text in the pull-down display into the advice editor.
e.x)
Pulldown display: aaaba3da-2599-46d3-aabb-284113918aa3 - TEST
advanced editor: “aaaba3da-2599-46d3-aabb-284113918aa3 - TEST”

The error message content has changed.
I am getting an error that my Team_Id is wrong.
I am sure that the Team_Id is correct.

11/26/2022 23:23:38 => [Debug] Debug started for project: 空のプロセス
11/26/2022 23:23:39 => [Info] 空のプロセス execution started
11/26/2022 23:23:43 => [Error] Activity ended with error:
ErrorCode: [400]
Message: Bad Request
RequestId: 63822170e4b0d5352e2b6bd0
ProviderMessage: error - {code=BadRequest, message=teamId needs to be a valid GUID., innerError={date=2022-11-26T14:23:45, request-id=8cdedc88-6b66-4fce-889b-05b53fc9d533, client-request-id=8cdedc88-6b66-4fce-889b-05b53fc9d533}}
11/26/2022 23:23:43 => [Error] Send channel message: BusinessActivityExecutionException:
Error Code: [400]
Message: Bad Request
RequestId: 63822170e4b0d5352e2b6bd0
ProviderMessage: error - {code=BadRequest, message=teamId needs to be a valid GUID., innerError={date=2022-11-26T14:23:45, request-id=8cdedc88-6b66-4fce-889b-05b53fc9d533, client-request-id=8cdedc88-6b66-4fce-889b-05b53fc9d533}}

thank you.

Hi @yutaka.hakiai

Can you try giving this please “aaaba3da-2599-46d3-aabb-284113918aa3”

Basically it required teams.ID value which is only the ID of the teams channel

either we can get from find menu by giving name as that is giving error give the ID alone which you have already

Cheers

Hi @Anil_G

Can you try giving this please “aaaba3da-2599-46d3-aabb-284113918aa3”

I modified it to “aaaba3da-2599-46d3-aabb-284113918aa3” and ran it.
Then I got the following error.

11/26/2022 23:51:44 => [Debug] Debug started for project: 空のプロセス
11/26/2022 23:51:45 => [Info] 空のプロセス execution started
11/26/2022 23:51:51 => [Error] Activity ended with error:
ErrorCode: [400]
Message: Bad Request
RequestId: 63822807e4b0d3021ee5f16b
ProviderMessage: error - {code=BadRequest, message={“errorCode”:201,“message”:“The resource URL is misformatted.”}, innerError={date=2022-11-26T14:51:53, request-id=ca5a02d1-f58b-4fcd-9ba6-00488830b5a3, client-request-id=ca5a02d1-f58b-4fcd-9ba6-00488830b5a3}}
11/26/2022 23:51:51 => [Error] Send channel message: BusinessActivityExecutionException:
Error Code: [400]
Message: Bad Request
RequestId: 63822807e4b0d3021ee5f16b
ProviderMessage: error - {code=BadRequest, message={“errorCode”:201,“message”:“The resource URL is misformatted.”}, innerError={date=2022-11-26T14:51:53, request-id=ca5a02d1-f58b-4fcd-9ba6-00488830b5a3, client-request-id=ca5a02d1-f58b-4fcd-9ba6-00488830b5a3}}

For reference, other parameters are set as follows
ConnectionId:(Connector Name)
ChannelId:“TEST”
TeamId:“aaaba3da-2599-46d3-aabb-284113918aa3”
Content:“TEST”

TeamsChannelLink is this.
(Some of the text has been rewritten to sample characters.)
“XXXX://teams.microsoft.com/l/channel/XXXXXXXXXXXX?groupId=aaaba3da-2599-46d3-aabb-284113918aa3&tenantId=XX94451a-dc70-XX93-97fd-f0a3e4d7e6XX”

thank you.

Hi @yutaka.hakiai

Everything looks correct except the channel id which should have been an id… i see you have given a text there… give the correct id you can get from channel url

For reference

Cheers

Hi @Anil_G

Thanks for the reference info!
The reason was that I had specified the “ChannelId” incorrectly.
I re-specified it based on the URL page you provided and was able to send the message successfully.

thank you.

Hi @yutaka.hakiai

Good to know .Happy Automation.

cheers

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.