2
votes
1answer
27 views

Sharepoint provider hosted app Microsoft.SharePoint.Client.File.OpenBinaryDirect does not work

I am trying to do. Microsoft.SharePoint.Client.File.OpenBinaryDirect(context,relativeUrl) Always get "forbidden" and unauthorized. However If i use same context and url to do ...
0
votes
1answer
76 views

Install app from SharePoint store via client object model

I'm looking for a way, how I can install app from SharePoint store to my site in Office 365 using Client Object Model. In Object model I found method Web.LoadAndInstallApp. It work if I put app from ...
5
votes
4answers
702 views

js library for REST and JSOM SharePoint basic tasks

I am just sick of writing again and again the same piece of code to use jsom Async requests, especially when it's for a SP-hosted app which envokes spexecutor. I am sure each developer has his own ...
0
votes
1answer
37 views

How do I integration test an SharePoint Online App?

It is my understanding that if I want to do integration testing of Apps for SPO I first and foremost need a tenant to do the testing on. The problem is, how do I run the tests? Ideally I want to use a ...
1
vote
0answers
42 views

How to convert TimeZoneInformation into TimeZoneInfo

I need get TimeZoneInfo object that represent timezone on SharePoint Server. In client object model I found object Web.RegionalSettings.TimeZone (Class TimeZoneInformation). How I can convert ...
0
votes
1answer
213 views

Taxonomy control in SharePoint hosted app

I am creating an SharePoint hosted app. In that I have to use Managed MataData from my list. In this I am getting the Metadata from my list column to my Taxonomy control. I have find some post but I ...
3
votes
0answers
142 views

Is it possible to retrive CRM online data from SharePoint Online using javascript? [closed]

So I would like to get data from Microsoft Dynamics CRM 2013 Online into my SharePoint Online SharePoint Hosted App. Is this possible to javascript only? Can I use the same Cross Origin Query ...
2
votes
1answer
810 views

SharepointOnlineCredentials not working in an app

I want to authenticate against sharepoint online site using SharepointOnlineCredentials class. Below code works fine in a console application. But the same code is generating error when written in wcf ...
0
votes
1answer
362 views

How to create sub site context in sharepoint online using app model

I am trying to create a sub-site and some predefined lists in the existed site collection. I am successfully created the sub site in the site. But Now i want to create lists in that newly created ...
1
vote
1answer
2k views

Sharepoint 2013 App access cross site collections

I'm using SharePoint 2013 and I wrote an AppPart that needs items of a list other than it's host site collection. But it keeps popping up an error indicating that my request has been failed. Access ...
0
votes
2answers
2k views

Get all subsites of top level site using JavaScript OM

I am trying to get all sub sites of the top level site. However, the code I wrote for the app returns zero subsites. I am a little mystified as to why: var context = SP.ClientContext.get_current(); ...
2
votes
0answers
130 views

Change content type order via Javascript/ECMAscript

In my SharePoint-hosted app, I use javascript to apply a content type called "Order" to a list in my app. When users click "new item" to upload a document, I want that document to derive from my new ...
0
votes
1answer
437 views

SharePoint Apps Getting the GUID of App-Provisioned List using JavaScript and CSOM

I'm a Sharepoint App beginner. I have a SharePoint 2013 App that provisions List. How can I get the GUID of those list using CSOM and JavaScript? Here's what I got so far: var lists; ...
1
vote
0answers
89 views

Add an app from the corporate catalog using client object model

I want to install an app that is in my corporate catalog using the client object model. I've found that I can install an app when I have the app locally. I'm then able to load it in as a stream and ...
0
votes
2answers
1k views

Creating site using javascript object model error: The request uses too many resources

I'm trying to create a site in my sharepoint hosted app using the javascript client object model in a SharePoint online site. I use a custom template when creating the site. This is my code: var ...
1
vote
2answers
548 views

Access denied, from an app, when getting List items from a different web applcation

I have create a SharePoint Hosted App and installed on a Site which is located on WebApplication1. This app tries to get list items from a list in a site which is located on Webapplication2. I have ...
1
vote
0answers
184 views

Update value of column in Form Library using CSOM

I want to update the value of a promoted field from infopath form by csom code. I have written the following code but it does not seem to work. Please guide to know what is incorrect. function ...
1
vote
1answer
8k views

How to reterive list item values using CAML query?

I have one Date and time column and text colum. I need to retrieve list item value based on this both column using CAML query.. For ex: Columname---> Date value for date would be-6/1/2013 and ...
3
votes
1answer
281 views

Is it Possible to create Client Web Part enum property dynamically?

I am creating an SharePoint Hosted App using CSOM technology. I want to set the ClientWebPart Property dynamically. I want to add enum property Dynamically. App will bring all the list name from my ...
2
votes
1answer
154 views

Get list of installed apps using Client Object Model

I have been trying hard to find any example, resource which explains how to get a list of installed apps in SharePoint 2013 environment using Client Object Model. So far I have found nothing. Could ...
1
vote
1answer
192 views

ClientContext.Load on data that is already loaded

I need clarification how does ClientContext.ExecuteQuery method works in client context. For example if I use ClientContext.Load to load the data that is already initialized - will it make an request ...
0
votes
1answer
259 views

Retrive value of a url field using client object model

I want to get the value of a URL field type using client object model. As I am working with share point app so can't use the server object model. Can anyone please hepl me out. Thanks
3
votes
2answers
613 views

Accessing files in SharePoint AutoHosted App 2013

I am creating an AutoHosted App in SP 2013 and trying to access the file under one folder of the remote Web (need to pick the file from current project directory location and pass that file to another ...
0
votes
1answer
820 views

SharePoint 2013 App Part : Dynamically set values for the tool part panel controls on serverside

How can I dynamically fill a dropdown list in a Tool Part panel of a SharePoint 2013 app part? What I want to achieve: User checks a checkbox Dropdown appears The list items in this dropdown are ...
1
vote
1answer
722 views

Getting user email from a List Item column using Javascript

I am creating a Hosted app using NAPA on Sharepoint 2013 (Office365). I need to retrive a user from a list column and get the user's email. SP.List.getItems with a query returns a listEnumerator ...
0
votes
2answers
586 views

Get current language via Client Object Model

I need to get the current display language of a web via Client Object Model (C#) from a provider-hosted App. The app runs inside a Client Web Part (IFrame). I am aware of this solution but think it is ...
2
votes
0answers
927 views

How to get a client context for App in provider-hosted Apps?

I use a provider hosted Apps, so need to work with an App Web and Lists. Could anybody provide a code snippet to get ClientContext() of the App? Can I do something like this? Uri appWeb = new ...
0
votes
1answer
86 views

SP2013 App icon not rendered, only App link is displayed + how we can set the sliding transparent hover text over App icon?

I am facing an App Icon related issue. I am creating SharePoint Hosted App which I am deploying to SP 2013 Developer site. By default any app will have the AppIcon set under Images folder. Also it is ...
4
votes
3answers
3k views

SharePoint 2013 Call the REST API from SharePoint hosted app

I've successfully deployed a SharePoint hosted app to office 365 and my local on premise installation. All the app aims to do is call the REST API for the user profile manager to get the profile ...
1
vote
2answers
693 views

accessing the SP2013 Site Settings-->Master Page/Navigation settings etc using CSOM (client side object model)

I want to access the SP2013 Site Settings-->Master Page/Navigation settings etc using CSOM (client side object model) using JavaScript or REST service or Webservice which I can call from Javascript. ...
0
votes
0answers
425 views

current user is always is administrator on a SharePoint App

I have tried following solution to check the current user's permissions on the current host web in a SharePoint hosted app, however the user is always administrator. function sharePointReady() { ...