Can't add composeExtensions?

Copper 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"
}
]
}
]
}
]
}