Tag Info

Hot answers tagged

6

You don't interact with SharePoint's Database directly, you will rarely need to open SQL Server and see what's in there. You interact with SharePoint's data using SharePoint itself. So you will need to interact with lists and libraries that are responsible for your CRM system. SharePoint provides you with some ways to interact with it depending on where from ...


4

CSOM Feature object exposes the following properties: DefinitionId - gets the GUID that identifies the Feature definition DisplayName - feature name Such SSOM Feature properties as SPFeature.Definition or SPFeature.Properties are not available in CSOM/REST. Below examples demonstrate how to manage features using CSOM Example: how to retrieve ...


4

You can leverage SP 2013 Search API s for this if you have a search configured and continous crawling enabled and there is huge number of sub sites to be iterated otherwise. //Raw code not tested , just to give idea of what it will look like function getSite(){ var clientContext = new SP.ClientContext("<serverRelativeUrl>"); var contextSite = ...


4

The Office Dev Patterns and Practices repo on GitHub has a great sample for provisioning custom web parts on the host web from inside of an app which should be a viable option for your situation. You could use this pattern to allow users to retrieve a custom configured web part and have it inserted into their host web allowing them to insert it at will (you ...


3

Background Unfortunately, SharePoint Online is notorious for this kind of things. They're updating something every now and then. I personally know about few situations when different javascript-based solutions stopped working because of minor changes to the page markup. So it helps to be consciously aware that such things can happen and will happen. Also I ...


3

I think you need to provide read access to your app on your list. Due to this it is throwing access denied error. See the MSDN link for detail information on App permission http://msdn.microsoft.com/en-us/library/office/fp142383(v=office.15).aspx


2

Every SharePoint app has its own SharePoint web associated with it. This is called the "App Web", and based on your code this is where the lists are coming from. Also, the SharePoint web on which the app was installed is usually known as "Host Web". I don't know if you are trying to read the host web's list or the app web's lists, so here are an example for ...


2

This error occurs since Title property is not retrieved when you try to access it. ClientContext.ExecuteQueryAsync method is asynchronous operation and you could utilize Task.ContinueWith to wait until Web is loaded. The below example demonstrates how to invoke ClientContext.ExecuteQueryAsync method and wait until Web is loaded: using (var ctx = new ...


2

The operation of setting Enterprise Keywords field value consists of two steps: first one to resolve Keyword in Managed Metadata service application (MMS), this what EnsureKeyword method from below example is intended for After Keyword has been retrieved or created if it not existed, the value of Enterprise Keyword field is set to ...


2

Garima's answer is fine but the problem is the PersonalUrl can be overwritten by the user. It remains as MySite Url when its pulled back in the code if its blank but if the user enters a value you get back that value instead of the MySite Url. A better function to use is get_userUrl(). So I'd change the above code to be: function getPersonalUrl() { var ...


2

How to retrieve List Author property using SharePoint REST Interface List resource does not expose Author property, but you could retrieve it from List Schema as demonstrated below (*). First step is to retrieve List Schema: /_api/web/lists/getbytitle('list title')?$select=schemaXml Then you could extract Author Id from SchemaXml property (*) List ...


2

There are three ways to add a Web Part (or something similar) to a SharePoint Online site. Use a Sandbox Solution. You create the Sandbox Solution with the Web Part and upload it the the Solution Gallery of the Site Collection in SharePoint Online the same way you would on-premises. Note that Sandbox Solutions that contain managed code are deprecated and ...


2

You can also create a new Enterprise 3 subscription here. As far as I know there is no limit (a colleague of mine has 5). It includes Developer's Site NAPA is available you can connect to Visual Studio, upload solutions, etc. the trial period is 30 days + 30 days extra time before you lose access to your data If you really want to work and keep your ...


2

I don't know anything about a free site. I think you had use a trial period and this time is now over. You must buy, at minimum, one User licence to continue using your Site.


2

Is that sharepoint provider hosted app or farm solution? Please mention detailed description so that one can understand your problem. You can get some reference from here: http://blog.bendsoft.com/2011/10/programmatically-download-a-sharepoint-document-library-in-net/ https://msdn.microsoft.com/en-us/library/fp179912.aspx ...


2

How to get PermMask field value using SharePoint JSOM Explicitly specify PermMask field in SP.ClientContext.load method: ctx.load(item,'PermMask'); Example var listTitle = 'Documents'; var itemid = 1; var ctx = SP.ClientContext.get_current(); var web = ctx.get_web(); var list = web.get_lists().getByTitle(listTitle); var item = list.getItemById(itemid); ...


2

Solved! Huge thank you to Brent Ellis on the Office 365 SharePoint IT Yammer group. The solution was to create a new content display template (/_catalogs/masterpage/Display Templates/Content Web Parts) based off of the picture+3 line template I was using previously. I added the WorkEmail attribute to the template first and overrode the pictureURL variable ...


1

You can control the field display by using other properties for each form (new, edit and display form). You can overwrite them by using this code : $field=$List.Fields.GetByTitle("Business Phone") $ctx.ExecuteQuery() $field.SetShowInDisplayForm($false) $field.SetShowInEditForm($false) $field.SetShowInNewForm($false) $Context.ExecuteQuery(); Don't forget ...


1

Use EffectiveBasePermissions to get permissions of the user on a list. Example: http://aissp2013/sites/Team/_api/web/lists/getbytitle('L2')/EffectiveBasePermissions Note that this will give the permissions of the logged in user. However, if the need is to check for other users permission while being logged in using as a different user then as suggested by ...


1

Why it didn't work with workflows? Did you make sure that the workflow is running on item created on List1? Did you make sure you're not testing the workflow with System Account? If you've seen the workflow "In Progress", did it throw any errors?


1

If you aren't restricted from using the REST API, you could just use the $filter command to get the particular web URL you're looking for... this would result in one of the lightest weight network requests possible given the scenario. Try pasting this into your browser dev tools on your SharePoint site, it will log the Url into the console (you'll need ...


1

Your code seems incomplete or wrong. As per my understanding you need to give the parameter of success and fail method name in the ExecuteQueryAsync call. I think once you change ExecuteQueryAsync to ExecuteQuery, you will get your result. You can refer this link for basic CRUD operation in SharePoint 2013 using Client side library. Hope this helps!


1

Querying and manipulating the DOM elements can be done in SPO Page through App part (Client hosted web part) even though its run inside the iframe on the hosted web page. To do this, you need to wire-up the web part properties with query string as suggested by John-M and I tried few approaches and found none except this idea. SP.RequestExecutor.js doesn't ...


1

You can add a Script Editor Webpart and use the rest api to get the user profile details. Below is a snippet which show you to get an instance of people manager using rest api $.ajax({ url: "http://<site url>/_api/sp.userprofiles.peoplemanager", type: "GET",headers: { "accept": "application/json;odata=verbose" }, success: successHandler, error: ...


1

A user must have the Manage Web site and Create Subsites permissions to add an app for SharePoint. By default, these permissions are available only to users who have the Full Control permission level or who are in the site Owners group. http://technet.microsoft.com/en-us/library/fp161231(v=office.15).aspx This (I believe) is because the ...


1

Add the link using the following URL format http://soutbendin2.sharepoint.com/sites/kpi/311/lists/311kpimaster/allitems.aspx Note - Please change spelling error in the URL. I typed it by looking into the image.


1

@TrevorSeward is correct. I don't have specific ref's to add but I have heard this from various MS event snippets, as well from a MS Field Engineer (for whatever that's worth). Your other question however doesn't seem to have much to do with Full Trust solutions at all. If clients are unwilling to store data in the cloud - then you don't have a cloud ...


1

The next major release of SharePoint will continue to support FTC, Microsoft will not commit to a release after SharePoint 2015 as of right now (just as Microsoft has never committed to releases after the next announced major version in the past). Nothing says you have to use "the cloud" for any SharePoint solution, even high-trust SharePoint Apps allow you ...


1

Here is the code to add XsltListViewWebPart to a page in app: <WebPartPages:WebPartZone runat="server" FrameType="None" ID="TaskListZone" > <WebPartPages:XsltListViewWebPart runat="server" ListUrl="Lists/WorkflowTaskList" IsIncluded="True" PageType="PAGE_NORMALVIEW" Default="False" ViewContentTypeId="0x" </WebPartPages:XsltListViewWebPart> ...


1

Use two quotes. That is 'Shekar''s.pptx'



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