Tag Info

New answers tagged

0

Remove all the whitespace from your ViewFieldsOverride property, it should be all on one line. The following code block is taken from the SPSiteDataQuery (which is used internally to retrieve the data) during XML validation: try { while (SPSiteDataQuery.ReadRootXmlElement(xmlReader)) { ...


0

Their is no OOTB method available to move the sites in Office 365. You have to choose the Between Manually or 3rd Party tools. Third Party Tool Free trial is available: http://www.metavistech.com Sharegate, http://en.share-gate.com/ Or you can manully move the Content from One site to Other. For more information: Information about manual migration of ...


0

SharePoint online won't support server/farm deployments. Here are your options Move files in layout to SharePoint libraries (Style Library or Site Assets etc.) Search webpart customization should be converted to Display Templates WebPart should be redeveloped so it will be in App format (Sandbox solutions)


0

@Ronak, here is the script: <script type="text/javascript"> $(document).ready(function () { // Hide all Add new button links on the page. $('[id^="Hero-WPQ"]').hide(); }); </script>


1

Isn't possible expand lookup via Rest Api. Only for user(column default) and field with atribute Deferred. But have solution for this: loop items and get all items and selecting only the SpeakersID _api/Web/Lists/GetByTitle('Topics')/items?$select=SpeakersId will return as show image below: but isn't suficient for get user info: Update(2): then you ...


0

I would try using Search REST API for this. The API can be used to query User Profiles and return the path to their My Site. You could even create a A-Z directory if you wanted. Very easy to do with search.


0

The REST API doesn't seem to want to fetch the UserName field, try Name instead and you should get the value that's actually in UserName even though my User Information List has a field called Name with a different value in it. I find Id works when proper cased, but not upper (so no ID) Try this query: _api/web/lists/getbytitle('Topics')/items(1)? ...


0

If you want to choose the multiple value you will run into a SharePoint limitation. Basically SharePoint Designer isn't smart enough to figure out that you have multiple values and will only give you the first one (hopefully this will get fixed sometime in the future). A workaround might be to make 2 fields and call them primary and secondary. Then it is ...


0

ChangeItem only contains subset of fields for the actual item that was changed. You need to get the actual item using, e.g., GetItemByUniqueId, and continue with that object. $myRealItem = $myList.GetItemByUniqueId($changeItem.UniqueId)


2

Keep me signed in uses cookies to keep a user signed in...so this is only an issue for users who share their computer with other users. In situations where users are sharing computers it should already be standard policy to log out of any sensitive apps and accounts that shouldn't be accessible to other users... I don't see any real security flaw here. ...


1

Use this article to find about how to use PowerShell with SharePoint online. http://technet.microsoft.com/en-us/library/fp161362(v=office.15).aspx Once this is done, you can use below to change the ModifiedBy etc $web=get-SPWeb "You Web URL" //Get a new object called $web to pick site $list=$web.Lists["Your List"] $replacedUser ...


0

It might not be te most elegant solution, but this will get them into which ever group you put as $group. If your AD is on-prem follow this first. If they are already synced to your Azure AD, then just run the below code. function Connect-SPOSite() { param ( $admuser = "user@tenant.onmicrosoft.com", $admsite = ...


0

Using EnsureUser works http://msdn.microsoft.com/en-us/library/office/dn499819(v=office.15).aspx#bk_WebEnsureUser Just pass the GroupName and you can get the principalId of the group


3

When you use URL _api/web/lists/getbytitle('TestList')/items(1)?$select=FolderUrl You will get two properties d:Description d:Url So you don't need to expand <m:properties><d:FolderUrl m:type="SP.FieldUrlValue"><d:Description>Google ...


3

How to retrieve List Url in SharePoint Online using PowerShell CSOM Function Get-SPOCredentials([string]$UserName,[string]$Password) { $SecurePassword = $Password | ConvertTo-SecureString -AsPlainText -Force return New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($UserName, $SecurePassword) } $context = New-Object ...


1

The error You need to be a site collection administrator to set this property occurs when one of the following conditions does not met: Ensure the user performing a request is a Site Collection Administrator Ensure permissions for the App, explicitly request FullControl permission at the Site Collection scope as shown below: Follow Adding Site ...


0

The main issue with this problem is related to how you retrieve the SP.ClientContext and SP.Web objects that are used in CSOM to retrieve the information you want. Below I present the solution to my problem and the conclusions I've come to. If they are wrong, please correct me so I can gain a better understanding if this! Consider these two following ...


0

You can fetch it from anywhere, but make sure you do a full crawl and make a managed propety from Search. So you can fetch the value using that property as below. <span ><img src="_#= ctx.CurrentItem.ProfilePhoto =#_" height="150px" width="150px" /></span><br/><br/> ProfilePhoto is the Managed property you create in search ...


0

I've managed to accomplish this by doing the following. Once I've added my permissions to a folder or a file I do a clear up. I remove the role Full Control from the admin account. When I go to remove the admin from the users site, the admin account no longer appears and no files are shared with the admin which is what I wanted.


0

You need to add to the Master page gallery content types Click on Library settings-->Advanced settings-->Check Allow management of content types Now you upload the .js file or edit the the item, you should able to see the Java Script Display template content type in drop down.


1

When a Term Store(Taxonomy) is created it has its own permission level. Check whether the user context which your are using has permission to the Taxonomy or not. See the picture I have attached.


0

Are you trying to add static pictures or you want this pictures to be fetched from somewhere, I had my pictures uploaded in a list please check the way I have done it. <span ><img src="_#= ctx.CurrentItem.ProfilePhoto =#_" height="150px" width="150px" /></span><br/><br/> If you are using any specific image you can replace the ...


0

Sorry, as far as I know, there is no out-of-the-box way to alter this file via web-based APIs. In an on-premise installation you could create a custom extension (for example, by extending the client object model as described here) to alter the data from the client side, but in this case I don't find it to be a good idea, and it is no option at all for O365. ...


2

In order to develop SharePoint solutions (farm or sandboxed), you must have SharePoint server installed. You can develop SharePoint apps without SharePoint Server, but you may need the Office Developer Tools, depending on your version of Visual Studio (the latest version of 2013 may have them installed already). Office 365 does not support solutions that ...


1

You can't quite impersonate over REST API since the code runs client-side and any user could capture the request and use it maliciously to impersonate the user for other operations. If you have a High-Trust (Provider Hosted) App SharePoint trusts who your signed token claims the user is, but even then, you shouldn't use it client side. You might try using ...


2

Yes you can add custom document templates to Document Library in SharePoint Online. See this link on how to add custom document template.


1

Go to your site collection > site settings page and activate the following Site Features (in this order) Search Server Web Parts and Templates SharePoint Server Publishing Infrastructure Go to a blog post and edit the page. Add the Content Editor Web Part and edit it's source toi iFrame your content. Paste your iFramed Facebook Source code ...


0

You need to use querystrings to get the webpart properties, as used in this example: <Content Src="~remoteAppUrl/AppPartContent.html?strProp=_strProp_&amp;intProp=_intProp_&amp;boolProp=_boolProp_&amp;enumProp=_enumProp_" Type="html"/> Then you can get that from your javascript: ...


0

As wjervis mentioned, Microsoft rolled out a feature in Office365 to limit the amount of scripting allowed in order to maintain the security and integrity of the sites in a tenancy. When the cutom scripting is disabled, parts or features that support scripting are no longer visible. Here is how to check: Log into Office 365 Click the Office 365 header ...


0

The setting is here - thanks @wjervis Was Custom Scripting disabled for your host? That would cause those to not be available. – wjervis


1

Another option In O365 if you are using OWA you can create calendars directly in the interface and share the calendar. Go to the Calendar interface and create a new calendar with the "+" icon In the upper right hand corner - select Share Add the users or groups you will share with and they will get an email. The email will contain a link to the ...


0

Remove the extra "appweburl" on line 4. Your URL will look like "http://servername.comhttp://servername.com/api...." doing it the way you have posted.


1

One way of accomplishing half of your question is to make a Calendar in a SharePoint site that everyone in your organization has access to. Assuming someone can view the calendar app in said SharePoint site, the "Connect to Outlook" button in the Calendar tab of the Calendar app will sync the calendar with Outlook 2013. I didn't have any luck getting the ...


0

Here is a technique that will work for any lookup type because it goes to the lookup list for the field you're interested in: You can make a REST request to the /fields endpoint on your list to retrieve some more information about the fields that exist within the list. For your case, you're interested in fields of the person or group type so you could do ...


0

Thanks for the input, decided to go with Angular method. Works really well and can be applied. <PublishingWebControls:EditModePanel PageDisplayMode="Display" ID="EditModePanel5" runat="server" CssClass="edit-mode-panel title-edit"> <script type="text/javascript"> angular.module('Empty', []).controller('EmptyController', ['$scope', ...


0

Finally figured out the solution to this issue. Appeared to be the wrong TimeZoneId property value was set. This was causing the correlation-id errors. Needed to be value 4 for (UTC+01:00) Amsterdam, Berlijn, Bern, Rome, Stockholm, Wenen To figure out the correct TimeZoneId needed execute code below on any existing site. ClientContext context = new ...


1

You should be able to hide the elements with javascript or jQuery like so: function hideProperty(){ var x = document.getElementById('Label'); var d = document.getElementById('Label').parentNode.parentNode; if (x.value != ''){ d.style.display = 'none'; } else{ d.style.display = ''; } }


0

Not that I know. No it is not CORS enabled. The real issue is caused by the browser and not the server. Local HTML Files are not supported but you can use a local web server. I use this pattern a lot in Office 365 and SharePoint online. To code javascript I have my local web server running and only reference the scripts from my local server and use it ...


0

In fact the following CSOM examples demonstrates how to upload file those size exceeds 1,5 MB: Example 1 Sub UploadFile(context As ClientContext, sourceFilePath As String, targetListName As String) Using fs As FileStream = New FileStream(sourceFilePath, IO.FileMode.Open) Dim fi = New FileCreationInformation() fi.ContentStream = fs ...


0

Try this //start out by getting a client context for o365 string o365ClientId = "o365ClientId"; string o365ClientSecret = "o365ClientSecret"; //get the Uri for the personal site Uri siteUri = new Uri(siteUrl); //this makes a connection to o365 using an App Only token since the user is not currently connected to o365 //NOTE: The 5 parameter version of this ...


1

The following example demonstrates how to distinguish a "regular" users in Web.SiteUsers: public static IEnumerable<User> LoadUsers(ClientContext context) { var users = context.LoadQuery(context.Web.SiteUsers.Where(u => u.PrincipalType == PrincipalType.User && u.UserId.NameIdIssuer == "urn:federation:microsoftonline")); ...


0

Yes, but it is a little bit complicated. Create two text columns, "URL" and "Display" (or whatever you want to call it). Create a calculated field "Link" Formula: =CONCATENATE("",Display,"") Data Type: Date and Time (Can also be Number, but then will appear right-justified). Date and Time Format: Date Only Add an list item with URL "pw://test" and Display ...


0

Is all the documents from the same Document Library? If so why not use a List View Web Part and get the functionality for free? (Since Per never got around to it.)


0

Try this ClientContext clientContext = new ClientContext("http://your site/"); Web web = clientContext.Web; List siteUserInfoList = web.SiteUserInfoList; CamlQuery query = new CamlQuery(); query.ViewXml = ""; IEnumerable<ListItem> itemColl = clientContext.LoadQuery(siteUserInfoList.GetItems(query)); clientContext.ExecuteQuery(); foreach (var item in ...


3

The error: The user does not exist or is not unique most probably occurs since user could not be found. The list of methods that could be utilized for removing a user from group: SP.UserCollection.remove SP.UserCollection.removeById SP.UserCollection.removeByLoginName The following examples demonstrate how to remove User from Group using ...


0

Using REST You can REST endpoints for removing users from groups http://msdn.microsoft.com/en-us/library/office/dn531432(v=office.15).aspx#bk_UserCollectionRemoveByLoginName executor.executeAsync({ url: "<app web url>/_api/SP.AppContextSite(@target)/web/sitegroups(7)/users ...


0

It depends on what kind of changes you need to introduce. There are several ways to customize a SharePoint Online site and they have different scope of influence: Masterpage For an existing site collection you may need to change the masterpage. Master pages provide the look and feel for all of the pages in your site. By changing the styles or content of ...


2

The plugin allows you to have a better experience with Microsoft SharePoint Typical file path: C:\Program Files\microsoft office 15\root\office15\npspwrap.dll Mozilla plugins Microsoft SharePoint Plug-in for Firefox Google Chrome plugins Stored per user in the directory 'Google\Chrome\User Data\Default\Preferences' Name: 'NPSPWRAP.DLL' ...


0

I've found using the following GetByUrl or GetFolderByServerRelativeUrl with a number of folders can lead to the below. "The length of the URL for this request exceeds the configured maxUrlLength value." By using GetFolderById('guid')/listItemAllFields I was able to accomplish my task of assigning permissions and updating a field.


2

After the first query that creates Folder object you could perform the second REST request: http://<sitecollection>/<site>/_api/web/folders/getbyurl(folderrelativeurl)/listItemAllFields to retrieve the associated List Item with a Folder. The following JavaScript example demonstrates that approach: function ...



Top 50 recent answers are included