cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
bmagana
New Member

Problem using variable in Team & Channel name when publishing Adaptive Card to Team and wait for a response

 

Hi,

 

I have a problem when publishing an Adaptive Card to a team... when I select the team and channel it works fine, but if I replace the Team and Channel name with variables (with exactly the same names), it through an Error: 

 

BadRequest. Error de la solicitud. Código de error: "BotRequestFailed". Mensaje de error: "Se produjo un error en la solicitud a Bot Framework: '{"error":{"code":"BadSyntax","message":"Bad format of conversation ID"}}'.".

 

The Flow app is already added to the channel and nothing else is changed, just the Team and Channel name with variables instead of fixed names.

 

The team and channel are PUBLIC, and the account is Manager of the team.

 

Thanks for your help.

Best regards.

Blas F. MAGAÑA

 

The sample code of the adaptive card is:

{
"type": "AdaptiveCard",
"body": [
{
"type": "TextBlock",
"size": "Medium",
"weight": "Bolder",
"text": "Test adaptive card."
},
{
"type": "TextBlock",
"text": "Test adaptive card description",
"wrap": true
}
],
"actions": [
{
"type": "Action.ShowCard",
"title": "Set due date",
"card": {
"type": "AdaptiveCard",
"body": [
{
"type": "Input.Date",
"id": "dueDate"
},
{
"type": "Input.Text",
"id": "comment",
"placeholder": "Add a comment",
"isMultiline": true
}
],
"actions": [
{
"type": "Action.Submit",
"title": "OK"
}
],
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json"
},
"id": "setDueDate"
}
],
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.2"
}

1 ACCEPTED SOLUTION

Accepted Solutions
bmagana
New Member

Thanks @fcasta308  for your response.

 

I found the problem... the error is because FLOW is expecting the Team Id an Channel Id, instead of Team Name and Channel name.

 

Setting the variable with the Id, it works ok.

 

I think it should work with the names... it would much easer.

 

Thanks

 

View solution in original post

2 REPLIES 2
fcasta308
Frequent Visitor

I had a similar issue... could you post a picture of the Flow card as you are using it (ideally showing where you are pulling the variable from). I was able to test the following with success:

fcasta308_0-1605488410837.png

Note that wherever you are pulling your Team or Channel name the spelling and syntax should probably match EXACTLY how it lives in Teams. Hope that makes sense.

bmagana
New Member

Thanks @fcasta308  for your response.

 

I found the problem... the error is because FLOW is expecting the Team Id an Channel Id, instead of Team Name and Channel name.

 

Setting the variable with the Id, it works ok.

 

I think it should work with the names... it would much easer.

 

Thanks

 

View solution in original post

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (1,543)