Team Channel: Card with button. Specific URL for each user?

%3CLINGO-SUB%20id%3D%22lingo-sub-1182582%22%20slang%3D%22en-US%22%3ETeam%20Channel%3A%20Card%20with%20button.%20Specific%20URL%20for%20each%20user%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1182582%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EI%20have%20a%20Teams%20bot%20with%20bot%20commands%20(personal%20%26amp%3B%20team).%20In%20a%20Team%2C%20with%20one%20of%20the%20received%20commands%20the%20bot%20sends%20to%20the%20team%20channel%20a%20Card%20with%20a%20button.%20Now%20this%20button%20opens%20a%20fixed%20URL%20in%20the%20pc%20browser%20('Action.OpenUrl').%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20URL%20is%20the%20same%20for%20all%20teams%20members%2C%20since%20the%20card%20is%20available%20for%20all%20once%20sent.%20What%20I%20would%20like%20to%20do%20is%20to%20open%20a%20different%20URL%20depending%20on%20the%20user%20who%20presses%20the%20button%20in%20the%20team%20channel.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20it%20possible%3F%20I%20could%20add%20a%20task%20in%20the%20card%2C%20so%20my%20bot%20would%20be%20notified%2C%20but%20then%20I%20am%20not%20in%20the%20client%20side%20to%20open%20the%20URL...%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20help%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3EDiego%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1182582%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1183800%22%20slang%3D%22en-US%22%3ERe%3A%20Team%20Channel%3A%20Card%20with%20button.%20Specific%20URL%20for%20each%20user%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1183800%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F402611%22%20target%3D%22_blank%22%3E%40diegoSpace%3C%2FA%3E%26nbsp%3BIt%20is%20not%20possible%20to%20specify%20different%20URL's%20for%20different%20users%20on%20click%20of%20a%20button.%20One%20way%20you%20could%20do%20this%20is%20open%20a%20taskmodule%20and%20check%20the%20user%20details%20there%20and%20open%20a%20url%20inside%20task%20module%20but%20that%20is%20not%20a%20reliable%20way%20and%20is%20something%20we%20do%20not%20recommend.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1184336%22%20slang%3D%22en-US%22%3ERe%3A%20Team%20Channel%3A%20Card%20with%20button.%20Specific%20URL%20for%20each%20user%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1184336%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F359599%22%20target%3D%22_blank%22%3E%40Gousia_Begum%3C%2FA%3E%26nbsp%3BI%20will%20try%20it%2C%20just%20to%20see%20if%20works%20for%20me.%20Why%20do%20you%20don'r%20recommend%20it%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAs%20far%20as%20I%20understand%20in%20the%20docu%2C%20I%20must%20add%20an%20'Action.Submit'%20in%20my%20card%2C%20correct%3F%20I%20have%20that%20in%20the%20card.json%20sent%20to%20the%20team%20channel%3A%3C%2FP%3E%3CP%3E%22actions%22%3A%20%5B%3CBR%20%2F%3E%26nbsp%3B%7B%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%22type%22%3A%20%22Action.Submit%22%2C%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%22title%22%3A%20%22Test1%22%2C%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%22data%22%3A%20%7B%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%22msteams%22%3A%20%7B%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%22type%22%3A%20%22invoke%22%2C%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%22value%22%3A%20%22%7B%5C%22key1%5C%22%3A%20%5C%22value1%5C%22%2C%20%5C%22key2%5C%22%3A%20%5C%22value2%5C%22%7D%22%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%7D%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%7D%3CBR%20%2F%3E%7D%3CBR%20%2F%3E%5D%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20receive%20a%20post%20in%20my%20bot%20(%22type%3D'invoke')%2C%20but%20is%20there%20any%20method%20in%20the%20API%20to%20handle%20it%3F%20Or%20must%20I%20check%20the%20'type'%20and%20process%20then%3F%20Now%20I%20have%20that%20code%2C%20and%20I%20return%20a%20task%20to%20open%20a%20browser%20in%20Teams%20channel%2C%20but%20no%20browser%20is%20open%20(I%20get%20no%20error)%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%20%26nbsp%3BonPostReceived(req%2C%20res)%20%7B%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3Bif%20(req.body%20%3D%3D%20%22invoke%22)%20%7B%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3Bvar%20task%20%3D%20%7B%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%22task%22%3A%20%7B%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3Btype%3A%20'continue'%2C%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3Bvalue%3A%20%7B%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3Bwidth%3A%20500%2C%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3Bheight%3A%20200%2C%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3Btitle%3A%20%22site%20title%22%2C%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3Burl%3A%20myUrl%2C%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3BfallbackUrl%3A%20myUrl%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%7D%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%7D%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%7D%3C%2FP%3E%3CP%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3Bres.writeHeader(200%2C%20%7B%20%22Content-Type%22%3A%20%22application%2Fjson%22%20%7D)%3B%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3Bres.write(JSON.stringify(task))%3B%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3Bres.end()%3B%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%7D%3CBR%20%2F%3E%7D%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20am%20I%20doing%20wrong%3F%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3EDiego%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1200151%22%20slang%3D%22en-US%22%3ERe%3A%20Team%20Channel%3A%20Card%20with%20button.%20Specific%20URL%20for%20each%20user%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1200151%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F402611%22%20target%3D%22_blank%22%3E%40diegoSpace%3C%2FA%3E%26nbsp%3BIf%20you%20want%20to%20open%20a%20link%20in%20the%20browser%20on%20click%20of%20a%20button%20you%20need%20to%20use%20a%20Action.OpenURL%20action%20and%20if%20you%20want%20to%20open%20a%20task%20module%20you%20will%20need%20to%20pass%20a%20invoke%20action%20with%20type%20as%20%22task%2Ffetch%22.%20Please%20go%20through%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fplatform%2Ftask-modules-and-cards%2Fwhat-are-task-modules%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3ETaskModules%3C%2FA%3E%20and%20try%20this%20out.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1208987%22%20slang%3D%22en-US%22%3ERe%3A%20Team%20Channel%3A%20Card%20with%20button.%20Specific%20URL%20for%20each%20user%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1208987%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F359599%22%20target%3D%22_blank%22%3E%40Gousia_Begum%3C%2FA%3E%26nbsp%3BI%20read%20the%20link%20you%20mention%20and%20according%20to%20what%20I%20understood%20there%20I%20had%20the%20code%20I%20pasted%20before.%20Is%20it%20wrong%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20send%20to%20a%20channel%20a%20card%2C%20with%20an%20action%20button%20(%22type%22%3A%20%22Action.Submit%22).%20When%20button%20pressed%2C%20my%20bot%20receives%20the%20HTTP%20post%20(message%20with%20type%20'invoke')%2C%20and%20I%20responde%20with%20a%20200%20OK%20(with%20the%20task%20info)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBut%20nothing%20happens%20(no%20popup%20task%20is%20open).%20Maybe%20I%20am%20not%20returning%20properly%20the%20Task%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Evar%20task%20%3D%20%7B%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%22task%22%3A%20%7B%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20type%3A%20'continue'%2C%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20value%3A%20%7B%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20width%3A%20500%2C%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20height%3A%20220%2C%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20title%3A%20%22Test%22%2C%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20url%3A%20sUrlNotLogged%2C%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20fallbackUrl%3A%20sUrlNotLogged%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%7D%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%7D%3CBR%20%2F%3E%7D%3C%2FP%3E%3CP%3Eres.writeHeader(200%2C%20%7B%20%22Content-Type%22%3A%20%22application%2Fjson%22%20%7D)%3B%3CBR%20%2F%3Eres.write(JSON.stringify(task))%3B%3CBR%20%2F%3Eres.end()%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOr%20I%20missunderstood%20the%20documentation...%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20for%20your%20help%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1251655%22%20slang%3D%22en-US%22%3ERe%3A%20Team%20Channel%3A%20Card%20with%20button.%20Specific%20URL%20for%20each%20user%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1251655%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F359599%22%20target%3D%22_blank%22%3E%40Gousia_Begum%3C%2FA%3E%3CSPAN%3E%26nbsp%3BI%20would%20really%20appreciate%20any%20idea...%20Thanks!!%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Contributor

Hi,

I have a Teams bot with bot commands (personal & team). In a Team, with one of the received commands the bot sends to the team channel a Card with a button. Now this button opens a fixed URL in the pc browser ('Action.OpenUrl').

 

The URL is the same for all teams members, since the card is available for all once sent. What I would like to do is to open a different URL depending on the user who presses the button in the team channel.

 

Is it possible? I could add a task in the card, so my bot would be notified, but then I am not in the client side to open the URL...

 

Any help?

 

Thanks,

Diego

5 Replies
Highlighted

@diegoSpace It is not possible to specify different URL's for different users on click of a button. One way you could do this is open a taskmodule and check the user details there and open a url inside task module but that is not a reliable way and is something we do not recommend.

Highlighted

@Gousia_Begum I will try it, just to see if works for me. Why do you don'r recommend it?

 

As far as I understand in the docu, I must add an 'Action.Submit' in my card, correct? I have that in the card.json sent to the team channel:

"actions": [
 {
      "type": "Action.Submit",
      "title": "Test1",
      "data": {
              "msteams": {
                    "type": "invoke",
                    "value": "{\"key1\": \"value1\", \"key2\": \"value2\"}"
               }
       }
}
]

 

I receive a post in my bot ("type='invoke'), but is there any method in the API to handle it? Or must I check the 'type' and process then? Now I have that code, and I return a task to open a browser in Teams channel, but no browser is open (I get no error):

   onPostReceived(req, res) {
         if (req.body == "invoke") {
              var task = {
                  "task": {
                           type: 'continue',
                           value: {
                                    width: 500,
                                    height: 200,
                                    title: "site title",
                                    url: myUrl,
                                    fallbackUrl: myUrl
                           }
                    }
             }

             res.writeHeader(200, { "Content-Type": "application/json" });
             res.write(JSON.stringify(task));
             res.end();
         }
}

 

What am I doing wrong? 

 

Thanks,

Diego

 

Highlighted

@diegoSpace If you want to open a link in the browser on click of a button you need to use a Action.OpenURL action and if you want to open a task module you will need to pass a invoke action with type as "task/fetch". Please go through TaskModules and try this out.

Highlighted

@Gousia_Begum I read the link you mention and according to what I understood there I had the code I pasted before. Is it wrong?

 

I send to a channel a card, with an action button ("type": "Action.Submit"). When button pressed, my bot receives the HTTP post (message with type 'invoke'), and I responde with a 200 OK (with the task info)

 

But nothing happens (no popup task is open). Maybe I am not returning properly the Task:

 

var task = {
        "task": {
              type: 'continue',
                value: {
                      width: 500,
                      height: 220,
                      title: "Test",
                      url: sUrlNotLogged,
                      fallbackUrl: sUrlNotLogged
                }
        }
}

res.writeHeader(200, { "Content-Type": "application/json" });
res.write(JSON.stringify(task));
res.end();

 

Or I missunderstood the documentation...

 

Thanks for your help

Highlighted

@Gousia_Begum I would really appreciate any idea... Thanks!!