Tag Info

Hot answers tagged

6

Yes you do not have a site content or site settings pages you find in a normal page. However, if you know the list internal name, you can build the url from it and go to lit. {App Site URL}/Lists/{List internal name}/AllItems.aspx App Site URL should be like as below example: ...


3

This error occurs since requested properties have not been loaded. You have to explicitly specify them in ClientRuntimeContext.Load method. Since you are getting ListItemAllFields property, you have to specify like this: context.Load(listItem, i => i.File,i => i.File.ListItemAllFields); Example 1 In order to retrieve File object with all List Item ...


3

I added your code to one of my pages, and changed the jQuery/jQuery Tools links to use https. IE Dev tools threw an error about insecure content, and after looking in the zweatherfeed.min.js file, I saw that it was using http in a few links, so I changed them to https. That gave me this: And the following error in IE Dev tools: SCRIPT438: Object ...


3

As an introductory please follow How to: Complete basic operations using SharePoint 2013 client library code article to get acquainted with how to update a SharePoint list item via CSOM. How to update list items via CSOM in PowerShell Assume the following data is contained in CSV file ID,FullName,Company,Title 1,Pilar Ackerman,Contoso Ltd,Manager ...


3

You totally can do this, using external users in SharePoint Online, and there are no licensing fees involved, and it is totally supported by Microsoft. In your tenant administration site, hightlight a site collection and click the "sharing" icon. Then select the button reading "allow users who accept sharing invitations and sign in as authenticated ...


2

You are using the SharePoint Online and you have only 2 column in the lists. Another question are you site collection admin. If you are Site collection admin then you can see all items as LVTH is different for site collection admin as compare to other users. For Admin by default is 20,000 items while for others are 5000 items. One thing keep in mind, you ...


2

It's not possible since the permission Approve Items comes with a dependency to the following permissions: Edit Items View Items View Pages Open Source: User permissions and permission levels in SharePoint 2013


2

Use File.OpenBinaryDirect method to downloads the specified file from a SharePoint site. The following example demonstrates how to download file from a Library by providing its item Id. Example /// <summary> /// Download file from a Library /// </summary> /// <param name="context">CSOM context</param> /// <param ...


2

There are four ways of going about this. Content query webpart: This will basically give you a view based on type. It is very easy to set up, but you'll have to do some XSLT modifications to make it look nice. Can be a bit of a pain. Some help -> http://blogs.msdn.com/b/ecm/archive/2006/10/25/configuring-and-customizing-the-content-query-web-part.aspx ...


2

The "Open in Windows Explorer" option is not supported by Microsoft on Macs. This is primarily because Windows and Mac (among other operating systems) have different ways of handling those kinds of protocols. You may be able to use "Microsoft Document Connection" as a substitute though. Here is an article that may help: ...


2

Normally I would do this through feature stapling, however it doesn't seem to be supported in SPO/O365. There may be some workarounds though. If you are okay with doing it manually, you can create a PowerShell script that looks through your MySites and activates the branding features, and run it regularly. Alternatively you can check other solutions, but ...


2

if this helps anyone, this code returns the values I needed. List listFields = context.Web.Lists.GetByTitle("Financial Notes"); context.Load(listFields); context.Load(listFields.ContentTypes); context.Load(listFields.Fields); ListItem item; // this is how you can get the item(file), you can also use CAML query context.Load(item = ...


2

Change the code that creates the items to the following: var itemData = new [,] { { "SkoleSite", "/sites/Engelsk" }, { "Settings", "/sites/Engelsk/Shared%20Documents/Forms/AllItems.aspx" } }; for (var i = 0; i < 2; i++) { var itemCreateInfo = new ListItemCreationInformation(); var newItem = announcementsList.AddItem(itemCreateInfo); ...


2

you can use SP.UI.ModalDialog.showWaitScreenWithNoClose If you want to use the 'Waiting' dialog function OpenDialog(targetUrl) { var waitScreen = SP.UI.ModalDialog.showWaitScreenWithNoClose("Loading", "Please wait"); var options = SP.UI.$create_DialogOptions(); options.url = targetUrl; options.autoSize = true; ...


2

You'll want to use the SPFieldType class instead of FieldType. Update: Actually, the issue is that the CSOM doesn't support that version of Add. Use AddAsXml instead: list.Fields.AddFieldAsXml("",true, AddFieldOptions.DefaultValue); When you call GetByTitle you're using [] - square brackets. Try using parenthesis to call the method instead - ...


2

As a workaround, you could create an empty SharePoint group, and set the permission on the folders toi that group only. It won't be shown to regular users, but owners and administrators would still see tyem. If this solves your problem, take a look at permission settings on items and folders using PowerShell: $folders = $list.Folders foreach ($spFolder in ...


2

For subsites, if you want to delete that folder after the web is provisioned, you can use the SPWebEventReceiver's WebProvisioned event. Here is an Example. The event receiever as per the documentation, wont work when root web of the site collection is created. In this case, you can Staple a feature to the mysite so that when a mysite is created, the ...


2

You will have to create a feature which will get activated on creation of all my site and write code to delete the default folder programmatically. You will have to make use of feature stapling technique to achieve this. Template Name for my site template is SPSMSITEHOST#0. Follow this blog for feature stapling .


2

First you need to add the references to the UserProfile.js file. <script src="/_layouts/15/SP.UserProfiles.js"></script> Now you can add the following code in your App.js file. (function ($) { $(document).ready(function () { // Ensure that the SP.UserProfiles.js file is loaded before the custom code runs. ...


2

To achieve the goal, you can go to configure search navigation. Here are the steps for your reference: Go to the Site settings page, click Search Settings under Search. In the section of Configure Search Navigation, click Add Link to add the the following links: 1). Title = Everything; URL = /search/pages/results.aspx 2). Title = People; URL = ...


2

First thing I want to mention here is the use of list for just 1 item. This is not the way to go. You can use site properties (property bag values) to manage this situation. You can create 3 properties and update values to it. It will save storage and improve performances. You can find in this article how to query property bag values using JavaScript CSOM ...


2

The trial version should be only for 1 user. So you can only use yourself. Even my MSDN Premium doesn't allow more. Regarding the people picker, mine too show same unless you type some and search.


1

In order to get data from your list to your form, you will need to use either CSOM (JSOM or C#, depending on how your app is hosted) or REST. See these links on how to get list items: CSOM JSOM REST If the list is on the host web, and you are trying to get items from the app, you will need to use the Cross-Domain Library, Sp.RequestExecutor.js. Here is ...


1

Where is the list located? Is it inside the same app web or the host web? If it is app web, then follow this article. If it is the host web, then you need to enable permissions in the app permissions to read list. Then access the host web voa javascript. All need to be done with JS Async calls.


1

Do you want to retrieve the properties? If yes, then you will find it within your SPListItem -> listItem["Modified_x0020_By"], etc.. But not all of them. Via listItem.File.Versions you get a collection of the file versions which you can iterate through respectively can read the properties e.g. "Level" (Draft, Published...) or "VersionLabel" (-> version ...


1

Open with Windows Explorer is a Windows/IE function only, thus why it is disabled.


1

Best way to do something like you need is to use the search engine. Do you have a specific Content Type or List template for the Library? in this case you can filter your search query for Content type or list template and also where the Site column "IsDone" has the value "Not Done". Actually, even if you don't have a specific CT or List template you could ...


1

When working with SharePoint remotely, you have to use CSOM and the CSOM model, you can't use any Microsoft.SharePoint.* objects. Everything is Microsoft.SharePoint.Client.*. Start here to get acquainted with CSOM: http://msdn.microsoft.com/en-us/library/ff798388.aspx


1

This is how SharePoint web templates work - the Configuration and WebTemplate properties always match the base site template. The best practice is to add your custom web template name to the property bag within your web template package. <?xml version="1.0" encoding="utf-8"?> <Elements xmlns="http://schemas.microsoft.com/sharepoint/"> ...


1

Looks like this is no longer happening. Microsoft has been deploying fixes for SharePoint online and upgrade issue was one of them. To check fixes status go to this page -- portal.office.com/ServiceStatus/ServiceStatus.aspx



Only top voted, non community-wiki answers of a minimum length are eligible