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.
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”.
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}}
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”
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
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.