Convert CSOM to JSOM easily? - sharepoint

is it possible to convert or migrate easily a C# written web service from CSOM to the JavaScript object model JSOM?
I think its mostly the "same" - except few things which are really really different.
Maybe there is a tool for it or you have great ideas for this.
Or maybe there is an guide for this?
Thank's in advance for any idea!

There is no tool for converting CSOM to JSOM. But you will find all equivalents API of CSOM in JSOM. For Example, your using AttachmentCollection in CSOM, so equivalent of AttachmentCollection is SP.AttachmentCollection in JSOM. So you can just start by FIND and REPLACE from following
SharePoint 2013 .NET Server, CSOM, JSOM, and REST API index

Related

Which SharePoint API to use JSOM or REST?

I am a SharePoint novice and need help to determine which api set to use. I have given task to develop an outlook web add-in which will be side loaded to client's computer. This add-in will perform search on SharePoint lists and access content types and allow to move emails to SharePoint.
I have two options from what Choose the right API set tells me, REST OR JSOM.
It says to use JSOM but I am favoring little towards using REST.
My Concerns using REST is if it supports
External content types. I used Microsoft.BusinessData.MetadataModel.Entity in .NET CSOM?
Managed Meta Data/TaxonomyFieldTypes?
Are there any benefits of using one on another?
Really appreciate any comments or suggestions :)
Thanks for reading.
Yes,rest support both of them.
rest update managed matadata:
https://github.com/SharePoint/sp-dev-docs/issues/4758

Is there options how to code/create workflow using SPFx?

I developing web-part client-side solution using sharepoint framework. I successfully create a lists with some columns (it's list's columns not site). But now, I need to create a workflow, so is there any options, how to coding workflows using sharepoint framework and web-part client side solution? Have anybody some ideas or documentations witch could help me to moved further?
Can't create workflow in SPFx solution, you could use SharePoint add-in or Microsoft flow.
SharePoint add-in solution samples:
https://www.vrdmn.com/2014/09/integrated-workflow-apps-deploy.html
https://github.com/SharePoint/PnP/tree/master/Samples/Workflow.AssociateToHostWeb

Introduction to CAML in SharePoint

I am new to SharePoint development and i just saw a scripting. It was about retrieving list data using CAML and CSOM.
I somehow understood the scripting but i cant write a script on my own. Can someone tell me how should i start with this? I just need a direction on where to start.
Below guidelines should helpful.
CSOM CRUD
CAML schema

breeze.js & SharePoint 2013

I would love to use breeze.js to communicate with SharePoint 2013.
As we are starting to write apps for SharePoint, i think that breeze.js will be a great tool.
SharePoint uses an ODATA-Api, specs
What are the steps i have to take to get breeze to play nicely with the SharePoint backend? As far as i know, this has not been done - and i would like to show that this can be done.
follow-up question
Sounds like a great idea! We have no SharePoint expertise in house. But we'd be happy to help you be successful by answering questions. The place to start ... is trying to query a SharePoint resource yourself using the API you mentioned. Breeze is happy to communicate with OData endpoints. You might begin by reading the Breeze OData documentation.

Accessing SharePoint through Java Application

HI
I want to access my sharepoint site through my java application or through jsp pages. At my website user can search and download documents from sharepoint document library.if any java api? plz send me sample code..
Regards
Siva
http://code.google.com/p/java-sharepoint-library
Library written in Java provided connectivity to Microsoft SharePoint 2007 and 2010 Web Services.
You can check out WSRP then you may be able to show your web parts in java portlets.
http://en.wikipedia.org/wiki/Web_Services_for_Remote_Portlets
I remeber testing it in SharePoint 2007 to show lists in a java portlets.
You can using this http://www.bendsoft.com/downloads/camelot-wcf-service/
http://camelottoolkit.codeplex.com/
http://www.bendsoft.com/downloads/camelot-sharepoint-integration-toolkit/
Alongside with the Camelot ADO.NET Connector it turns SharePoint to an ordinary SQL datalayer so you can select, insert, update and delete from your Lists and Document Libraries (full CRUD support).
I'm not really into java, but there are sample code of using the WCF service and PHP is available here, http://blog.bendsoft.com/2011/04/camelot-php-tools-1-1-for-sharepoint-released/
There are a few soap wsdl clients for java, but it should be a simple task of setting it up.
I have developed an API to access most common Sharepoint Rest API functions (i'm still in work in progress to achieve a full implementation). The idea is to have a very easy to use java API to work with sharepoint sites. You can take a look here
https://github.com/kikovalle/PLGSharepointRestAPI-java

Resources