Developing SharePoint Apps to work on both OnPremise and SharePoint Online

I have a requirement of developing SharePoint app which should work on both SharePoint online and SharePoint on premise. Is there any restriction on apps which might only work on one particular environment and not working on other. If there are scenarios
which app can only work on particular environment what are the limitations and scenarios.

When using the SharePoint Remote API (CSOM/JSOM/REST) and wanting your apps to be usable across platforms you must make sure to reference the correct version of Microsoft.SharePoint.Client and be careful not to utilize features only available in O365.
There are two version of the CSOM 15 and 16. The 16 version comes with VSTO and has some methods only available on O365, for example Web.GetFolderByID method. If you reference the 16 version and use this method everything will compile but will fail the minute
you make the call to SharePoint on-prem. You should also avoid using the new REST batch capabilities which are only available in O365. There is virtually no documentation on the differences between the versioned API's.
Blog | SharePoint Field Notes Dev Tools |
SPFastDeploy | SPRemoteAPIExplorer

Similar Messages

  • How to Build a Flex App that works with both SQLite and MySQL?

    Let me explain a bit: I am developing an app that will
    be published as an AIR application using SQLite, as well as a FLEX application that will use MyDSQL via web services.
    I want to develop both applications in such a way that all the components can be reused, and I only have to do minimal redevelopment. I have started witht the AIR application. Once I have it completed, I want to publish the application (with minimal redevelopment) as a FLEX web app.
    My thinking is that I contain the database accesses in the Application, and passing the data via interfaces to the respective modules, as well as receiving data from the modules back to the Application to be written to the database. This was the only changes between the FLEX and the AIR application will be how the database access is handled in the Application file, and I can leave all modules as is and will be able to maximize reusability,
    I haven't done this before, and was wondering what the best approach for this is?
    Thanks!

    It seems very difficult to find best practices on how to structure your database layer in FLEX. None of the books I have go into detail about it, nor do any of the websites I have found so far, including the Adobe Flex tutorials. Sure, they explain how to interact with databases, but don't seem to care about best practices for structuring your application.
    Can anyone point me in the right direction for this?
    Thanks!

  • Why do some of my apps only work ón my iphone and not ón my iPad ?

    Why do some of my apps only work ón my iphone and not ón my iPad ?

    That should work on the iPad. Basic app troubleshooting from Apples support site. Items 1, 2 & 3 should not apply to your situation, but I posted the link at the end if you want to read them.
    4. Restart the application
    If the issue affects only a single app, try closing just that app:
    Press the Home button to return to the Home screen.
    Double-tap the Home button to display recent apps.
    Tap and hold the affected app until the red minus appears.
    Tap the red minus to quit the app.
    Press the Home button, then restart the app.
    5. Restart your device
    Hold the Sleep/Wake button until "slide to power off" appears. Slide to power off your device. When it is off, press the Sleep/Wake button to turn it back on.
    6. Reinstall the affected application
    Remove the application from your device and reinstall it.
    Touch and hold any application icon on the Home Screen until the icons start to wiggle.
    Tap the "x" in the corner of the application you want to delete.
    Tap Delete to remove the application and all of its data from your device.
    Press the Home button.
    Go to the App Store.
    Search for the application and then download it again.
    Note: If it is a paid app, ensure you are using the iTunes account you purchased the app with originally. If it is not, you will be charged for the app again. For more information regarding downloading previously purchased items, see this article.
    7. If the issue is still unresolved
    If you continue to experience the issue, contact the developer of the application for further assistance.
    http://support.apple.com/kb/TS1702

  • I have an external drive - WD My Passport FOR MAC. I want to format it to work on both mac and windows. Which format do you think I should use? Will either one cause damage to the files on the hard drive?

    I have an external hard drive - WD My Passport FOR MAC. I want to format it to work on both mac and windows. I also want to be able to connect it to my TV and watch movies.
    I read up and I think I am supposed to use exFAT or FAT32? I also saw MS-DOS. Which format should I should use? Will any of them cause damage to the files on the hard drive?
    My little memory stick uses MS-DOS and it works on both mac and windows.
    Please can you just tell me a little about each and suggest which one to use.
    I know how to change it once you tell me so don't waste your time writing about changing it.

    Will any of them cause damage to the files on the hard drive?
    WARNING: FORMATTING A DRIVE ERASES IT COMPLETELY !!
    If you need to carry large files (e.g., larger than about 4GB) back and forth, you may need ExFAT. Otherwise MS-DOS works for smaller files.
    The Mac can Read, but not write Windows New Technology File System (NTFS) without an add-on program such as Paragon NTFS.

  • How come a USB will work with both Mac and Windows (as in that there are already files from Windows and Mac can still read and write onto it) but a external Hard Drive won't (as in there are files from Windows on there but Mac can read but not write)?

    I have a Seagate Drive that I'm hoping to copy some movies from my Mac onto (because it only has a 512 SSD and I'd rather keep that empty and handy for more readily needed files) but it won't work. It shows up as a drive when connected (with the orange USB drive icon popping up) and is appropirately labeled "FreeAgent Drive", but when I try to copy files onto it it won't work. There are already windows files on there, such as some windows backups and lot's and lot's of pictures and videos. However, I have several USBs which already have windows files on them (namely movies, music, and other stuff) and copying and stuff works fine. Why won't it work with this hard drive and would work with USBs? Please help me out here guys, I am not experienced with Hard disks and formatting and stuff like that. 10 points for whoever helps me out the most. Thanks.

    We will need to reformat your EXT, but it will then work on both Mac and Win
    Connect the drive to your Mac, open disk utility
    Go to the partiton tab and select '1' ... format should be ExFAT ... in options select MBR
    Format the drive
    It should now work on both OSs; report back

  • What external hard disk will work on both windows and mac?

    I need to buy a hard disk that will work in both mac and windows. i live in India and will buy it from ebay.in
    Can you please suggest a 2 TB hard drive (external)

    best options for the price, and high quality HD:
    Quality 1TB drives are $50 per TB on 3.5" or  $65 per TB on 2.5"
    Perfect 1TB for $68
    http://www.amazon.com/Toshiba-Canvio-Portable-Hard-Drive/dp/B005J7YA3W/ref=sr_1_ 1?ie=UTF8&qid=1379452568&sr=8-1&keywords=1tb+toshiba
    Nice 500gig for $50. ultraslim perfect for use with a notebook
    http://www.amazon.com/Toshiba-Canvio-Portable-External-Drive/dp/B009F1CXI2/ref=s r_1_1?s=electronics&ie=UTF8&qid=1377642728&sr=1-1&keywords=toshiba+slim+500gb
    2.5" USB portable High quality BEST FOR THE COST, Toshiba "tiny giant" 2TB drive (have several of them, LOT of storage in a SMALL package)    $117
    http://www.amazon.com/Toshiba-Canvio-Connect-Portable-HDTC720XK3C1/dp/B00CGUMS48 /ref=sr_1_4?s=electronics&ie=UTF8&qid=1379182740&sr=1-4&keywords=2tb+toshiba
    *This one is the BEST portable  external HD available that money can buy:
    HGST Touro Mobile 1TB USB 3.0 External Hard Drive $88
    http://www.amazon.com/HGST-Mobile-Portable-External-0S03559/dp/B009GE6JI8/ref=sr _1_1?ie=UTF8&qid=1383238934&sr=8-1&keywords=HGST+Touro+Mobile+Pro+1TB+USB+3.0+7 2 00+RPM
    Most storage experts agree on the Hitachi 2.5"
    Hitachi is the winner in hard drive reliability survey:
    Hitachi manufacturers the safest and most reliable hard drives, according to the Storelab study. Of the hundreds of Hitachi hard drives received, not a single one had failed due to manufacturing or design errors. Adding the highest average lifespans and the best relationship between failures and market share, Hitachi can be regarded as the winner.

  • Can I get 3g ipad service that would work in both UK and France?

    I have a 3G iPad 2.  I just returned from Canada, where I was able to buy a microSIM from a local Bell store, put it into the iPad, and then purchase a month's worth of 3G service.  It worked great, and was MUCH cheaper than using the AT&T international data roaming plan.  Now: I'm going to be in the UK and France in July, and would like to do the same sort of thing.  Ideally, I would do this once (in France, our first stop) and get a microSIM and service plan that would work in both France and the UK.  Is this possible, or would I have to do this twice -- once in France and once in the UK?  Orange offers service in both countries, but it's not clear to me that their service would work across country boundaries without becoming some sort of roaming thing.  Thanks!

    You can't.  There is no such cable. 
    B-rock

  • Which Iphone 5S model will work in both USA and Israel on LTE?

    Which IPhone 5S work in both USA and Israel with LTE? Is it the European or American model? GSM or CDMA?

    The issue is what channels would be used varries by nation to nation.  Since I have very limited access to Jordan and Egypt it really doesn't matter to the average Israeli company what will work there.  There is currently Orange's LTE in Israel which I read/hear conflicting information as to which LTE bands are being used.  Further then there is a new LTE slighted from Cellcom/Golan/Pelephone that I'm curious to see what bands they will be using.  From this information it would be possible to know which is the one to use for LTE.
    Realistically it would seem that getting a Verizon/Sprint would be the best route, in that you would have a working set for America, plus foreign bands for Europe and hopefully Israel.  Orange already sells the iPhone in Israel, but it doesn't indicate which model it uses.
    Since the iPhone in Israel is so much more expensive, it's still cheaper to buy in Israel and get serviced in the USA if need be.  But realistically these phones never really have problems that can't be solved so dificultly that I would worry about having to go back to the US. As from my understanding the warranties have to be honored globally.  Just as if I have a problem with my computer I don't have to go back to the US to get it fixed.

  • None of my apps are working - all say trial and some won't work at all! Why am I paying a monthly fee for this? Service stinks. Somebody needs to respond.

    None of my Creative Cloud apps are working. I have tried all online suggestions with no luck. I have client projects due, and can't complete them without these apps - that I PAY for! I need someone to respond. Is your support really so horrible?

    Link for Download & Install & Setup & Activation problems may help
    -Chat http://www.adobe.com/support/download-install/supportinfo/
    OR
    -Comodo Security kills download http://forums.adobe.com/thread/1460361?tstart=0
    -http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html
    -http://helpx.adobe.com/creative-cloud/kb/error-downloading-cc-apps.html
    -http://forums.adobe.com/community/download_install_setup
    -http://helpx.adobe.com/creative-cloud/kb/troubleshoot-cc-installation-download.html
    -http://helpx.adobe.com/x-productkb/global/errors-or-unexpected-behavior-websites.html
    -http://helpx.adobe.com/creative-cloud/kb/unknown-server-error-launching-cc.html
    -Server won't connect https://forums.adobe.com/thread/1233088
    -Enable Mac Root User https://forums.adobe.com/thread/1156604

  • Can QuickTime format a movie to work on both AppleTV and iPhone in 1 file?

    Is there a way to convert something in Quicktime that will work on both AppleTV and the iPhone (or anywhere else for that matter)? Or, do I need to convert it in two separate formats and have both of those files in iTunes?
    Thanks in advance.

    If you format it for the iPhone, it'll also work on the AppleTV. What you can't do is create a file using the high resolution mode of the AppleTV that will work on the iPhone.

  • Is there a way to get a creative cloud license that works with both Mac and PC platforms?

    Is there a way to get a creative cloud license that works with both Mac and PC platforms?

    Hi there
    A Creative Cloud membership gives you access to both the Mac & Win versions of the desktop applications.
    Please check the FAQ for more information: Creative Cloud Help | Creative Cloud / Common Questions
    Kind regards
    Bev

  • Every time I TRY to start firefox 18-19 I get an error message : Firefox has stopped working - close the program and check online for a solution - or - close ..

    Every time I TRY to start firefox 18-19 I get an error message : "Firefox has stopped working" - "close the program and check online for a solution" - or - "close the program" this happens TWICE every time I try to start firefox. Eventually after a random number of tries firefox will start normaly. I am useing firefox 19.0.2 now bit I belive it started when I upgraded to firefox 18 but am not sure, it might have been when I upgraded to firefox 19 ... but it has been happening for a very long time and I cannot find any helpfule solutions online.
    I have tried a Clean reinstall but it did not help.

    Hello,
    '''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * You can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''
    Thank you.

  • Every time I TRY to start firefox 18-19 I get an error message : Firefox has stopped working - close the program and check online for a solution - or - close th

    Every time I TRY to start firefox 18-19 I get an error message : "Firefox has stopped working" - "close the program and check online for a solution" - or - "close the program" this happens TWICE every time I try to start firefox. Eventually after a random number of tries firefox will start normaly. I am useing firefox 19.0.2 now bit I belive it started when I upgraded to firefox 18 but am not sure, it might have been when I upgraded to firefox 19 ... but it has been happening for a very long time and I cannot find any helpfule solutions online.

    Certain Firefox problems can be solved by performing a ''Clean reinstall''. This means you remove Firefox program files and then reinstall Firefox. Please follow these steps:
    '''Note:''' You might want to print these steps or view them in another browser.
    #Download the latest Desktop version of Firefox from http://www.mozilla.org and save the setup file to your computer.
    #After the download finishes, close all Firefox windows (click Exit from the Firefox or File menu).
    #Delete the Firefox installation folder, which is located in one of these locations, by default:
    #*'''Windows:'''
    #**C:\Program Files\Mozilla Firefox
    #**C:\Program Files (x86)\Mozilla Firefox
    #*'''Mac:''' Delete Firefox from the Applications folder.
    #*'''Linux:''' If you installed Firefox with the distro-based package manager, you should use the same way to uninstall it - see [[Installing Firefox on Linux]]. If you downloaded and installed the binary package from the [http://www.mozilla.org/firefox#desktop Firefox download page], simply remove the folder ''firefox'' in your home directory.
    #Now, go ahead and reinstall Firefox:
    ##Double-click the downloaded installation file and go through the steps of the installation wizard.
    ##Once the wizard is finished, choose to directly open Firefox after clicking the Finish button.
    Please report back to see if this helped you!

  • Is there a Calendar App that works with both Blackberry phones and Android phones ?

    I just recently got a Blackberry Z30 phone.  My husband has an LG Optimus G Android phone.  Does anyone know if there is a Calendar App that will work on both phones so that we can send appointments to each other that will load into our respective calendars?  Right now, we each have to enter the events into our individual phones. I love the Blackberry Calendar (RIM) that came preloaded on my phone since you can customize recurrences, e.g. every 3 weeks plus you can have day, week and month views.  I definitely want a calendar with the customizable recurrences feature, which my husband's Android Calendar App does not have. Thanks.
    Solved!
    Go to Solution.

    You Both can Add one email Account on Both Phones and then sync the Calender With Email - This way when one will add a reminder or event it will automatically synced to the other
    Regards Eree - Follow me on Twitter - Facebook - Google+
    For More visit My Blog

  • Can I use Visual Studio to develop Sharepoint Online workflows on existing site lists?

    I've been using Sharepoint Designer to develop workflows in Sharepoint 2013 on Office 365, but hitting limitations. I would like, for example, to be able to trigger a workflow when a list item is deleted.
    Perhaps naively I thought Visual Studio should be able to help. I've read of useful things like Remote Event Receivers - sounds exactly what I need. I've used VS before for Windows desktop applications in VB, so downloaded a trial version of VS 2013.
    Now I'm having doubts. It looks like I can create a Sharepoint App on a development site and create lists and workflows within it, but I can't access my existing lists to do anything more sophisticated than I already can in SPD. Is that right?
    I was expecting to be able to enter my Sharepoint site URL into Visual Studio somewhere, just like in SPD, and do wonderful things with my lists - but unless I'm missing something, that's not possible.
    Have I just got it completely wrong??!

    Hi,
    yes you can check those links
    http://blogs.msdn.com/b/bharatgupta/archive/2013/04/27/sharepoint-2013-app-workflow-with-custom-task-outcomes-in-o365.aspx
    https://msdn.microsoft.com/en-us/library/office/jj164126.aspx
    http://www.andrewconnell.com/blog/sharepoint-online-integrated-workflow-apps-workflows-as-apps-in-the-hostweb
    https://msdn.microsoft.com/en-US/library/jj220043.aspx
    Kind Regards,
    John Naguib
    Senior Consultant
    John Naguib Blog
    John Naguib Twitter
    Please remember to mark this as answered if it helped you

Maybe you are looking for