Tag Info

New answers tagged

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


0

From MSDN Parameters strUrlType: System.String Specifies the server-relative URL or web-relative URL of the site to open. If strurl is empty, the top-level site must be opened. So what you need to pass as a parameter to OpenWeb is the relative URL. Instead of "https://xxxxxxxx.sharepoint.com/Customer Orders" it is just "Customer Orders"


0

The ItemCount function could be applied to List resource, for example: /_api/web/lists/getbytitle('<list title>')/ItemCount but not to ListItemCollection resource You could consider the following options of getting items count for list items: Option 1 How to return items count from json result: var endpointUrl = ...


0

When you query /_api/web/Lists/getbytitle(\'Items\') basically it returns SPList object. That object as ItemCount property. The value of the ItemCount property includes folders within a list/document library, as well as items/files within subfolders. For filtering we need to apply filter on Items so query ...


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.


0

You can refer the following links, it may help you [1] http://msdn.microsoft.com/en-us/library/office/fp142381(v=office.15).aspx [2] http://blogs.technet.com/b/meamcs/archive/2013/02/24/sharepoint-provider-hosted-app-walkthrough-part-1-preparation.aspx


0

Enable Item-Level security as shown in the picture.


1

Add following to your REST query $select=FileLeafRef


0

Apps are virtually a differnet domain than the host site. Hence browsers dont allow cross domain requests. In order to circumvent this you need to either use sp.RequestExecutor.js or SP.APPContextSite() instead of the standard procedure. This is the structure of the URL if using SP.AppContextSite var url = appwebUrl + ...


0

Disable Loopback Check Click on Start -> Run and type regedit Locate the key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa Right click on this key and choose New > DWord Value Name this one `DisableLoopbackCheck1 Double-click then on it and type the value 1 Reboot your server. Note - Create 32 bit DWORD


0

I am not sure the above accepted solution works but the working solution is below. First we need to add the below script tags in the apppart page. <SharePoint:ScriptLink ID="ScriptLink1" Name="init.js" runat="server" OnDemand="false" LoadAfterUI="true" Localizable="false" /> <SharePoint:ScriptLink ID="ScriptLink2" Name="sp.init.js" runat="server" ...


0

It is an issue with the DNS. When you deploy from Visual Studio it automatically adds the appropriate DNS entries to the Hosts file. When you deploy by uploading to the App Catalog that entry in the host file is not created. Configure the app domain so that everyone can access pages in the app domain. This involves setting up the app domain in DNS and ...


0

For Create apps using VS follow the link https://msdn.microsoft.com/en-us/library/office/fp142379.aspx


0

You can create apps in Visual Studio, I never use Powershell to create apps. link: link


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


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


0

Issue solved just copied the code of ContentPlaceHolder in the section where the previous code was removed


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


0

As you said, the app part is included as IFrame so the scope is the ifram itself. A content editor script web part will not able to reache the IFrame. You can simply add a JS script to the app and put your logic (so redirect to home page while clicking) in it. With this solution you can also change the target url of the redirect without deploy your app ...


0

To Migerate your web project to your own server you can not no longer use azure ACS certificates you have to create High trust app. You can follow this msdn link to create High Trust app. https://msdn.microsoft.com/en-us/library/office/fp179901.aspx


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.


0

You can get the value using REST service use following URL format http://SiteURL/_api/web/GetFolderByServerRelativeUrl('Shared%20Documents/fol1/fol2')/Files?$orderby=TimeLastModified desc function FetchAllFiles() { $.ajax({ url:"http://SiteURL/_api/web/GetFolderByServerRelativeUrl('Shared%20Documents/fol1/fol2')/Files?$orderby=TimeLastModified ...


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.


0

You can create your own Permission Level. This option is available in site permission at root site. There you can get option to add/edit/copy permission level. Select what permission you need and create permission level. In your scenario you can copy "Edit" permission level and then in that copied permission level, remove add and delete permissions. here ...


0

This is not a problem of SharePoint or the AppModel this needs to be Addressed with signalR. A possible solution is this: http://stackoverflow.com/questions/10089386/signalr-push-notifications-to-all-browser-instances-of-single-authenticated-user You create a subscription Group with the Username, this will dismiss the different user problem. Leaves the ...


0

Firefox requires the "Microsoft Office" plugin to work with SharePoint. When you try to Edit the item for the first time, Firefox asks you that your server wants to install this plugin. Choose to install and remember and you will be able to enjoy Firefox to SharePoint integration. Regards


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

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.


0

The only prerequisite for installing App into Publishing site, to activate Developer Feature (e374875e-06b6-11e0-b0fa-57f5dfd72085). How to install App using SharePoint CSOM The following class demonstrates how to: ensure Developer Feature is activated deploy App Example: public class SPAppManager { /// <summary> /// Deploy SP App ...


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


0

Found it. In DR scenario's, you need to synchronize the app management and subscription settings databases. Although designed this way, the farm in this case hadn't been set-up like this. Therefore, the app registrations weren't properly synced and this issue occurs. So if you're in the same situation: verify the syncs between your databases!


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


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.


0

I fix it by switching to use Rest API :) var fileContentUrl = appweburl + "/_api/web/GetFolderByServerRelativeUrl('" + finalFolderUrl + "')/Files('" + fileName + "')/$value"; var info = { url: fileContentUrl, method: "GET", //headers: { "Accept": "application/json; odata=verbose", "X-RequestDigest": ...


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.


0

SharePoint will automatically add the created by and modified by when an item is added and update the modified by when an item is changed. No code is required to achieve that, whether you use client side or server side code. If you are REQUIRED to do that for some reason, create new columns and display them and then hide the out of the box ones. Manually ...


0

var hostweburl = decodeURIComponent(getQueryStringParameter("SPHostUrl")); var appweburl = decodeURIComponent(getQueryStringParameter("SPAppWebUrl")); Instead of, var hostweburl; var appweburl; // Load the required SharePoint libraries $(document).ready(function () { //Get the URI decoded URLs. hostweburl = decodeURIComponent( ...


0

We need to include hostweb and appweb URL's when we deploy the sharepoint hosted apps since we are reading a list from an app it creates the cross domain issue, Hence we need to pass the different URL as shown below, url: appweburl + "/_api/SP.AppContextSite(@target)/web/lists/getByTitle('Customers')/items" + "?@target='" + hostweburl + "'" + ...


0

http://www.codeproject.com/Tips/817340/Creating-Custom-Master-Page-for-Hosted-Apps Create a Module in your project to add the master page that you just created above. •Add your custom master page to this module. •You will need to modify the elements.xml file so that your master page will go to the master page gallery of your app as below: <File ...


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

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

As stated in the other answer the download information is no longer available to the public. A team of Office365/SharePoint experts is working together on a better user experience for browsing Apps. The first version is now public at http://OfficeAppCoach.com


0

Visual Studio allows developers to deploy/publish Apps for site (site collection) which has been created using Developer Site Template. Recently, I was working for SharePoint 2013 Apps for one of my customer. App was developed using VS 2013 and published on Developer Site Collection (On O365) to test the functionality. However, it was not working (getting an ...


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


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


0

As it turned out, you still can add custom action with JavaScript in CommandAction and with EnabledScript attribute using JSOM or SSOM. Check this example, it works for me.


0

According to MSDN (search for CustomAction on page) you are not allowed to put Javascript in a CommandAction, only URLs are expected there. But as it turned out you still can add custom action with JavaScript in CommandAction and with EnabledScript attribute using JSOM or SSOM. Check this example, it works for me.



Top 50 recent answers are included