Tag Info

New answers tagged

0

SharePoint CSOM API exposes the following methods: Web.LoadAndInstallApp method - Uploads and installs an app package to this site Web.LoadAndInstallAppInSpecifiedLocale method - Uploads and installs an App package, in a specified locale Web.LoadApp method - Uploads an App package and creates an instance from it How to deploy (upload & install) ...


2

You should definitely get an Office 365 developer subscription. The subscription is pre-configured for development purposes (using the developer site collection as the default), and includes all of the features of the top tier enterprise solution (publishing features, InfoPath forms support, etc). Plus you get access to the full Office 365 application suite ...


0

Well here I quote my experience. As far as developing app for cross site collection access is concerned, my code is working perfectly fine and I am able to access the list on other site collections without any problem. Now there is a punch here and it has been mentioned by other fellas overhere a number of times. I deploy my app directly onto the app ...


1

When the app is uninstalled we’re also removing the event receiver. In order to make this work during debugging you’ll need to ensure that you navigate to the “Apps in testing” library and use the remove option on the app. This remove will trigger the app uninstalling event with the proper permissions to remove the created remote event handler. If you just ...


0

What you're seeing is correct url (a subsite). From your debug image, it looks like you have apps. Apps in SP 2013 get their own site where the naming convention is ' https://domain-XXXXXXXXXXXXXXXXXX.sharepoint.com/sites/site1/subsite1' To exclude the app sites (example): while (webEnumerator.moveNext()) { var newweb = webEnumerator.get_current(); ...


0

I tried below on my online setup and it worked properly var context = SP.ClientContext.get_current(); var web = context.get_web(); var site = context.get_site(); var rootWeb = site.get_rootWeb(); var subWebs = rootWeb.get_webs(); context.load(subWebs, 'Include(Title, Url, ServerRelativeUrl,ParentWeb)'); context.executeQueryAsync( function () { ...


0

Most probably you are using the ClientPortalNavigation.cs class for managing navigation settings using SharePoint CSOM. Disclaimer: i'm the author of this class The following examples demonstrate how to set Structural Navigation options. Example 1 using (var ctx = new ClientContext(webUrl)) { var navigation = new ClientPortalNavigation(ctx.Web); ...


0

As I commented: "Calculated fields can only be used to set a value in the current field (the field the formula is on)". No value assignment is necessary in the formula, the result of the formula will be used as the field value. Make sure the column ProcessStatus is a calculated column and enter the following formula: IF(NOT(ISBLANK([ECOSubmitActualDate])), ...


0

Please check the below link. SDK for SharePoint 2013 http://www.microsoft.com/en-in/download/confirmation.aspx?id=30722


1

Managing multiple web application over SSL is not an easy talk for developers. Wildcard SSL - It allows developer to manage and secure unlimited number of sub-domains or apps (if App domain is a sub-domain) with single certificate. The other solution is Multi Domain SSL Multi Domain SSL will allow developer to manage and secure multiple domains/apps over ...


5

I faced the similar issue. In my case, I went to Site Settings -> Recycle Bin removed the app from there and then went to second stage recycle bin and deleted from there as well. After that, the event receiver fired.


1

Got it! You have to make your host Body field to interact with App's IFrame It's a matter of registering listeners on message on the Host Page so it can listen to the App's IFrame message. Note: In this case, I've registered listeners on both App and on the Blog Post. In [HOST]: I edited the New Post page and added the Script Editor webpart. Below is the ...


0

Open your mysite page. Click the settings cog and then click 'manage shared apps'. Search for the promoted links app and click add. It should be visible to all users. https://support.office.com/en-us/article/Customize-the-My-Site-host-f7074f0e-7ec8-4380-8d6e-d75b71c55e9c?ui=en-US&rs=en-US&ad=US&fromAR=1


4

The rest interface is not available to anon users by default. It can be enabled, but MS recommends against it. The preferred solution is to enable the search rest api for anonymous access, and retrieve all data that you need via that. A good article that explains the above in detail. Waldek's post that is a good explanation of how to enable the search api ...


1

You cannot create a subsite inside an appweb, Microsoft has restricted it, If you will try to create a Subite in appweb using CSOM you will get an Exception message set by Microsoft that a subsite cannot be created inside appweb


1

If you're creating Apps for SharePoint you need to define an authorized remote endpoint in your AppManifest and then use the Web Proxy: http://msdn.microsoft.com/en-us/library/office/fp179895%28v=office.15%29.aspx Example using the JS Object Model Define http://services.odata.org/ as a remote endpoint in the AppManifest file of your App for SP project (or ...


-1

In regards to apps, Host web always refers to the site that the app is installed on. In your proposed situation, the token {HostUrl} would resolve to the latter: http://www.studentportal.com/sites/classroom2/subject1.


1

When a Term Store(Taxonomy) is created it has its own permission level. Check whether the user context which your are using has permission to the Taxonomy or not. See the picture I have attached.


2

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


0

First at all. You need to connect to SharePoint Online. You can make a console application to make your tests. Depends of what you need.. you are going to need a tenant Administrator or not. Check these links that are going to help you. How to create a site collection in SP Online Find dlls


0

Remove the extra "appweburl" on line 4. Your URL will look like "http://servername.comhttp://servername.com/api...." doing it the way you have posted.


0

Assuming here that the App has deployed an App Web you could check the EffectiveBasePermissions. Something like context = new SP.ClientContext.get_current(); web = context.get_web(); this._currentUser = web.get_currentUser(); context.load(this._currentUser); context.load(web,'EffectiveBasePermissions'); ...


0

Thank you for this post. To start workflows 2010 you can use InteropService. var interopService = wfServiceManager.getWorkflowInteropService(); interopService.startWorkflow(workflowName, null, null, null, initiationParameters); Worked example here.


2

An app part is one way to display information from an App for SharePoint (one of the so-called 'shapes' a SharePoint app can use). An App for SharePoint holds all of the logic, display, and (typically) data associated with a specific piece of functionality someone has built to leverage the SharePoint framework. Apps for SharePoint are created using some ...


0

Need to know a little bit more about your configuration to say for sure. Double check your DNS entries. Is your App domain point back to your SharePoint server? in DNS you need your root record for the app domain to have a CNAME entry that points to a web app on your SharePoint server. On the SharePoint side - the Web App must not have host headers ...


0

As far as I know the JavaScript CSOM does NOT support expanding recurring events (the same is true for REST / OData) as described here. I suggest you to use the GetListItems method of the Lists web service directly or indirectly via SPServices (see sample and discussion) if you need calendar related functionality on the web UI. Instead of iterating through ...


0

The answer from SharePointer does the opposite thing. It uploads local files to a Document Library and not from. I've found a working sample here: http://blogs.msdn.com/b/varun_malhotra/archive/2012/02/08/sharepoint-2010-powershell-download-all-files-in-document-library-to-network-share-file-share.aspx ######################## Start Variables ...


0

Instead of context.executeQueryAsync(Function.createDelegate(this, this.onQuerySucceeded), Function.createDelegate(this, this.onQueryFailed)); try to use simply context.executeQueryAsync(onQuerySucceeded, onQueryFailed);


0

Declare var collListItem; on top of the function Remove this prefix's inside the function. You final code will be var collListItem; function checkFreebookingdateTime() { getListCalender = document.getElementById('CalenderListDrop').value; spHostUrl = decodeURIComponent(getQueryStringParameter('SPHostUrl')); context = new ...


2

You can download few of the existing FREE Twitter Web Parts Free Sharepoint Twitter Web Part Search for Twitter Feed Twitter Web Part


2

Twitter provides rich devloper API's. You can check that here and create your own. Else you can use the one twitter provides. Something like <a class="twitter-timeline" href="https://twitter.com/twitterdev" data-widget-id="YOUR-WIDGET-ID-HERE"> Tweets by @twitterdev </a> <script type="text/javascript"> window.twttr = (function (d, s, id) { ...


1

First, you need to have a SharePoint app web in your provider hosted app project in order to make calls back into SharePoint using the Cross Domain Library (this is not included by default in a provider hosted app solution) Second, you'll need to load the following JS files from from the layouts directory of your SharePoint site (you can do this by ...


2

No, you cannot use app-only policy in SharePoint hosted app. For a SP hosted app it is always app+user context. Refer MSDN documentation. The NOTE in the documentation reads Apps that do not make OAuth authenticated calls (for example, apps that are only JavaScript running in the app web) cannot use the app-only policy


2

sorry, did not understand your question and noticed your code, you want to pick up items filtering EventDate and EndDate? What is the value of fromTime.setTime() and toTime.setHours(17)? trying to answer your question: the format example: date to filter between 2014-12-02T08:00:00Z and 2014-12-02T17:00:00Z ...


0

I'm sure your query is wrong, you are missing the where and query tag into it check this documentation: Retrieve List Items Using JavaScript


0

Your query is wrong. Try this '<View><Query><Where><And><Gt><FieldRef Name=\'EventDate\' /><Value IncludeTimeValue=\'TRUE\' Type=\'DateTime\'>' + fromTime.setTime() + '</Value><Gt><Lt><FieldRef Name=\'EndDate\' /><Value IncludeTimeValue=\'TRUE\' Type=\'DateTime\'>' + toTime.setHours(17) ...


0

Quoting this article: The key to fixing this problem is to make sure your master page includes: DeltaPlaceHolderLeftNavBar, PlaceHolderLeftNavBar, DeltaPlaceHolderPageTitleInTitleArea, and PlaceHolderPageTitleInTitleArea and that each of them is not set to Visible=False. To do this in an HTML master page with Design Manager you would add the following ...


0

Use below var camlQuery = new SP.CamlQuery(); camlQuery.set_viewXml('<View><RowLimit>1000</RowLimit></View>'); this.collListItem = list.getItems(camlQuery); context.load(collListItem, 'Include(EventDate,EndDate)'); var listItemEnumerator = collListItem.getEnumerator(); while (listItemEnumerator.moveNext()) { var oListItem = ...


1

Inside the while loop you can use $('#CalendarListDrop').append("<option>" + listName.get_Title() + "</option>");


0

Make sure you set 'Copy Local' to True (do this in Visual Studio on your Web project) for assemblies that are required. This is also true for any Microsoft.SharePoint.* assemblies that you may be using.


0

I ended up using this solution: function ResolveListGuidFromName(webUrl, listName, viewName){ var guid; var filter = "View[DisplayName='"+ viewName +"']"; $().SPServices({ operation: "GetViewCollection", async: false, webURL: webUrl, listName: listName, completefunc:function (xData, Status) { guid = ...


1

Import-SPAppPackage will import the App into the Site Collection. Install-SPApp will install an instance of the imported App into the specified Web. For SharePoint Server (on-prem) it is just a programmatic way to install Apps without utilising the App Catalog. These cmdlets are not the same (if even available) on SharePoint Online. You can also use ...


0

For SharePoint Apps exists an different deployment methodology. The following figure shows the conceptual architecture for building apps for SharePoint. Multiple options for hosting And therefore you not can to make solutions deployment a farm scope and of site. Your application to be deployed in the enviroment of development from Visual Studio ...


0

For Office 365 and SharePoint 2013, I advise you to see this blog and video: blog: http://www.markrackley.net/2014/05/20/cascading-drop-down-lists-in-sharepoint-office-365-using-rest/ Video:https://www.youtube.com/watch?v=_B8rV56-y1s For good reason, without using a library of third parties as "SPServices". It will take a while until you get to ...


0

Because you've tagged this with SharePoint, I am assuming you have a SharePoint farm setup. If so, I think you need to get your users to send links instead of documents and to keep files in SharePoint. It's a hard but not impossible transition to make. If you want to be really hardcore about it, do not let users attach documents on internal emails period. ...


0

Follow this blog article to view full error. Once you get the error details, you will be able to trace further, what's wrong with your configuration or code.


0

you can use interop class from office, the problem is that the server need those dll's. You can get it from this link: Microsoft Office 2010: Primary Interop Assemblies Redistributable About the code Application app = new Application(); byte[] wordContent = MethodtoGetStreamFromtheLibrary(); //you can figure it out ;) var tmpFile = Path.GetTempFileName(); ...


1

SharePoint hosted apps support JavaScript client object model and REST. Dot NET client object model is not supported in SharePoint hosted apps. However, Dot NET client object model is supported in cloud hosted apps.


1

You should be using Client Side Object Model while creating Apps for SharePoint. You can use MSDN as starting point to find out how to create those How to: Create a basic provider-hosted app for SharePoint How to: Create a basic SharePoint-hosted app How to: Create a cloud-hosted app that includes a custom SharePoint list and content type



Top 50 recent answers are included