Hot answers tagged

10

I'm going to assume here it's a SharePoint hosted app, so authentication is all centered around SharePoint. Provider hosted app may have additional authentication requirements and you would need to refer to vendors documentation on use. SharePoint hosted app - is a sub-site of the site where it is deployed. By default this will inherit the permissions set ...


9

I read that sandbox solution is not preferred in SharePoint 2013 and we should use the app model. So is creating artifacts an available approach to do inside SharePoint apps? Yes there are multiple available approaches. The one I use the most is (for provider hosted add-ins) to use a remote event receiver on AppInstalledevent. In the event receiver you can ...


7

You can set the value of days-to-show-new-icon/DaysToShowNewIndicator property, refer following: NEW INDICATOR IN SHAREPOINT LISTS AND LIBRARIES – NUMBER OF DAYS TO SHOW Days-to-show-new-icon: Stsadm property (Windows SharePoint Services)


6

Just in case someone doesn't want to read the whole thing and is not able to find the Solution. I copied it out and posted it also as an answer. And again, an update. Well, I've done wrong a lot of stuff in my process to get workflows to work with SharePoint via JSOM. At this point, I got the Workflow Manager Service and the Service Bus working, so I'm ...


6

I think this might help: http://weblogs.asp.net/wkriebel/archive/2005/08/22/LinkToExportToSpreadsheet.aspx Tested on SP2010 To replicate the funtionallity of "Export to Excel" (obtain the iqf file), all that needs to be done is replacing the place holders with your environment information in the following link: http://[Server]/[Site]/([Subsite]/)_vti_bin/...


6

Service applications are different SharePoint features which you can configure and share among different web applications. There are lot of built-in service applications which you can configure and benefit from. Applications - if you are referring to custom applications, are the one you can develop using Browser, SharePoint Designer or Visual Studio to ...


6

You can go to the following link and delete your app and permission from here siteURL/_layouts/15/appprincipals.aspx?Scope=Web You find all your registered app here.


5

You need to deploy your apps using App Catalog for your web application. Then your app will be available on subsites too. To configure your app catalog refer: http://office.microsoft.com/en-in/sharepoint-help/use-the-app-catalog-to-make-custom-business-apps-available-for-your-sharepoint-online-environment-HA102772362.aspx


5

When you upload the app to app catalog site, there you get the option to provide description. Short Description and Description.


5

SharePoint facilitates several services such like user profile, secure token, business connectivity and etc.. which are supported at farm level. An application is a web application where it also lies in the same level as services. There you can add site collection, sites and add content. Then the services come and help those applications to function by ...


5

Click on Start -> Run and type regedit. Locate the key 3. HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa Right click on this key and choose New > DWord Value Name this one "DisableLoopbackCheck" Double-click then on it and type the value “1” Reboot your server. (Mostly not required) This helped me in resolving the issue. I am using windows server ...


5

A1: For the most part the process of developing apps for SharePoint 2013, 2016 and SharePoint Online is the same. The one big difference in the authentication model used by Provider-hosted apps. If you have an on-premises farm you need to use a model called Server-to-Server (a.k.a STS or high-trust) authentication. If you have a hybrid deployment (i.e. both ...


4

Just disable Loopback Check - solved the problem for me. Here's some PowerShell to do this: New-ItemProperty HKLM:\System\CurrentControlSet\Control\Lsa -Name "DisableLoopbackCheck" -value "1" -PropertyType dword Source Keep in mind, that Loopback Check is essentially a security feature. Disabling it in a productive environment should only be considered ...


4

check proper app permissions is given. <AppPermissionRequests> <AppPermissionRequest Scope="http://sharepoint/content/sitecollection" Right="FullControl" /> </AppPermissionRequests> as well if you are using SharePoint Hosted app, try the following example. http://code.msdn.microsoft.com/office/SharePoint-2013-Use-list-cb3e4e14 http://...


4

Get Users from People Picker In the MSDN article you already probably know: http://msdn.microsoft.com/en-us/library/jj713593%28v=office.15%29.aspx In this article you have the function: // Query the picker for user information. function getUserInfo() { // Get the people picker object from the page. var peoplePicker = this.SPClientPeoplePicker....


4

You don't need to get the object of the newly created item again as ghNewItem since it is already loaded as ghItem . You need another executeQueryAsync call at the end function saveDraftGHrecord() { ghList = web.get_lists().getByTitle('Listname'); var itemCreateInfo = new SP.ListItemCreationInformation(); ghItem = ghList.addItem(itemCreateInfo); ghItem....


4

Not sure, whether you already found the answer. But you have to put in ownersGroup.update() before your context.load


4

That code will only run with credentials provided for a tenant administrator. It will not work against App-only policy. There is a User Profiles scope in the app permissions manifest, but, like the Taxonomy permission scope, it does not seem to actually do anything (in an Office 365 context, anyway). http://www.vrdmn.com/2014/11/set-another-users-profile-...


4

I give you a example where you can view what are the files you need to use sp.js http://todosharepoint.blogspot.com.ar/2014/08/que-librerias-necesitamos-para-poder.html


4

In your case, to make it work under IE, you need to put your app domain and SharePoint domain into the IE local Intranet zone: Also make sure that automatic authentication is enabled: Please, take a note, that this approach will work only if the user is inside organization domain, for outside the user will still be prompted for credentials. ...


4

Here , App Web - as you said your'e developing a SharePoint Hosted app from Visual Studio the contents you've added as part of the app like the html pages , scripts , app logo everything will be bundled and you'll be getting a .app file which will be added to the site , here it will create its own web to have all these contents this called App Web. you ...


3

So basically i didnt realize i had to go into the webconfig and appmanifest.xml to change the clientid="//randomNumberGeneratedGoesHere", you get this from from the ~/_layouts/15/appnewreg.aspx page


3

We're working on a corporate Intranet and I've just in the last few weeks attempted my first application. After you've decided to roll out with Office 365 or on-prem I think the first question to ask yourself is "Am I manipulating SharePoint itself?" Simply put, with Office 365 the flowchart ends with "make an app". You see a lot of app examples of things ...


3

I do agree that APP model is the new buzzword in the SharePoint world, and it is shifting the way we used to think everything as a feature till date. App model does offers some great flexibility to manage the solutions for admins (distribution and deployments) but yet to have a better example for app development. So far what i could see is developing ...


3

SP.Web.siteUsers property gets the collection of all users that belong to the site collection: var value = SP.Web.get_siteUsers () How to get User client Object by email function getUser(userName,Success,Error) { var context = new SP.ClientContext.get_current(); var web = context.get_web(); var user = web.get_siteUsers().getByEmail(userName); ...


3

Our company contacted Microsoft, and this is by design. For security reasons you cannot set the permissions of an app by client side code


3

App Part A component of an app for SharePoint that can be embedded on a site page to expose the functionality of the app.With app parts, you can show your app user experience (UX) right in the host web. An app part displays your app content using an IFrame. End users can customize the experience using the custom properties that you can provide for your app ...


3

function manageQueryStringParameter(paramToRetrieve) { var params = document.URL.split("?")[1].split("&"); var strParams = ""; for (var i = 0; i < params.length; i = i + 1) { var singleParam = params[i].split("="); if (singleParam[0] == paramToRetrieve) { return singleParam[1]; } } } var ...


3

Like with most things of this nature it's PowerShell to the rescue. Basically you can get the App instance, Import the updated package, then update the instance with the new package. $AppInstanceOnSite = Get-SPAppInstance -web "<URL>" | Where {$_.Title -eq "<AppName>"}; $NewAppFile = Import-SPAppPackage -Path <local path to .app file> -...


3

I found the problem. It was the XML snippet :O I did it always exactly like this: <AppPermissionRequests> <AppPermissionRequest Scope="http://sharepoint/content/sitecollection/web" Right="FullControl" /> </AppPermissionRequests> Instead I had to do it like this (everything together, NO SPACES, NO BRAKES): <AppPermissionRequests>...


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