Tag Info

Hot answers tagged

5

Please find the comments below: ["d"]["__metadata"]["uri"] represents the REST Endpoint url of the resource, in your case of List Item resource, e.g. /_api/Web/Lists(guid'<list guid>')/Items(<item id>) ["__deferred"]["uri"] REST endpoint url of the resource it represents, e.g. /_api/Web/Lists(guid'<list guid>')/Items(<item id>)/File ...


4

In order to consume SharePoint REST service using .NET you could consider the following approaches: HttpClient - Provides a base class for sending HTTP requests and receiving HTTP responses from a resource identified by a URI. (.NET Framework 4.5) WebClient - provides common methods for sending data to and receiving data from a resource identified by a ...


3

First thing, you make sure you are recording the Deletion in your audit log. you can check here Configure audit settings for a site collection Now following events available for audit log reports The following events are available for audit log reports to help you determine who is taking what actions with the content of a site collection: Opened and ...


3

Yep you can get this from /_api/web/lists. You can try it out in a browser using https://beyondhard.sharepoint.com/_api/web/lists. There are loads of code samples on the internet but best place to start is MSDN


3

What i recommend to get SharePoint training course to understand it. If you want to start App Development but having no experience of the SharePoint Solution development will be fine. As far as you have Development Skills i.e C#, Asp.net and CSS, HTML, Java Script, Soap, XML. As SharePoint App you should understand all basic concept. This picture give you ...


3

You don't need to go back and learn traditional approach first but yes sharepoint basics should be clear. A very good resource on SP basics could be found here. It contains an extensive list of all the articles that are needed.


3

If you love the Powershell. Then you create a new Permission level call add-only and assign this permission level to all user who you want add items. Give other person(who can view the items) as full control/ edit or whatever you want to give them You can create an add only permission level using the following PowerShell script. $spweb=Get-SPWeb -Identity ...


3

var clientContext = SP.ClientContext.get_current(); // Gets current site context var id = GetItemID(); //retrieve selected list item id to update data var listId = SP.ListOperation.Selection.getSelectedList(); var oList = context.get_web().get_lists().getById(listId); this.oListItem = oList.getItemById(id); function GetItemID() { var selectedItems ...


3

Apart from enabling the Site Collection Feature SharePoint Server Publishing Infrastructure and the Site Feature SharePoint Server Publishing you need to enable versioning on the SitePages Library Setting. When this is done (it may take a few minutes to provision) - you are in a state where you can publish/unpublish pages. You find the Document Version ...


3

The following example demonstrates how to control field visibility in List Forms using JSOM function setFieldVisibility(listTitle,fieldName,properties,success,failure) { var ctx = SP.ClientContext.get_current(); var web = ctx.get_web(); var list = web.get_lists().getByTitle(listTitle); var field = ...


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.


2

You could also mimic this functionality with a drop-off library (part of the Content Organizer for all 2013 versions, including SharePoint Online) -- having it move all of the documents there somewhere else after they are uploaded. Then you could have whatever permissions you wanted on the destination libraries


2

Yes you can do this through Permission management. Remove everyone permission after uploading it. The farm administrator will be able to see it anyway.


2

After a week of troubleshooting with Microsoft Support, I can confirm that as of 9/2014 that SharePoint Online Plan 1 does NOT include Content Search Web Part (CSWP) even though it shows up and lets you add and configure it. Trying to activate Cross Site Publishing feature gives an error message about a feature it depends on, the Search Driven Content ...


2

I don't think learning traditional solution development will necessarily help you that much with learning the basics of the SharePoint solution hierarchy or necessarily that much with development going forward either. There's certainly no real down side to knowing the traditional solution approaches, but there really is a vast amount of information out there ...


2

Since Body field is a Rich-Text field, the below example demonstrates how safely to truncate Html content. In the specified example, text content is retrieved first and then text is truncated. Template file (Blogs.js) (function () { var rCtx = {}; rCtx.Templates = {}; rCtx.Templates.Fields = { 'Body': { 'View' : renderHeadline } ...


2

Since you are looking for a C# example, the below example demonstrates how to retrieve all lists via WebClient (you could also utilize HttpClient or HttpWebRequest for that purpose) Endpoint: /_api/web/lists How to retrieve lists using SharePoint REST public static JToken GetLists(Uri webUri,ICredentials credentials) { using (var client = new ...


2

You could use this script to show all pages (display, edit, add) of the calender in a dialog. This also works with the buttons in the ribbon. // wait until "core.js" is loaded, to override it's function SP.SOD.executeOrDelayUntilScriptLoaded(function () { var _useDialogsForFormsWithCtx = window.UseDialogsForFormsWithCtx; ...


2

Enable the versioning for the library. Create a new Calculated column with this formula: =Version, and add it to the default view. Check if the version information is available in the library's default view. If you can get the version information, try to set the labels value with the new added column. For more details check: ...


2

you are working in the right direction and this is actually the correct way to implement this. Just verify that your new property reference is added in "Item_Person.html" . If that is missing it won't work :) <mso:ManagedPropertyMapping msdt:dt="string">'PastJobs':'PastJobs','AboutMe':'AboutMe', ...


2

The '_api/web/lists' will return all the 'Lists' in a SharePoint Site. In SharePoint, a 'Document Library' is considered a type of List, that's why it's showing up in your results.


2

I accomplished this by using the following als document link, if the user clicks it the document is opened in the online word viewer. Depending on your server configuration, this might not work for all file types. [site URL + Library location]/_layouts/WordViewer.aspx?id=[document URL]


2

One of the challenges when working with Sandboxed Solutions is how to provision Web Parts instances to pages. If you have done this before in a Farm Solution you know, that in order to add a Web Part to a page programmatically in SharePoint you have to retrieve the instance of the SPLimitedWebPartManager class and use it to add the instance of a Web Part to ...


2

This error occurs probably due to a missing List.TemplateType property. When creating List, List.TemplateType property have to be specified. Note: in your example Feature ID with value 00BFEA71-DE22-43B2-A848-C05709900100 is used. That feature corresponds to Custom List, not a Task List How to create a List based on custom list template via ...


2

Microsoft doesn't allow anonymous access to any sharepoint content. In an Enterprise account you can hack the permissions with this: http://anonymous365.codeplex.com/ http://community.office365.com/en-us/f/148/t/195181.aspx http://365tutor.org/enable-anonymous-access-in-office-365-public-sites


2

Why would it be bad practice? It makes config changes much easier than having to redeploy code to fix. So long as everyone has read access and the appropriate people have contribute/full control, it works well. I do it for a variety of applications and workflows.


2

You can use Sharepoint site property bag to store web level properties like: function tag() { var hostweburl = decodeURIComponent(getQueryStringParameter("SPHostUrl")); var appweburl = decodeURIComponent(getQueryStringParameter("SPAppWebUrl")); var clientContext = new SP.ClientContext.get_current(); var hostContext = new ...


2

The problem arises as the response come as atom feed and IE by default set to read atom feed and present it in a better format. Go to IE settings - Internet Options -> Content -> Feed and Web Slices -> Settings and uncheck "Turn on feed reading view".


1

There is no concept of "sub Site Collection" in Sharepoint. You can create sub site in a site collection, and under that sub site you can also create another subsite. You can create Nested sites under one sub site. I can explain better if you provide a example what you want to achieve with this sub site collection.


1

I have investigated personally about this matter and the answer is no, out of the box. You can use the badge system but not automatically and any user can only have one badge at a time. Badges are assigned manually and not automatically. The community is a great improvement from the old discussion board, but still no cigar.



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