Forum Discussion
Teams Connector card error: Target not set or not in URL format
Hi
I'm trying to extend our servicedesk (ManageEnginge SD+) to Microsoft Teams.
I'm sending a connector card to a Teams helpdesk channel with every new request that comes in - it contains a link to the request and the possibility to assign the request to a technician or add a note.
I'm having trouble with both the latter, but I will focus on adding the note first.
I have a TextInput box/button called "Legg til notat" (Add note - in english). When I click it, add some text and press Send i get an error saying "Failed to send. Target is not set or not in URL format".
When i copy the URL from the outgoing JSON and send it with postman it works, but not within teams. I can't see any traffic coming from the MS datacenters.
Can somebody help me?
Here is my JSON
{
"sections": [
{
"activitySubtitle": "Registrert av name",
"activityImage": "http://lawthirtysix.com/wp-content/uploads/2013/12/SDP-logo-150x150.png",
"activityTitle": "Kopi av Kom Tek Basen",
"activityText": "Trykk \"See more\" for mer info"
},
{
"text": "balubatext"
}
],
"markdown": "true",
"themeColor": "0076D",
"potentialAction": [
{
"name": "Åpne saken",
"@type": "OpenUri",
"targets": [
{
"os": "default",
"uri": "http://myURL/WorkOrder.do?woMode=viewWO&woID=13138"
}
]
},
{
"actions": [
{
"name": "OK",
"target": "https://www.baluba.no",
"@type": "HttpPOST"
}
],
"inputs": [
{
"title": "Velg en tekniker",
"style": "expanded",
"choices": [
{
"value": 3,
"display": "tech1"
},
{
"value": 880,
"display": "tech2"
},
{
"value": 1812,
"display": "tech3"
},
{
"value": 1815,
"display": "tech4"
},
{
"value": 2107,
"display": "tech5"
},
{
"value": 4201,
"display": "tech6"
},
{
"value": 10802,
"display": "tech7"
},
{
"value": 15069,
"display": "tech8"
},
{
"value": 15091,
"display": "tech9"
},
{
"value": 16535,
"display": "tech10"
},
{
"value": 17402,
"display": "tech11"
},
{
"value": 17715,
"display": "tech12"
},
{
"value": 20416,
"display": "tech13"
},
{
"value": 24007,
"display": "tech14"
}
],
"id": "Tildel saken til..",
"@type": "MultichoiceInput"
}
],
"name": "Tildel saken til..",
"@type": "ActionCard"
},
{
"actions": [
{
"name": "Send",
"target": "https://myURL/sdpapi/request/13138/notes/?TECHNICIAN_KEY=3BD01421-D18F-4484-AE03-C59FBEEE0391&OPERATION_NAME=ADD_NOTE&INPUT_DATA=<Operation><Details><Notes><Note><parameter><name>isPublic</name><value>false</value></parameter><parameter><name>notesText</name><value>{{note.value}}</value></parameter></Note></Notes></Details></Operation>",
"@type": "HttpPOST"
}
],
"inputs": [
{
"title": "Legg til eit notat i saken",
"isMultiLine": true,
"id": "note",
"@type": "TextInput"
}
],
"name": "Legg til et notat",
"@type": "ActionCard"
}
],
"summary": "Ny IT-hjelp sak",
"context": "http://schema.org/extensions",
"title": "Ny sak på IT-Hjelpen"
}
Note: when i copy the URL from the outbound JSON and send it with postman it works great.
Thanks in advance.
BR, Arve
2 Replies
- DeletedBump. I have posted this question to MSDN, TechCommunity and StackOverflow, no replies. No can helps? Should i ask somewhere else?
- Deleted
Bump this. No MS devs or other knowledgeable people roam tese forums?