Tag Info

New answers tagged

1

SharePoint Client Side Object Model or CSOM - it is all about working with SharePoint data and managing SharePoint artifacts (sites, lists, libraries, etc.). CSOM is managed code libraries dedicated to use SharePoint data or manage data outside SharePoint server, in Windows Applications, Web Application, Windows Phone or Silverlight, PowerShell. CSOM also ...


1

You can get list of site collection in Office 365 using CSOM var token = TokenHelper.GetAppOnlyAccessToken("00000003-0000-0ff1-ce00-000000000000", tenantAdminUri.Authority, null).AccessToken; using (var clientContext = TokenHelper.GetClientContextWithAccessToken("https://yourtenant-admin.sharepoint.com", token)) { var tenant = new ...


0

This may help you. 1) Go to the AppInstallations table in the content DB. 2) Select the recode related to your app 3) Update the status to 5 4) Do IIS Reset 5) Navigate to Site content and go to the context menu of the Corrupted app 6) Click the “Remove” Link More details: http://sujeewa.com/2015/06/remove-corrupted-app-from-the-farm/


0

If the PowerShell doesn't work check the following link http://sujeewa.com/2015/06/remove-corrupted-app-from-the-farm/


1

HTTP 304 means "Not Modified", that your image has not been modified in the library since you last requested it and your browser is therefore using the copy from your local browser cache. This is as design and a common, desirably behaviour in web development.


2

You'd SystemUpdate like this: var spFile = web.GetListItem(_listUrl + item.Name); spFile["Website Link"] = hyperlink; spFile.SystemUpdate(); https://msdn.microsoft.com/en-us/library/office/microsoft.sharepoint.splistitem.systemupdate.aspx Updates the database with changes that are made to the list item without changing the Modified or Modified By ...


1

You can use the CheckOutUser column to determine if the item is checked out. Using the List.asmx GetListItems you can pass this field into the viewFields xmlNode argument. If it is not null then the item is checked out. ...


0

I tried to add a comment, but due to my reputation I am unable to do so. It would help if you gave us a bit more context about the issue, namely what the script you included above actually does. My first guess would be that your MaxUrlLength is being exceeded with the Async REST services call. The following line may render a URL with a character count ...


0

Sorry for the late response, but after struggling with adding fields from other lists in a view by help of projected fields and joins, I concluded that this is not working / bug, as per documentation it should. The workaround we were thinking was to add additional lookup fields to the list showing the interesting columns from the foreign list. This should ...


0

Ensure that the Office application is able to connect and authenticate to the App Catalog in order to download the list (e.g., with Fiddler free web debugging proxy by Telerik). Enabling Anonymous access to the entire site would be a good troubleshooting step for this as well. Additionally, there are some compatibility issues that could be preventing the ...


0

Another thing you can try is: Go to Manage Service On Server, search for the one labelled "Microsoft SharePoint Foundation Subscription Settings Service" and Stop/Restart it. Then performa an IISReset and try again.


2

You are trying to access a list in the Host Web from the App Web. To do this you need to do two things: Request permission to read the list in the app manifest Modify the url property of the request to use the cross-domain library The url should look something like this: var appUrl = GetUrlKeyValue("SPAppWebUrl"); var hostUrl = ...


0

I faced the same issue and believe the answer lies in this statement at this link: https://msdn.microsoft.com/en-us/library/office/jj163864.aspx Apps that request rights for the User Profiles scope must be installed by a tenant administrator, and they cannot be installed in Office 365 Small Business Premium version of SharePoint Online.


0

Off the top of my head, it's Site collection permissions that you need to create the group.


0

Try checking permissions for app, instead of building it in visual studio you can use online napa tools if you are implementing it on Office 365. Try checking following links, https://technet.microsoft.com/en-in/library/jj219576.aspx ...


0

Fellows, finally i got the solution. I found this page that explains how to pass value from a sharepoint page to a client webpart. Basically what i had to do in order to retrieve the page query string and send it to the iFrame was the following: 1 - Add a property to the client web part (should have the same name as the query string that will be passed). ...


1

You will have to set up an high trust app that uses S2S protocol, because your provider hosted app needs to be accessed only by users who has access to SharePoint, also the app will need permission to access the SharePoint resources. Follow this blog to set up an high trust provider hosted app.


3

I'll be honest - your vendor should be taking into account your current and projected platforms, as well as your branding requirements and Informing you what the best option is. Your future hosted provider may or may not support Apps and/or sandbox solutions. These are configurable and can be turned off. If you are looking at O365 - then both are ...


0

You use the $expand query option. For example, you have two lists: ListA and ListB. ListA has two fields: Field1 and Field2. ListB has three fields: FieldA, FieldB and LookupField. LookupField looks up to ListA. REST query should be as such: ...


2

When you are developing/debugging a provider hosted (high-trust app for SharePoint) in Visual Studio, the remote web application is hosted in IIS Express on the machine where Visual Studio is installed. So the remote web application computer doesn't have an IIS Manager where you can create the certificate. For this reason, you use the IIS on the SharePoint ...


0

Items displayed in a Content Search web part is controlled by the chosen display template in the web part properties. To make the results open in a modal dialog, go to the site collection where the web part is > site settings > Master pages and page layouts > Display templates > Content Web Parts. Download a copy of the display template HTML file that you ...


0

In your SharePoint app,locate Appmanifest.xml and uncheck app only call from permission tab, Use following code to read current logged in user var spContext = SharePointContextProvider.Current.GetSharePointContext(Context); using (var clientContext = spContext.CreateUserClientContextForSPHost()) { clientContext.Load(clientContext.Web); ...


1

To me it sounds like you want a normal link (a-tag) to the other app. One way to achieve this is by getting the app tile from host web and create a link to the tile target, something like this: _api/Web/AppTiles?$filter=Title eq 'Your app title'&$select=Target (note you need to use AppContextSite endpoint.) Then select the first result, and create an ...


0

I assume you are having issues in reading the query string via java script. if thats the case then you may refer the below one for detailed answer. Link for query string in javascript if you are really looking for a connected apps architecture, then I would suggest to use "SignalR" with SharePoint. There are couple of very good articles mentioned in MSDN ...


0

There are more ways to skin a cat (not that I am into skinning cats) Drawback of the scripting method it has to be wired up on each View webpart you want to use it and doesn't work on SP2010 if you're using 2013 JCSOM code. It is possible to stuff (javascript)code in a Calculated Column which does this calculation. This: ...


0

Make sure you are developing from the box that SharePoint is installed on. If you aren't on one of the WFE you can't deploy full trust solutions via Visual Studio. The other post also mentions the hosts file. Make sure you check that and that you have the domain of your SP Web App mapped in there. This file is typically located at ...


0

You need fix it as below function OnSuccessVisa() { var listEnumerator = listItems1.getEnumerator(); var count = listItems1.get_count(); var sum = 0; while (listEnumerator.moveNext()) { var currentItem = listEnumerator.get_current(); var elmt = currentItem.get_item('_x0072_zb6'); if(elmt != null) sum += ...


1

There's nothing you can do, except increase the threshold on Central Admin. However, that 5000 is there for a very good reason, especially if you have 5000 items with unique permissions on the list. I strongly recommend dividing content into multiple lists to prevent serious performance issues. This document describes how threshold can be modified in ...


1

Try to debug in browser console if you are receiving proper object, check for the null object before you access its property while (listEnumerator.moveNext()) { var currentItem = listEnumerator.get_current(); elmt = (currentItem.get_item('_x0072_zb6')); if(elmt != null && elmt !== undefined){ var sum = 0; for ...


0

Remove the view and query tags from the CAML, are you facing any error? "<Where>" + "<And>" + "<Eq><FieldRef Name='Title'/><Value Type='Text'>" + namn + "</Value></Eq>" + "<Or>" + "<Eq><FieldRef Name='Prioritet'/><Value Type='Text'>Hög</Value></Eq>" + "<Eq><FieldRef ...


0

You can use an AngularJS form inside the SharePoint Default.aspx page. Instead of using <form name="formName"> use <ng-form name="formName"> By doing this, ASP.NET will not see an embedded form tag, and therefore will not remove it.


0

The following should work: function onSuccess() { var listString; var listEnumerator = listCollection.getEnumerator(); var shortest = ""; while (listEnumerator.moveNext()) { var currentItem = listEnumerator.get_current(), title = currentItem.get_title(); if (shortest == "") { shortest = title; } ...


1

You can use the REST Query to get the Title of web. Following is the function which will get the title of web. function GetWebTitle() { try { //REST Query to get the display form url jQuery.ajax( { url: _spPageContextInfo.webAbsoluteUrl + "/_api/web?$select=Title", type: ...


1

It depends on your scenario: Unique ID / GUID - is unique GUID that identifies an item in SharePoint content database, but using SharePoint API you cannot find item using this GUID. Id - is item ID in SharePoint list/library, that is integer value and is incremental. Usually, when you want to uniquely identify list item in SharePoint you should use this ...


0

If your existing hyperlink field is the the URL to your document you can indeed add a Calculated Column. You have to set it to datatype=Number otherwise the Column will just display your HTML code as Text ="<a href='" & Title & "'> " & hyperlink & "</a>"


0

If you know the URL of the document, you can use a calculated column to combine a url and the item name. The formula would be: ="<a href='"&%URL_Field_Name%&"'> "&[%field_name%]&"</a>"


0

Thanks to Waqas Sawar in the comments above, who pointed me to this link: Accidentally deleted ALL Timer Jobs ? That was nearly the answer, but, since the App Installation Service was a Farm-Scoped job, and not a Web Application scoped one, I had to do a little more digging. I then came across this article: SharePoint Timer Service: Config Refresh ...


0

I have used below mention Script on Client webpart function SpotlightVideoPopup(youtubeurl) { var decodeurl = decodeURIComponent(youtubeurl); var url = decodeurl; var options = SP.UI.$create_DialogOptions(); options.title = "Spotlight Video"; options.width = 800; options.height = 600; ...


0

Please have a look on this informative resource which might be helps you to get this job done. Auditing in Office 365. Meanwhile, you can check this- On site collection Navigate Site Actions -> Site Settings. under Site Collection Administration you will find Site Collection Audit Settings. In the Document and Items section check the Opening or ...


0

If you create your SharePoint App as a provider hosted app and host it in Azure (or where you want), then you can make any changes to the Web Page which is shown in the Client Web Part without SharePoint knowing.


0

This is the default behavior. Workaround is to add the app part to page using a feature activation event receiver.



Top 50 recent answers are included