New answers tagged

1

I think you have to create a lookup column for this. Create a lookup column in QuanLyMembers list referencing to QuanLyPhongBan list. Check below note from Microsoft: There are requirements to keep in mind when creating list joins. You cannot join just any two lists, regardless of type. And if two lists can be joined, not just any primary and foreign field ...


1

Your code hostWebContext.get_web().get_lists().getByTitle('testsite Members'); is to get a list instead of get a group. To get a group in the web, you need to use SP.Web.siteGroups property. Change your code to the following: var group = hostWebContext.get_web().get_siteGroups().getByName('testsite Members'); var users = group.get_users(); clientContext.load(...


0

Based on your last comment, you simply need to grab the URL for each application. You can get the URL from the three vertical dots for each tile in My Applications and Copy Link. Paste that link into SharePoint. I would suggest that there isn't much benefit to doing so as all of the applications are in the App Launcher in the upper left of most M365 services,...


4

As a workaround, you could grant permissions to your add-ins on the web level. Thus your add-ins would have permissions to all the lists in web host:


1

You need to load the file property in clientcontext like the following: clientContext.load(Items, 'Include(Title, Id, ContentType, File)'); clientContext.executeQueryAsync(Function.createDelegate(this, function () { var oEnumerator = Items.getEnumerator(); while (oEnumerator.moveNext()) { var id = oEnumerator.get_current()....


Top 50 recent answers are included