Business Process Apps using cross domain CSOM or REST calls: which one is the easiest to use?

Hi
I have build a  few (on prem) provider hosted and  SharePoint hosted apps to really surface data held in host web. Now, I want to do something a bit more complex by starting to build a process follow that makes a number of cross domain calls -
the success handler of the preceding call setting up the next cross domain call  and so on . 
For example:
Document Library 1
Document 1, Content type ct_1 (various attributes set inc taxonomy, lookup etc)
I want to copy this document and any set fields to ……..
Document Library 2
Document 2, Content type ct_2 (inherits from ct_1) ( ( various attributes, set as above) 
 I just wondered if this was achievable with
client side REST or would this be better with
CSOM :-( Thos I am stating to hate CSOM ;-.I did have a look at server side code ( csom/rest) and I thought quite verbose and a backwards step plus not really amenable to later moving to Angular or Knockout- tho please let me know if this initial assumption
is wrong.  
One controversial view
would be to code up a full  farm trust web part because the server side apis are well understood. Also,  one or two dlls are are likely to be difficult to migrate at some stage - assuming  V Next does not mechanisms to
prevent full trust farm solutions complete with bard wire and watchtowers ;-)
The other option thought of would be a 2013 w/f but I would a fancy form to go with this as I would want to capture user
input
Be interested to hear the thoughts from the community 
Daniel, WSL
Freelance consultant

Hi,
According to your post, my understanding is that you have cross-domain problems in apps for SharePoint.
There are many different techniques to overcome cross-domain issues in JavaScript.
You can use Rest to resolve it. Please refer to:
Cross Domain and SharePoint Hosted Apps using REST
More information:
Solving cross-domain problems in apps for SharePoint
Cross Domain and SharePoint Hosted Apps using CSOM
Thanks,
Linda Li                
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Linda Li
TechNet Community Support

Similar Messages

  • Why are there 2 'after effects', 14 and regular and which one is the best use? It seems a little crazy to use twice the storeage for the same program?

    I up graded adobe cc last night and the cc app down loaded up-grades to my original cc apps, plus another app of each labeled 14. Why do we need two copies of the same app on our machines, and which one is the best to use. I hope adobe in not going down the same road as apple and screwing up the works. i still remember way back when adobe goofed it so bad I switched to final cut. Now apple has screwed up final cut and I am back to Premiere. I know we have huge drives now, but come on, why two bit eating monsters that do the same thing. Stan / Desert Wind Productions.

    The "2014" versions are new versions of the software. It's like the difference between CS5 and CS6. The new one is (most of the time) significantly better. This isn't any weird screwup, it's just a new version.
    You may want to keep the old version around for compatibility, client needs, safety, etc. However, it probably behooves you to use the current version for all of its new features, etc.

  • Maximum size of upload file using Cross Domain Library

    Hi All 
    I need to know what is the maximum size of file that I can upload using Cross Domain Library from my Provider hosted app. I know that in msdn it is written that usign REST call we can upload upto 2GB but I have doubts if it is true with Cross domain library
    REST Calls. Please suggest.
     spExecutor.executeAsync(
                                   url: fileCollectionEndpoint,
                                   method: "POST",
                                   contentType: "application/json;odata=verbose",
                                   body: filedata,
                                   binaryStringRequestBody: true,
                                   headers: { "X-RequestDigest": $("#__REQUESTDIGEST").val(), "accept": "application/json;odata=verbose" ........
    And Can I pass ArrayBuffer directly or I need to pass only binary string ?
    Thanks in Advance 

    Hi,
    According to your post, my understanding is that you want to know the Maximum size of upload file using Cross Domain Library.
    Per my knowledge, you can upload files up to 2 GB with the REST API. 
    You can refer to:
    How to: Upload a file by using the REST API and jQuery
    In addition, you can pass ArrayBuffer directly. Please refer to:
    FileCollection methods
    Thanks,
    Linda Li                
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Linda Li
    TechNet Community Support

  • HT4009 I would like to make an in app purchase using my $20.00 credit that I have on I tunes. I am using my  i phone5. It does not give me the choice of using the credit that I have, only a credit card. How can I use the credit for the purchase??

    I would like to make an in app purchase using the $20.00 credit that I have on itunes. I am using my i phone5. It does not give me the option of using the credit that I already have, only of using a credit card. How can I use the credt that I already have instead of a credit card?

    Is Settings > General > Restrictions > In-App Purchases: ON (green)?
    Some In-App Purchases works only with credit card.

  • Which Canon HD camcorders are the easiest to use with my MacBook Pro?

    Hi!
    I have a MacBook Pro with Leopard OS, 2GB and imovie 7.4. We are researching HD camcorder options and really like the Canon HG20 or 21 but have concerns for ease of use with my macbook. We won't be doing much editing and really just want to record our vacations on our camcorder and be able to show them on our HDTV's (1080i). If I understand the process, we would have to download our hard disk from the camera into the computer and then copy it to a DVD? Will my computer copy the high def. and if so can I run it on our regular DVD player or would we need a Blu-Ray?
    Maybe a better question would be what would be your recommendations for a Canon HD camcorder that is the easiest to use with my MacBook? Would we be better off to go to one with flash disc as opposed to the hard disk? We need to keep this process as simple as possible! Thanks much for any advice or info!

    You have been mis informed the MacBook Pro Retina does NOT work with the Apple Remote natively.
    The Remote is infra red and your computer doen't have an infra red receiver onboard.
    You need to purchase an external infra red receiver as well such as this
    http://twistedmelon.com/mira/hardware.html

  • How to find out which type of the driver is used in our application?

    Hi all,
    can anyone tell me how to find out which type of the driver is used in our application?
    Thanks in advance,
    Phoeniox

    Hi,
    Check out this...
    Class.forName("com.mysql.jdbc.Driver"); //if u r using MySql
    List drivers = Collections.list(DriverManager.getDrivers());
                   for(int i=0;i<drivers.size();i++)
                        Driver driver = (Driver)drivers.get(i);
                        String driverName = driver.getClass().getName();
                        System.out.println("Driver "+i+":::"+driverName);
    you need to load the driver and display in the same program.
    Then only you'l get the required result.
    prakhyath

  • How do i find my newest itunes tv downloads, in my video app.  In the OS7 all my purchases are there so i can find which one is the new ones that i have not watch M

    How do i find my newest itunes tv downloads, in my video app.  In the OS7 all my purchases are there so i can find which one is the new ones that i have not watch

    Hi Bill...
    Read here >  Creating an iCloud account: Frequently Asked Questions

  • I created in iMovie, and extracted audio from one of the clips to use in the title sequence.  All is well, export to iDVD and it plays OK, but when I burn the DVD the audio for the titles does not play. Any suggestions?

    I created in iMovie, and extracted audio from one of the clips to use in the title sequence.  All is well, export to iDVD and it plays OK, but when I burn the DVD the audio for the titles does not play. Any suggestions?

    I am on a MacBook Pro with OS 10.6.7 running iMovie '11 and iDVD 7.1.1.  Thanks for any input.

  • I have around 1,000 photos on my old phone and I want to put them on my new phone without using a backup or iTunes, which would be the easiest way?

    I have around 1,000 photos on my old phone and I want to put them on my new phone without using a backup or iTunes, which would be the easiest way?

    I was looking for something on the net, and i run into this post. Am not sure if you have found a soulution or not, anyways, if not here are some programs that i love and they show you every thing in your iPhone:
    iFunBox, iBackupBot and DiskAid
    am sure they will help you find what you want and then you can just copy them to your computer.
    if you use Mac, iPhoto will import everything for you.

  • I`m using samsung wave 7233 BADA os so which version of firefox i Should use?

    I`m using Samsung wave 7233 BADA os so which version of Firefox i Should use?

    We don't have a product that runs on BADA. Firefox Mobile needs Android 2.0+ or Mameo (MeeGo) devices.

  • Is there a tool to determine which version of the WDK was used to build a binary?

    I'd like to ensure that our developers are all using the same WDK when building software.  Some of the binaries delivered to my team are from other organizations where we have less control over the build environment.  Is there a tool that I can
    run to identify which version of the WDK was used to build binaries that are built with MSBuild?  

    the quick answer is no, you can't verify it
    d -- This posting is provided "AS IS" with no warranties, and confers no rights.

  • When I updated my Iphone my naviogon app was erased, and I can't figure which one I had purchased. Does anyone have any ideals how I can figure this out.

    When I updated my Iphone my naviogon app was erased, and I can't figure which one I had purchased. Does anyone have any ideals how I can figure this out.

    App Store > Updates > Purchased > Not On This iPhone.
    Should be in the list.
    tt2

  • I need to find out how much wifi data my apps are using. I have a very limited amount of wifi data, and I am exceeding my monthly allowance. Apparently, even apps I think are not open are sending/receiving data through the wifi and using up my allowance.

    I need to find out how much wifi data my apps are using. I am on a very limited amount of WiFi data each month, which I am regularly exceeding. I have been told to work out which of my apps is using the data. Also, I think I have closed an app by double clicking the home button, then swiping the app up - is this the way to close it, or will it still be sending/receiving data?

    Go into your Settings : General : and turn off background refresh for your apps.  In Settings : Mail  turn Fetch new data to OFF and Load Remote Images to OFF.  This will mean that Mail will only check for messages when you actually use it, and all your advertising junk mail won't have all the images in it.
    Turn off push notifications every chance you get.
    Make sure you are actually quitting apps:  to quit apps press the Home button twice and you should see a bunch of smaller screen images for every open app.  To quit the app swipe from the screen image (not the icon) upward off the top of the iPad.  You can swipe left and right to see more open apps, but there must be no left-right movement on the screen when you swipe upward to close the app.
    Turn off your internet connection when you do not need it.  The easiest way to do this is to swipe up from the bottom of you screen to get the control centre, and then touch the airplane to turn on airplane mode.  You can repeat this sequence to turn it back on again when you need it.  Most especially turn airplane mode on whenever you are sleeping your iPad for long periods.  This will save battery life too.  OR actually turn your iPad off - which means holding the power key down for several seconds until the red swipe bar appears, and then swipe to turn it off.  If you go this route, note that it will take longer to turn on then it takes to wake from sleep.

  • The iCloud id on my Mac is my old mobile me id. I use a different id for purchases which is also the I'd used on my iOS devices. Is there any way to replace the iCloud apple id on the Mac to make it the same as the one that I use for purchases?

    The iCloud id on the Mac is the old mobile me one. I no longer have any use for it and want to use the id that is used for purchasing and is on my iOS devices. It would enable me to make better use of I stream between the Mac and the iOS devices

    Sign out of icloud in system preferences and sign in with the one you want to use.  Just be sure to backup icloud-synced data first, before signing out, if you have any data associated with that account you care about.  Then you can reimport it after.  If you only want the information that is currently syncing on your mobile devices, then it's simply sign out with the old MM one and sign in with the one on the mobile devices.

  • Which one is the Right Approach - Re Using Page Layouts or adding Web parts directly to pages instead of page layouts in SP 2013 online site ?

    Hi Team,
    I am SharePoint 2013 developer. Before asking question I would like to explain the requirement in clarity.
    We are developing one O365 SharePoint online site which is having 10 different page layouts with different and some common webparts and we are reusing these page layouts by deploying a sandboxed solution which is having page layouts. These page layouts contain
    filter and query to display data using some condition and predefined values. By using these layouts we have to create 100+ pages. All pages will show data according to that page name and category (if it belongs any). We have not written any code to develop
    the site, everything is OOB feature.
    We have used below feature/list/lib of SP Online 2013:
    - Document Library
    - Survey
    - Calendar
    - Lists
    - Discussion forum library
    - OOB Search feature
    Now, I would like to know whether this is the right approach to reuse the page layouts. Or can we add webparts directly where the logic resides in the webparts and add them to the pages instead of page layouts?
    Also how to deploy page layouts/pages from one server to another? Currently we are deploying everything as a feature using sandbox solution. 
    Could you please let me know the right approach to follow. I am asking this question because we are facing below issues:
    - Sometime page layouts gets corrupted, showing nothing.
    - All written filters/logic disappear when we open layouts in Designer
    - Deployment is pain using Sandbox solution
    Waiting for your reply.
    Thanks in Advance,
    Shifa Mittal

    Interesting question, to which i do not know a definitive answer.
    Output Caching is used to increase performance and to reduce load on the box. However since you're in the MS Cloud you don't need to worry about the latter and MS do the worrying about the former. I wouldn't be surprised if MS have updated the behaviour
    for O365 and not updated the documentation. That first office.com article is using 2010 screenshots which doesn't fill me with confidence about it's continuing relevance. Don't forget that SharePoint 2013 and O365 are technically different versions and have
    very different behaviour in places.
    Generally i'd say not to worry, but in this case if you do find any more information i'd love to see it.

Maybe you are looking for

  • Treo 755p The free data storage space on the device is low. Some data could not be saved

    After having the Treo 755p device for only a week, I am receiving a message "The free data storage space on the device is low. Some data could not be saved."  I have over 55 mb of free space according to the device info page. I cannot find anything a

  • Why do i get a message like   Comunication chanel being edited by the user

    Hi , I get this strange problem sometimes only with my file adapater that file adadapater is being edited by user i am the only user using the system so bit suprised how does it get edited it doesnt come for other communication channel anyway faced s

  • Workflow for G/L Posting

    I am trying to trigger a workflow when there is a posting to a G/L Account. I had success 1 time, in getting an email in my inbox. I am using BKPF for my BO and Created for the event. I am creating the document using transaction F-02. I am not gettin

  • Static IP for Mac OS 10.5 -- Help!

    I'm not sure how to set up an static IP for my macbook. It will be using my airport, not my built in ethernet. Can someone provide me a step by step guide? I'm lost. Thanks!

  • Just Updated to Leopard 10.5.7 but I no longer can use my HP Printer

    Since updating to 10.5.7 I can't use my printer HP Photosmart 5200 Series. I tried reinstalling and it is there but leopard won't recognise it being there now. How do I uninstall 10.5.7 and go back to previous where my printer worked?