Tag Info

Hot answers tagged

2

Seems you did not configure Apps to work in your environment, it's not enough to have the App management service up and running, if you cannot add Apps from the online store, that means you did not configure Apps. You need to configure the subscription settings service application, and do some work with your DNS and in central administration. Refer to the ...


2

Two things to check. Make sure "Windows SharePoint Services Administration" & "Windows SharePoint Timer Services" is running on all server in the farm. check in service console. check the SQL server if account under which you are running the script have proper permission to access it. Also check the ULS logs for more details.


2

No. The SharePoint-Hosted App infrastructure requires that each app be in its own domain for identification and isolation. Instead of building an App you could build a Sandbox Solution with site pages and JavaScript. It would give you effectively the same result without the need for the DNS changes.


2

Cross domain calls are blocked by modern web browsers due to security concerns. To get round this you can use the SP.RequestExecutor.js script to relay messages to SharePoint from within the same domain. Example function getListItem(hostUrl,appWebUrl, listTitle,itemId,success,error) { var url = appWebUrl + ...


2

I have found that it requires to has been activated the feature "Workflows can use app permissions" Also the workflow will be run under SHAREPOINT\APP user.


1

You can use success handler for reading file content function readFileSuccess(data) { alert(data); } Update var executor = new SP.RequestExecutor(weburl); var info = { url: fileContentUrl, method: "GET", binaryStringResponseBody: true, success: function (data) { //binary data available in data.body var result = ...


1

In order to publish a SharePoint hosted app to a site collection one of the following conditions should be met: the site must be based on the developer site template Developer Feature (e374875e-06b6-11e0-b0fa-57f5dfd72085) is activated The following class demonstrates how to: ensure Developer Feature is activated deploy App Example: public class ...


1

I am not sure you can do this OOTB, due to two different version of SharePoint and separate farms. I am thinking, your options will be either some kind of custom development or use the BCS to get the data. Business Connectivity Services in SharePoint 2013


1

That's right. According to Plan app permissions management in SharePoint 2013 : If an app is granted permission to one scope, the permission also applies to the children of that scope. In your case since an app is granted permission to a tenancy, the app is also granted permission to each site collection (SPSite scope) that is contained within the ...


1

You can create a Provider Hosted app without deploying it to azure. In your case the app needs to be deployed to on-premise environment. Remember to Select the option "Use a client secret" for authenticating the app.


1

Add following to your REST query $select=FileLeafRef


1

A sharepoint app essentially exists in a domain. So you need to either use SP.RequestExecutor.js or use SP.AppContextSite This is the structure of the URL if using SP.AppContextSite var url = appwebUrl + "/_api/SP.AppContextSite(@target)/web/lists/getbytitle('"+listName+"')/items?$select=Title,ID&@target='" + hostUrl + "'"; This is the general ...


1

This looks like a typical Same-Origin-Policy issue that may be solved configuring CORS on the remote server, and may be worked around proxying the communication between your server and the remote server: put some piece of software in your server that performs the real requests to the remote server. This way, all the calls from your browser will be to the ...


1

Look this sample from MSDN. Provider-hosted apps written in JavaScript must use the SP.RequestExecutor cross-domain library to send requests to a SharePoint domain. You can upload files up to 2 GB with the REST API. jQuery(document).ready(function () { // Check for FileReader API (HTML5) support. if (!window.FileReader) { alert('This ...


1

Try this var context = new SP.ClientContext.get_current(); var web = context.get_web(); var list = web.get_lists().getByTitle("DocLibrary"); var query = new SP.CamlQuery(); var caml = "<View><Query><OrderBy><FieldRef Name='Modified' Ascending='FALSE' /></OrderBy></Query></View>"; ...


1

I have found answer on official MSDN documentation How to: Replace an expiring client secret in an app for SharePoint Client secrets for apps for SharePoint that are registered using the AppRegNew.aspx page expire after one year. This article explains how to add a new secret for the app.


1

Yes, it is possible to use AngularJS with REST calls in SharePoint hosted apps, as illustrated here. You should create you own service beside the controller, and rely on promisses. For example, the service can be: myAngApp.service('spCustomerService', function ($q, $http) { this.getCustomers = function ($scope) { var appWebUrl = ...


1

A few items you will want to validate: You will want to ensure you have the SharePoint Services Timer and SharePoint Administration Service enabled, and set to automatic start. Likewise, you can manually start them from the command line using the following commands: net start SPTimerV4 net start SPAdminV4 Additionally, the resource I've used ...


1

Use SPUtility.CreateISO8601DateTimeFromSystemDateTime to create relevant DateTime string. DateTime firstDay = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1); string firstDayValue = SPUtility.CreateISO8601DateTimeFromSystemDateTime(firstDay); string firstDayValueplus1Month = SPUtility.CreateISO8601DateTimeFromSystemDateTime(firstDay.AddMonths(1)); ...


1

Starting a Host Workflow from an App is nothing but a huge pain. It requires several technical ID, as it depends on Azure workers to start. Did you ask this question to your Nintex contact ? He should have more customer cases. Last time I faced this choice, not from Nintex but SP2013 WorkFlow, I've simply been dealing with workflow processes in managed ...


1

Ok, I figured it out. In appmanifest.xml there is AppPrincipal/Internal entry; it has an optional AllowedRemoteHostUrl attribute which shoudl be set to http://web-site.com from my example <AppPrincipal> <Internal AllowedRemoteHostUrl="http://web-site.com"/> </AppPrincipal>


1

Yes, as Waqas mentioned you can create an APP and add it to a SharePoint store and then showcase it to your perspective clients. But that's just a small portion of what SharePoint can do. I used to do heavy C# SharePoint since 2007 but last two years its mostly JS and client side code. Its a big shift, and most work will be on a client side these days in ...


1

Yes, You can. You have to create a app using your development skills and deploy the App to store and from their you can give the demo. SharePoint 2013 development overview SharePoint 2013 Online App Development


1

try this code: var contextTokenString = TokenHelper.GetContextTokenFromRequest(Page.Request); var appWeb = new Uri(clientContext.Web.Url); if (contextTokenString != null) { SharePointContextToken contextToken = TokenHelper.ReadAndValidateContextToken(contextTokenString, ...


1

The url is generated when you deploy the App, so it's not something you can control. But what you can do is to test your stuff while you are in debug mode. So you hit the F5 and launch your app, whenever you do the change you just save it in VS and refresh the page in your app. Would that solve your issue?


1

You definitely need both the https and an app catalog on your office 365 (SharePoint Online) site to resolve the "Connecting to SharePoint" issue in Visual Studio.



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