I am using applozic sidebar plugin with following code.
window.applozic.init({appId: applozicApplicationKey,
userId: currentUser.userId,
userName: displayName,
imageLink : userImage,
email : currentUser.emailId,
contactNumber: '',
desktopNotification: true,
notificationIconLink: 'assets/images/vw-purple-logo-sm.png'
});
And opening chat box with code
$applozic.fn.applozic('loadTab', '');
I want to show search option in conversation tab rather than contact list.
How to achieve this?
Related
I built a small teams message extension which just uses some user input, builds a link from it, and returns a card with a button pointing to that link.
I need to add a Settings section, but I couldn't find proper instructions or a sample for this.
I tried to use this sample as example (which is JS, and I'm using TypeScript), but I could not get it to work.
Relevant portion in my class:
export class MessageExtensionBot extends TeamsActivityHandler {
...
protected handleTeamsMessagingExtensionConfigurationQuerySettingUrl(context: TurnContext, query: MessagingExtensionQuery): Promise<MessagingExtensionResponse> {
return Promise.resolve({
composeExtension: {
type: "config",
suggestedActions: {
actions: [
{
title: "Title",
type: ActionTypes.OpenUrl,
value: "https://" + `${process.env.PUBLIC_HOSTNAME}` + "/settings.html"
}
]
}
}
});
}
protected handleTeamsMessagingExtensionConfigurationSetting(context, settings): Promise<void> {
return Promise.resolve(undefined);
}
process.env.PUBLIC_HOSTNAME points to the temporary ngrok link, smth like xxx-yyy-zzz.ngrok.io.
When I access xxx-yyy-zzz.ngrok.io/settings.html, I get the correct content of that html file
I also added "canUpdateConfiguration": true, in my manifest file, and the Settings link is available.
THE PROBLEM: when I click the Settings link in my custom teams message extension, all I get is a pop-up with the error message Sorry, the setting of this compose extension is not available. Please try again later. and an OK button.
What is wrong/missing in my code ?
Thank you.
We also faced this issue. It is resolved after adding validDomains in the manifest. Please try updating the validDomains in manifest, hope this resolves the issue.
i want to invite an app using the python slack client to a private channel .
Tried using :
web_client.conversations_invite(
channel=channel_name,
users= "AppID")
this is giving me the error
The server responded with: {'ok': False, 'error': 'cant_invite', 'errors': [{'ok': False, 'error': 'user_not_found', 'user': 'AXXXXXXXXX'}]}
The AppID is not the same as the UserID. The App/Bot also has a UserID.
To find the UserID:
In slack:
Click on the users name and choose
"Show Profile". Then open the "..." menu and you see the option
"Copy Member-ID"
I am trying to show a popup message to user using the task module. I have sent a attachment with type invoke. Here is the code
content.sendActivity(MessageFactory.attachment(CardFactory.heroCard('Task Module Invocation from Hero Card',
'This is a hero card with a Task Module Action button',
null, // No images
[{ type: 'invoke', title: 'Task Module', value: { type: 'task/fetch' } }])));
When I click on the Button I have received a request to my messaging end point and the response I have sent is
reply({
task: {
type: 'continue',
value: {
"title": "Task module title",
"height": 'large',
"width": 'large',
"url": "https://67aa9b57.ngrok.io/api/internal/teams/tabs/content",
"fallbackUrl": "https://67aa9b57.ngrok.io/api/internal/teams/tabs/content"
}
}
});
But in the popup message is blank. My ngrok url is not even being hit for the HTML page. This is what I see in popup. But the title was updated. I have no idea why it is not working.
Ant help would be thankful
This is pretty much always caused by the domain of the page not being listed in the valid domains for the application (you set this in your manifest json file, inside App Studio if you're using it). Because you've not listed this as a valid and "safe" domain, Teams won't even make any call at all, that's why there's nothing visible in the NGrok log even.
Just to be clear, we're talking about this section of the schema.
I need to change the name of [chat] header bot to Askme.
may i know how to change it in Microsoft bot.
Image is attched
Alternatively, if you want to set it at the time of initialization and are using the Botchat.App() setup rather than the iframed version of webchat, you can set this in the parameter object sent to webchat:
BotChat.App({
botConnection: botConnection,
user: { id: '1234', name: 'user'},
bot: { id: 'bot' },
chatTitle: "I'm a custom chat title"
}, document.getElementById("bot"));
The key parameter in this case being chatTitle; other options that can be sent to webchat can be found in the source code right here.
If you are not using the iframe'd webchat, you can just modify the header's .innerHTML like this:
var header = document.getElementsByClassName("wc-header");
header[0].innerHTML = "<span>Askme</span>"
I cannot find a list of all possible options for SharePoint 2013 Client Chrome Control. I found examples like this:
var options = {
'appIconUrl': hostlogourl,
'appTitle': document.title,
'appHelpPageUrl': 'Help.html?' + document.URL.split('?')[1],
'settingsLinks': [
{
'linkUrl': 'Account.html?' + document.URL.split('?')[1],
'displayName': 'Account settings'
},
{
'linkUrl': 'Contact.html?' + document.URL.split('?')[1],
'displayName': 'Contact us'
}
]
};
Could anybody provide the whole list of options?
Looking through SP.UI.Controls.Debug.js, here are the options:
siteTitle
siteUrl
clientTag
appWebUrl
onCssLoaded
assetId
appStartPage
rightToLeft
appTitle
appIconUrl
appTitleIconUrl
appHelpPageUrl
appHelpPageOnClick
settingsLinks
language
bottomHeaderVisible
topHeaderVisible
Some of these are provided and managed by the app framework. The type can be inferred by the option name. Unfortunately, there doesn't appear to be a page on MSDN that explains all of the options yet.