Can't add composeExtensions?

%3CLINGO-SUB%20id%3D%22lingo-sub-2393609%22%20slang%3D%22en-US%22%3ECan't%20add%20composeExtensions%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2393609%22%20slang%3D%22en-US%22%3E%3CP%3EHere%20is%20my%20composeExtensions%20part..%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%22composeExtensions%22%3A%20%5B%3CBR%20%2F%3E%7B%3CBR%20%2F%3E%22botId%22%3A%20%22--MyBotID--%22%2C%3CBR%20%2F%3E%22canUpdateConfiguration%22%3A%20true%2C%3CBR%20%2F%3E%22commands%22%3A%20%5B%3CBR%20%2F%3E%7B%3CBR%20%2F%3E%22id%22%3A%20%22searchCmd%22%2C%3CBR%20%2F%3E%22type%22%3A%20%22query%22%2C%3CBR%20%2F%3E%22title%22%3A%20%22Search%22%2C%3CBR%20%2F%3E%22description%22%3A%20%22Search%20....%22%2C%3CBR%20%2F%3E%22initialRun%22%3A%20false%2C%3CBR%20%2F%3E%22fetchTask%22%3A%20false%2C%3CBR%20%2F%3E%22context%22%3A%20%5B%3CBR%20%2F%3E%22commandBox%22%2C%3CBR%20%2F%3E%22compose%22%3CBR%20%2F%3E%5D%2C%3CBR%20%2F%3E%22parameters%22%3A%20%5B%3CBR%20%2F%3E%7B%3CBR%20%2F%3E%22name%22%3A%20%22searchKeyword%22%2C%3CBR%20%2F%3E%22title%22%3A%20%22Keywords%22%2C%3CBR%20%2F%3E%22description%22%3A%20%22Enter%20your%20search%20keywords%22%2C%3CBR%20%2F%3E%22inputType%22%3A%20%22text%22%3CBR%20%2F%3E%7D%3CBR%20%2F%3E%5D%3CBR%20%2F%3E%7D%3CBR%20%2F%3E%5D%3CBR%20%2F%3E%7D%3CBR%20%2F%3E%5D%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20App%20Studio%2C%20Import%20an%20existing%20app%2C%20I%20selected%20my%20zip%20that%20contains%20this%20manifest...%3C%2FP%3E%3CP%3EThen%20I%20got%20validation%20error...please%20check%20attached%20file.%20It%20is%20strange%20though..%3C%2FP%3E%3CP%3EI%20removed%20this%20part%20from%20the%20manifest%20file..then%20imported..then%20it%20was%20ok...then%20I%20could%20add%20this%20extension%20from%20the%20App%20Studio%20UI.%20..Then%20it%20was%20working%20fine...%20I%20just%20compared%20the%20one%20that%20generated%20manifest%20preview%20in%20App%20Studio%20to%20mine...I%20didn't%20see%20any%20difference%20though..%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDoes%20that%20means%20the%20extension%20must%20be%20configured%20inside%20App%20Studio%3F%3F%3F%3F%20I%20doubt%20it%20though.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2393609%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2395756%22%20slang%3D%22en-US%22%3ERe%3A%20Can't%20add%20composeExtensions%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2395756%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1050314%22%20target%3D%22_blank%22%3E%40firstteam%3C%2FA%3E%26nbsp%3B-%20I%20have%20tried%20to%20upload%20manifest%20with%20your%20Compose%20Extension%26nbsp%3B%20array%20and%20it's%20working%20absolutely%20fine.%20I%20am%20not%20getting%20any%20error%20while%20uploading%20file%20in%20App%20studio.%20Could%20you%20please%20try%20this%20manifest.%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-applescript%22%3E%3CCODE%3E%7B%0A%22%24schema%22%3A%20%22https%3A%2F%2Fdeveloper.microsoft.com%2Fen-us%2Fjson-schemas%2Fteams%2Fv1.5%2FMicrosoftTeams.schema.json%22%2C%0A%22manifestVersion%22%3A%20%221.5%22%2C%0A%22version%22%3A%20%221.0%22%2C%0A%22id%22%3A%20%22--id--%22%2C%0A%22packageName%22%3A%20%22com.microsoft.teams.samples.searchExtension%22%2C%0A%22developer%22%3A%20%7B%0A%22name%22%3A%20%22Microsoft%20Corp%22%2C%0A%22websiteUrl%22%3A%20%22https%3A%2F%2Fexample.azurewebsites.net%22%2C%0A%22privacyUrl%22%3A%20%22https%3A%2F%2Fexample.azurewebsites.net%2Fprivacy%22%2C%0A%22termsOfUseUrl%22%3A%20%22https%3A%2F%2Fexample.azurewebsites.net%2Ftermsofuse%22%0A%7D%2C%0A%22name%22%3A%20%7B%0A%22short%22%3A%20%22search-extension-settings%22%2C%0A%22full%22%3A%20%22Microsoft%20Teams%20V4%20Search%20Messaging%20Extension%20Bot%20and%20settings%22%0A%7D%2C%0A%22description%22%3A%20%7B%0A%22short%22%3A%20%22Microsoft%20Teams%20V4%20Search%20Messaging%20Extension%20Bot%20and%20settings%22%2C%0A%22full%22%3A%20%22Sample%20Search%20Messaging%20Extension%20Bot%20using%20V4%20Bot%20Builder%20SDK%20and%20V4%20Microsoft%20Teams%20Extension%20SDK%22%0A%7D%2C%0A%22icons%22%3A%20%7B%0A%22outline%22%3A%20%22icon-outline.png%22%2C%0A%22color%22%3A%20%22icon-color.png%22%0A%7D%2C%0A%22accentColor%22%3A%20%22%23abcdef%22%2C%0A%22composeExtensions%22%3A%20%5B%0A%7B%0A%22botId%22%3A%20%22--id--%22%2C%0A%22canUpdateConfiguration%22%3A%20true%2C%0A%22commands%22%3A%20%5B%0A%7B%0A%22id%22%3A%20%22searchCmd%22%2C%0A%22type%22%3A%20%22query%22%2C%0A%22title%22%3A%20%22Search%22%2C%0A%22description%22%3A%20%22Search%20....%22%2C%0A%22initialRun%22%3A%20false%2C%0A%22fetchTask%22%3A%20false%2C%0A%22context%22%3A%20%5B%0A%22commandBox%22%2C%0A%22compose%22%0A%5D%2C%0A%22parameters%22%3A%20%5B%0A%7B%0A%22name%22%3A%20%22searchKeyword%22%2C%0A%22title%22%3A%20%22Keywords%22%2C%0A%22description%22%3A%20%22Enter%20your%20search%20keywords%22%2C%0A%22inputType%22%3A%20%22text%22%0A%7D%0A%5D%0A%7D%0A%5D%0A%7D%0A%5D%0A%7D%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Contributor

Here is my composeExtensions part..

 

"composeExtensions": [
{
"botId": "--MyBotID--",
"canUpdateConfiguration": true,
"commands": [
{
"id": "searchCmd",
"type": "query",
"title": "Search",
"description": "Search ....",
"initialRun": false,
"fetchTask": false,
"context": [
"commandBox",
"compose"
],
"parameters": [
{
"name": "searchKeyword",
"title": "Keywords",
"description": "Enter your search keywords",
"inputType": "text"
}
]
}
]
}
],

 

In App Studio, Import an existing app, I selected my zip that contains this manifest...

Then I got validation error...please check attached file. It is strange though..

I removed this part from the manifest file..then imported..then it was ok...then I could add this extension from the App Studio UI. ..Then it was working fine... I just compared the one that generated manifest preview in App Studio to mine...I didn't see any difference though..

 

Does that means the extension must be configured inside App Studio???? I doubt it though.

 

Thanks,

 

1 Reply

@firstteam - I have tried to upload manifest with your Compose Extension  array and it's working absolutely fine. I am not getting any error while uploading file in App studio. Could you please try this manifest.

{
"$schema": "https://developer.microsoft.com/en-us/json-schemas/teams/v1.5/MicrosoftTeams.schema.json",
"manifestVersion": "1.5",
"version": "1.0",
"id": "--id--",
"packageName": "com.microsoft.teams.samples.searchExtension",
"developer": {
"name": "Microsoft Corp",
"websiteUrl": "https://example.azurewebsites.net",
"privacyUrl": "https://example.azurewebsites.net/privacy",
"termsOfUseUrl": "https://example.azurewebsites.net/termsofuse"
},
"name": {
"short": "search-extension-settings",
"full": "Microsoft Teams V4 Search Messaging Extension Bot and settings"
},
"description": {
"short": "Microsoft Teams V4 Search Messaging Extension Bot and settings",
"full": "Sample Search Messaging Extension Bot using V4 Bot Builder SDK and V4 Microsoft Teams Extension SDK"
},
"icons": {
"outline": "icon-outline.png",
"color": "icon-color.png"
},
"accentColor": "#abcdef",
"composeExtensions": [
{
"botId": "--id--",
"canUpdateConfiguration": true,
"commands": [
{
"id": "searchCmd",
"type": "query",
"title": "Search",
"description": "Search ....",
"initialRun": false,
"fetchTask": false,
"context": [
"commandBox",
"compose"
],
"parameters": [
{
"name": "searchKeyword",
"title": "Keywords",
"description": "Enter your search keywords",
"inputType": "text"
}
]
}
]
}
]
}