I'm currently in the process of developing an outlook add-in. So far, I've got everything working, and the add-in works perfectly on MY tenant. The problem is that I don't know how to get the tenant programmatically (so the add-in will dynamically get tenant TestTenant
instead of hardcoding MY tenant DummyTenant
).
Home.js
baseEndpoint = 'https://' + tenant + '.sharepoint.com/';
This is my variable baseEndpoint
. Notice the tenant, this comes straight from the Config.js
Config.js
var tenant = 'radoorworkpoint';
If anyone know how to do this, I appreciate it.
You should take a look at the Office Discovery Service ? This should allow you to retrieve the tenant the user is on.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.