Tag Info

New answers tagged

0

Not long after posting this, I got it to work. // Activate ProjectPortal.NCSS Feature - this fails this._newWeb.get_features().add(new SP.Guid('d3f51582-abcf-483a-9414-d4976a5094ae'), true, SP.FeatureDefinitionScope.site); Changing the SP.FeatureDefinitionScope to .site seemed to be the key. How that works from a pure naming convention standpoint is ...


1

This error happened because the list was using two site columns which had the same GUID. How this could have happened is beyond me, as well as why SharePoint would allow this. I removed one of the site columns, which wasn't in use anyway, and now I can add fields to the list just fine. I just wish the error message was more clear on what was really ...


1

In the latest version (16.0.3104.1200) of SharePoint Online Client Components SDK available for download currently, Web object exposes AlternateCssUrl and SiteLogoUrl properties: using (var context = new ClientContext(webUri)) { var web = context.Web; web.AlternateCssUrl = web.ServerRelativeUrl + "/SiteAssets/contoso.css"; web.SiteLogoUrl ...


0

I'm guessing you don't have the v16 DLLs on your system, or you have an old version. If so, delete and re-install the Client Components SDK They change fairly frequently so if things start breaking or failing to compile check for a new version.


1

i think what your looking for is: var selectedItms = SP.ListOperation.Selection.getSelectedItems(clientContext); Gets the list items being selected. http://msdn.microsoft.com/en-us/library/office/ff409526(v=office.14).aspx so it would look like this(change your for code for this one including changeing the selectedItems for this): var ...


-1

You can hide list in SPDesigner. Open Site; click on list&library; right click on that list and in properties click "Hide from browser" EDIT This was for list & library For APPS Here is link Learn why apps cannot be hidden from users


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 ...


1

Publishing Pages require the Publishing feature to be enabled on both the Site Collection and Web level. You can enable these by going to Site Settings on your root website and first enabling SharePoint Server Publishing Infrastructure under your Site Collection features. Then enable on the Web by going to Site Features and enabling SharePoint Server ...


0

Yes there is Microsoft.SharePoint API used, using below c# code you can connect to SharePoint root site: SPContext.Current.Site.URL For subsites you can use the below code: SPContext.Current.Web.URL


0

I'm not sure what exactly you are looking for in C#, a site or web in sharepoint can be accesses via these codes given below: SPSite site=new SPSite('Site url"); SPWeb web=site.OpenAllWebs(); string userName = web.CurrentUser.LoginName;


0

I don't know if this can be considered a duplicate question, since the wording is different. Mail enabled lists are not available in SharePoint Online. An alternative is using Site Mailboxes or third-party add-ons.


0

Did you also do the exchange configuration part? Please refer to this excellent howto: http://sharepointgeorge.com/2010/configuring-incoming-email-sharepoint-2010/ It describes SharePoint2010 & Exchange2010 but also applies 100% to SharePoint 2013. If you use Exchange 2013 your way to configure will differ, because it has a new web-based interface.


0

When it comes to modifying the view of a list or it's items in SharePoint 2013 or SharePoint online recommended approach is to use JSLink and display templates.. JSLink & Display Templates JSLink and Display Templates Part 2 – Changing how individual fields display


0

you can use the below jquery in Script Editor web part: $(document).ready(function(){$Text = $("td.ms-cellstyle.ms-vb2:contains('Open')");$Text.parent().css("background-color", "#FF9900");});


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

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 ...


0

You don't need to call GetItemById, once you upload the file you will be able to access its List Item. Try this: public static void UploadVideo(SPList list,string fileName,IDictionary<string,object> properties) { SPFile file; using (var fileStream = File.OpenRead(fileName)) { var urlOfFile = ...


1

Try following: 1. Open Site and click the gear on the top right bar. Then choose Site settings. 2. Click Title, description, and logo under Look and Feel. 3. Type in the name and click ok.


0

I tried your code, and it worked for me. Try to add a new ordinary text-column, name it "Test", and try to set the value with: result.ChangedItemProperties.Add("Test", "bang!"); result.Status = SPRemoteEventServiceStatus.Continue; Just to test out the event. For me it didn't work inside: using (ClientContext clientContext = ...


1

According to OData specification: The syntax of a $expand query option is a comma-separated list of Navigation Properties. Additionally each Navigation Property can be followed by a forward slash and another Navigation Property to enable identifying a multi-level relationship. In your example, List Item resource does not expose RootFolder ...


0

When you create a standard document library in SharePoint you can set the document type it will use to Word, Excel etc - However it's not using different content types there, instead it's just setting the template used in that Library by the Document content type. With SharePoint 2013 Microsoft introduced the create new document option at the top of the ...


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 ...


1

What I would do is take a look at the OfficeDev Patterns and Practices project on Github. There are plenty of examples for writing CSOM for SharePoint Online. All examples are using the new App Model with plenty of helper classes available to do what you need. The projects in particular that you will want are the Provisioning.Pages and ...


0

get_item('Author'); should return a user object. Simply use the get_email() method to get the user email: var ctx = new SP.ClientContext(); var list = ctx.get_web().get_lists().getByTitle('My list'); var item = list.getItemById(1); ctx.load(item); ctx.executeQueryAsync(function(){ alert(item.get_item('Author').get_email()); }, /* error handling here ...


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 ...


1

var clientContext, hostweburl, parentContext, parentWeb, listItems; clientContext = new SP.ClientContext.get_current(); hostweburl = decodeURIComponent(getQueryStringParameter("SPHostUrl")); parentContext = new SP.AppContextSite(clientContext, hostweburl); parentWeb = parentContext.get_web(); var id = GetItemID(); // Gets Selected item's ID var listId ...


1

You're correct, if you include the REST method $select you'll get more data for the columns you specify.


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 ...


0

use the below script in CEWP: <a onclick="modalcall()" href="#">New Request</a> <script type="text/javascript">function modalcall() { SP.UI.ModalDialog.showModalDialog({ url: "NewForm.aspx", title: "New Form", allowMaximize: true, showClose: true, dialogReturnValueCallback: refreshCallback }); }; ...


0

I faced the same problem and solved it with just one move action :). What is happening during an "Adding" event is that the item is added just before the client context is closed. In this case it is before the close brace of the using statement. So you must return the event result (with error status in it) within the using context - and not outside of it. ...


0

You can use Client object model to programmatically create the Document library: var targetSite = new Uri("https://<site_url>"); var login = "<user@tenant>.onmicrosoft.com"; var password = "<password>"; var securePassword = new SecureString(); foreach (char c in password) { securePassword.AppendChar(c); } var onlineCredentials = ...


0

I'm afraid you might not be able to retrieve accurate count because of the nature of the BCS queries which only return a Maximum of 2000 records normally. I would recommend you read this article http://social.technet.microsoft.com/wiki/contents/articles/9628.sharepoint-2010-row-limits-in-external-lists.aspx Also one other potential way to read that ...


0

Items have ContentType and ContentTypeID values that can be accessed in the workflow that will give you the type.


0

You can think of using Content Query web part and query all tasks list within your site collection. PS : http://community.office365.com/en-us/f/154/t/15735.aspx You can get via coding as well : Show all tasks from user


1

Approval or rejection of items or files in lists or libraries must be done one at a time. You cannot approve or reject multiple items or files in one operation. There is no out of the box feature available for multiple approval. There are multiple free 3rd party tools available for this. You just have to deploy the Wsp to your SharePoint environment. ...


0

SharePoint 2013 has a new service application "Task management service" which helps you to aggregate tasks from SharePoint sites, outlook, project server etc. You can try and leverage this service to aggregate tasks from different sites. Here is a very good reference.


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', ...


0

Thanks for the answer guys. Didn't know that it was created as a subweb. Solved it with comparing the subwebs url with the hosturl and filtering out the apps that way.


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]


0

The special website to which the app is deployed is called an app web. The website to which the app is installed is called the host web. Although the app web has its own isolated domain, it is in the same site collection as the host web. (One exception to this rule is when the app is installed with tenant scope. In that scenario, the app web is in the site ...


0

Since SharePoint Online/Office 365 relies on Claims authentication use: SharePointOnlineCredentials class to provide credentials to access SharePoint Online resources. specify X-FORMS_BASED_AUTH_ACCEPTED HTTP header The following example demonstrates how to consume SharePoint Search REST using HttpWebRequest class: public static ...


0

The Search results have results which the particular user does not have access to . That is why you receive forbidden error . While using the REST API provides a much more succinct way to retrieve data, there are apparently areas where you’ll need to use the more robust CSOM.


1

As mentioned in the given article: There is no such feature for SharePoint Online to invite external users to a site automatically, and to programmatically invite external users, it is not possible. The reason is that SharePoint Online creates a unique invitation id per invitation, and each invitation can only be accepted once. Based on my ...


0

I figured it out myself. I turned out that I was trying to upload the app at the wrong place (Solutions instead of apps).


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.


0

There is also a newer, cheaper and much simpler solution. 3 PRO - SharePoint Migrator - https://shop.step2own.com/3-pro-sharepoint-migrator It migrates from on-premise or filesystem to your SharePoint Online, or vice versa. It maintains users, ownership, dates, and versions.


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.


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; ...


0

How to copy List Item using SharePoint 2013 REST function getListItem(webUrl, listName,listItemId, complete, failure) { $.ajax({ url: webUrl + "/_api/web/lists/getbytitle('" + listName + "')/items(" + listItemId + ")", method: "GET", headers: { "Accept": "application/json; odata=verbose" }, success: function (data) { ...


0

If you know the specific document library, you could look in the recycle bin for that site, or even the site collection recycle bin. PS:http://askpt.co.uk/2012/11/22/sharepoint-2013-what-and-where-is-the-recycle-bin/



Top 50 recent answers are included