Tag Info

New answers tagged

1

The built in [Today] and [Me] values have never worked in calculated columns, all references to this in previous versions were "hacks" as Sane mentions. The best ways to do this would be either via workflow on item creation/edit you update a fields based on the formula you desire or you could try a remote event receiver to handle it.


0

You can't. Since calculated columns only get updated when item is created or modified, you can do the same thing using workflow as well and update a column from the workflow.


0

Basically you need to set EnableModeration = true. var ctx = new SP.ClientContext(siteUrl); var web = ctx.get_web(); var list = web.get_lists().getByTitle('Your list'); list.set_enableModeration(true); list.set_enableMinorVersions(true); list.set_defaultContentApprovalWorkflowId("guid"); list.update()


-1

You cannot directly specify today and me in calculated column to set the values. You will have to create columns named Today and Me and then use it in your calculated column. Once you are done with the formula for the calculated column, you need to delete the 2 columns created for this. I think this will make your things work.


-1

Open below link in primary WFE server C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\TEMPLATE\LAYOUTS\1033\STYLES\Themable\COREV15.CSS Add below style at the end and save #suiteLinksBox {display:none}


0

Get all groups of site _api/web/sitegroups Get All Users in Site _api/web/siteusers Get particular group in site _api/Web/SiteGroups/GetById(IdOfGroup) Remove particular user from group executor.executeAsync({ url: "<app web url>/_api/web/sitegroups(GroupId)/users/getbyid(UserId)", method: "POST", headers: { "X-HTTP-Method": "DELETE" }, ...


0

I found the solution. For about me link . user must be licenced


0

You can edit the page and add a webpart to the page where you can then add your description. The only down side to doing this is that you will then loose your library tabs when first going to the page unless you click within the library on the page whenever you go to the page.


0

Without knowing what type of fileds You are trying to paste into i guess the reason can be that If the Columns are of the type "Managed Metadata" the values must exist in Term Store, otherwise the will be considered as not valid.


1

I guess you have two options: To use a third party tool like ShareGate for this. I have used it and it works great. Use Provisioning Framework by PnP. P.S. If you have a publishing site, then you are left with option 1 for now.


0

have you tried saving your source site collection as Template ? Try saving it as Site-Template by adding the site in your network locations as described in This Link. Let me know if it was useful to you. Thanks. Edit for Publishing Issue : Try enabling the "SaveSiteAsTemplateEnabled" to True from SPD. Follow This. This entry shows for the ...


0

Yes, if you add list to VS, it will be automatically added in app web via the feature which will be activated by default. Lists etc. added in app web are removed when you uninstall the app, so there is a chance of data loss. It depends on your requirement whether you want to use host web or app web. Please go through the below link for a good comparison ...


0

Well it took a bit of a time to figure out how I can create content organizer rule with CSOM as I dint wanna create some 100 manually on Office 365. But finally the QUEST is complete now and I have a wonderful csom c# and Powershell code to do the job. What's the trick: If we navigate to Content Organizer Rules from site settings, We can notice that its ...


1

In SharePoint Online, we cannot backup and restore contents as what we do in SharePoint Server 2013. Instead, the backup and restoring features are reflected by the following features: version, template, recycle bin and some third party solutions. You can save a web as a template but these are low fidelity duplication tools rather than a backup tool. ...


1

Enabled SharePoint Server Publishing Infrastructure feature on the site collection level and then the SharePoint Server Publishing feature must be activated on the site level


1

It is available in Powershell too, if you have downloaded the SharePoint Online module. Not sure what or how you want to use the data, but it is available that way. http://www.microsoft.com/en-us/download/details.aspx?id=35588 Get-SPOSite -Limit All You can also use a search query to look at all STS_Site content classes.


1

I found the following link and an older StackExchange question pointing out that you can do it using CSOM but you can't do it with REST API.


0

Office Delve isn’t implemented to ”follow” a person or site, which you do your Office 365 SharePoint Sites. Instead, Office Delve let you see your colleagues who have started using Delve. Clicking a person’s name let you see the relevant Delve content this user have interacted with, which is the closest thing to “following” you get. You can also search for ...


0

It might be because of "Following Content feature" was not activated in the site level. Go to Site Settings, click on Manage Site Features under Site Actions section. Activate the Following content feature now you can be able to see the Follow option in the team site.


0

It looks like this does work. I left it for a few days and then updated a list item to kick off the workflow. Permissions were updated as expected. So for anyone else reading this, updating item permissions via workflow does work as an approach but you may have to patient when waiting for the updates to the workflow to take effect.


0

For SmtpClient Object may be you should not pass the "smtp.office365.com" Bellow mentioned code works fine for me, please check and let me know Using System.Net; using System.Net.Mail; string SPUsername = "YourMailAddress@outlook.com" string ToMailAddress = "ToMailAddress@Domain.com" string Subject = "Subject of the mail" string Htmlbody = ...


0

As per my knowledge you can not get the tenant site collection url directly. You can get it by splitting the url by .(dot) and then concatenate firstPart [https://mydevsite] + secondPart [sharepoint] + thirdPart [com]


1

If your're working with REST you can apend $select tag to get specific properties. If would look like like this: <Sitename>/_api/web/sitegroups/getbyname('Approvers')?$select=id But even in this case you will get object containing at least __metadata tag, because SharePoint REST services is based on OData web protocol standards specification and ...


3

Retrieving Office 365 users and SharePoint users are slightly different things. With the CSOM method you describe, you will only be able to get SharePoint users who have accessed that site, or who have been explicitly added to groups on it etc. If you want to get all of the Office 365 users in your tenancy, you need to use the Office 365 management cmdlets ...


1

You can add these lines of CSS using a content editor webpart to hide the delete button. /* For Dispform.aspx */ a[id="Ribbon.ListForm.Display.Manage.DeleteItem-Medium"] { display:none; } /* For Editform.aspx */ a[id="Ribbon.ListForm.Edit.Actions.DeleteItem-Large"] { display:none; }


2

You can have a custom permission level without delete permission. Assign the users/groups of this list this new permission level. Then in the workflow you can use the impersonation step to still allow your workflow to do the delete.


0

First add an impersonation step to get elevated priviliges. In this step you will notice some extra actions for changing permissions. The "replace permissions" action allows you to replace all existing permissions with a set of your own. This automatically breaks permissions.


1

I think the reason is that var pictureItem = allLibItems.getById(id); returns a list item, which needs to be loaded first and then executeQueryAsync needs to be called to get the item details in success method.


0

Nishu, do not substitute SPOIDCRL with FedAuth for your cookie. Instead, use it exactly in a form of SPOIDCRL=... Alternatively, switch to use PeopleManager via CSOM https://msdn.microsoft.com/EN-US/library/office/microsoft.sharepoint.client.userprofiles.peoplemanager.aspx


1

FOR ON-PREMISES You have to create a farm solution with HideCustomAction element or you can event create you own custom action with your own implementation. Here is a blog post, or another sample about hiding custom actions. To use this method you have to know your location ID. They are documented in this MSDN article. To hide a delete button in List you ...


0

The SharePoint Online PowerShell Management Shell lets you query a site and get the users of that site. Searching for the exact user will either return the user record if found or throw a User not found exception if the user doesn't exist on the site. $site = Get-SPOSite https://contoso.sharepoint.com Get-SPOUser -Site $site -LoginName jsmith@contoso.com ...


1

SharePoint CSOM request size is very limited and it cannot excess 2 MB limit and you cannot change this setting in Office 365 environment. So if you have to upload bigger files you have to use REST API. Here is MSDN reference https://msdn.microsoft.com/en-us/library/office/dn292553.aspx


2

Try: $item.BreakRoleInheritance($false,$false) You will have to specify the first parameter as False, which means all the permissions from the parent will not be copied over. See the documentation for BreakRoleInheritance .


1

It would be difficult to know the exact cause of your error without actually seeing some code or error message. One of the common reasons could be that you arent using the REST api and hence are only allowed a limited file size to upload. The article here explains how to upload using REST with Powershell. Also check out this SO question previously answered. ...


0

they really don't answer your question as it appears that you can't control the Profile sync. But if for example you wanted to exclude disabled users - u could run a scheduled task and then some MSOL & SPO powershell to remove the users.


2

As Hardik states 5,000 items is the maximum number of items you can sync on a team site document library. This is a limitation of the sync tool. Typical workarounds involve splitting out your files and folders in to separate document libraries, almost treating a document library like a root level folder. This will help to keep the numbers of files and ...


4

Note: There are limitations related to syncing libraries to your computer with OneDrive for Business: You can sync up to 20,000 items in your OneDrive for Business library, including folders and files. You can sync up to 5,000 items in other SharePoint libraries, including folders and files. In any library, you can download files up to 2 GB.


0

There's a little bit of setup to get the correct folder. First, use the REST API to get the list of items inside of the document library. https://contoso.sharepoint.com/_api/web/Lists/getByTitle('Shared Documents')/files Based on the result, search for the entry with the folder name in the <name> element that is directly under the <entity> ...


1

Using Set-SPOSite, you can lock down the Office 365 site collection with the LockState parameter. Set-SPOSite -Identity https://contoso.sharepoint.com -LockState NoAccess Optionally, Set-SPOTenant can be used to redirect users from the locked site to another location. Set-SPOTenant -NoAcessRedirectUrl 'http://www.contoso.com'


1

I don't think their is any lock type available which will disable all users from the site collection except Site Admins. Couple of workaorund i am guessing may work. You alrady know about it, remove all users from site collection, after the job done, re-add them. On-Prem, if you are using the HNSC collection, just change the URL of the site collection and ...


1

You can do this with a powershell cmdlet Open powershell as administrator and run the following commands: asnp microsoft.sharepoint.powershell -ea 0 Set-SPSite -Identity "" -LockState "" -Identity needs to be the URL of the site collection you want to lock and -LockState can be one of 4 options: Unlock Unlocks the site NoAdditions No ...


0

From this link, we can see there are only 4 ways to restore data in SharePoint Online: Site Collection Restore Backups are taken every 12 hours, and are kept for 14 days. You must contact technical support to perform a site collection restore. The data will be restored to the same url that it was taken from. You cannot restore to a different url, and ...


0

I believe this is unattainable as all global admins have the same permission. What you can do is to raise a customer support ticket to Microsoft in the Office 365 portal, they can help you trace which global admin who stripped off your other global admins. More info here


1

I had the problem too. If the document is a PDF, the changes in the crawler-settings won´t help (because the values from the ifilter overrule somehow in the backend). Anyway, my workarount was to create a calculated column in the list, which simply reflects the value of the "Title"-Field. This way you have the expected Value in the search. Then you can ...


2

go to Search Schema and search for the "Title" Managed Property and set the mappings to crawled properties shown in the below image for more details go through Online Search


0

You can filter your Azure Connect sync tool down to one or more OUs, but you cannot sync anything directly to a SharePoint Group. The best you can do is sync groups to Office 365 security groups and then used those in SharePoint Online (they appear as "Domain Groups"). But even then, it wouldn't be truly synchronized unless you are paying $6/user/month for ...


0

After lots pf research found Artical SharePoint App accessing data from host web Its Working For Me SharePoint App accessing data from host web The SharePoint app can access the host web by using the standard provided SharePoint web services. When the App first launches, SharePoint provides three values in the query string named: SPHostUrl, SPAppWebUrl and ...


0

You need to activate Publishing features for both Site Collection and Site level Site Settings > Site Collection Administration > Site Collection Features -> Office SharePoint Server Publishing Infrastructure Site Settings > Site Actions -> Manage Site Features -> Office SharePoint Server Publishing feature.


0

Yes, you can use Office 365 as a front-end to your local database (could be Access, Microsoft SQL, Oracle, mySQL or many others.) You just have to sync your cloud-based data with the local ones using a common data sync tool as e.g. offered here: http://www.layer2.de/en/solutions/Pages/default.aspx



Top 50 recent answers are included