Can we write client object model code with Server object model?

Hi everyone,
I have to create one timer job using client object model (C#) in Sharepoint 2010 template on feature activation. Is it possible to write the code of client object in sharepoint empty project to create timer job? If yes/no? then why?
Thanks in advance!!!

Hi ShindeK,
Yes you can used CSOM in Sharepoint but Timer jobs run directly on the server. The Client Side Object Model is a wrapper that brokers its calls to the server via the built in web services that SharePoint provides.
You will not get any performance gains in this scenario using CSOM. You should use the full server object model of SharePoint
SharePoint 2010 also has three Client Object Models (Managed, Silverlight, JavaScript) which are meant to be used by code accessing SharePoint remotely.
--You can also used powershell script in timer job
Chekc the link which cann help you step by step CSOM in Sharepoint timer job
http://www.youtube.com/watch?v=Z7wHj-bSk0g
You can also try the below link....
https://bramdejager.wordpress.com/2013/08/02/using-csom-and-powershell-to-query-sharepoint-online-or-on-premise/
http://stackoverflow.com/questions/3656920/run-sharepoint-timer-jobs-from-powershell
Please mark the Answer and Vote me if you think that it will help you to resolved your issue

Similar Messages

  • Can not set OARG.cstAllcAcc field value with CustomsGroups Object

    Can not set OARG.cstAllcAcc field value with CustomsGroups Object, please open this field in this Object because it is a key field related to financial system.

    I guess, it should work; instead of html:submit, try with button.

  • I bought a Apple Care Protection Plan for a Iphone 4, but now i dont need it. Can i keep it and use it with a new model Iphone (iphone 5 when it comes out) or are the protection plans generation specific

    I bought a Apple Care Protection Plan for a Iphone 4, but now i dont need it. Can i keep it and use it with a new model Iphone (iphone 5 when it comes out) or are the protection plans generation specific?

    See Here for
    Transfer coverage of an AppleCare agreement
    http://support.apple.com/kb/HE58

  • Use two streams to manager client video/audio,Can i combine streams and record it with server AS API

    Use two streams to manager client video/audio,Can i combine streams and record it with server AS API
    I tried Stream.play()
    var s=Stream.get("combine");
    s.play("video");
    s.play("audio",null,null,false);
    s.record("append");
    it's don't work!!

    Thanks, that's what I had thought. Our domain.com zone is sourced internally and replicated to our advertisers for external users, so there's no way to change the result for internal vs external users.
    This is a rudimentary question that I should already know but I sort of inherited this after it was built: Can I have users sign in with their email address ([email protected]) but under the hood, their SIP address is [email protected]? This would let users
    sign in with an address they expect, but it would take advantage of the the local lyncdiscoverinternal record.
    Thanks,
    Matt

  • Who has the book:Object-Oriented Programming with ABAP Objects

    Hello everyone
    Now i want to learn ABAP OO,and Lots' of guys told me that the book  Object-Oriented Programming with ABAP Objects is realy a good book.but i searched on the net,and could not got PDF of this book,could some one gave me the net address if you know where to download the book or send me to my Mailbox:<email id removed by moderator>,I will very glad to receive any response from you,
    of course,if you have some advise on how to learn ABAP OO or some other material ,hope you could share your meaning with me, hope to receive your response.
    Best regards!
    From Carl
    Moderator message : Moved to career center.
    Edited by: Vinod Kumar on Aug 27, 2011 9:21 AM

    I'm sure you're not asking for illegal, "free" downloads. You can legally purchase the book, also in electronic format, at sap-press.com
    Thomas

  • How can I write to an SD card with my iPad 3?

    How can I write to an SD card/thumb drive with my iPad 3?

    Sorry to post this question before realizing others already did. HOWEVER! Why would Apple make such a cool device like the iPad without the abiity to write to an SD card?

  • Acrobat XI Pro - How can I have clients sign pdf docs with stylus on my Tablet PC WITHOUT having to subscribe to signature services like EchoSign?

    I was told there was a "Setting" in XI Pro that would allow me to have clients sign pdf documents with a stylus on my Tablet PC (I have a MS Surface Pro 2), without having to sign up for EchoSign or any other electronic signature service. Is that correct? If so, what is the setup or settings?

    There are several third party plugins for Adobe Reader and Acrobat on the market, which allow to use the display of a tablet PCs as a capture device for handwritten signatures. Some of those plugins are enabling also the combination with real digital signatures without the need of any previous registration of the signatory.
    You can check for :
    SignDoc   by SoftPro
    SigPDF    by Signature Perfect

  • I can't write or access external HD with iMovie

    I've read that some have success and others have not. I am one of the others who have not.
    I'm recently new to iMovie and external HDs. I bought an external once I got iLife 08 so I can do some video editing. I want to have all my video on the external. That is no problem, I can easily transfer, but I can't write directly, or access my files from iMovie. I can import from external, but then it just creates an event on my boot drive and totally defeats the purpose of saving and working from the external.
    What is wrong? I can see the drive in iMovie, but it has a little exclamation mark on the icon. I can't find what the exclamation error means.
    I have an iMac, running to external via firewire, and the drive is FAT32. Do I need to reformat? Or does iMovie not allow direct write or editing from an external

    FAT32
    iMovie should not be used with a FAT32 disk; if you haven't put anything on the drive which you can't move off the drive and don't need to use it with a PC, you should use the Disk Utility in the /Applications/Utilities/ folder to reformat it to Mac OS Extended regardless of what you intend to use the drive for.
    (23692)

  • Open Toad Data Modeler diagram with SQL Data Modeler

    hi, I've made a diagram with TOAD Data Modeler in Windows. Now I'm working with Linux, so I need a portable application to work with. Oracle SQL Data Modeler seems to be the solution to my problems, but I can't open/import my TOAD's diagrams into SQL Data Modeler.
    Anyone knows how to do it?
    Thanks in advance,
    Neuquino
    Edited by: Neuquino2 on Nov 1, 2010 1:30 PM

    Hi Neuquino,
    there is no import from TOAD Data Modeler. You can generate DDL script with TOAD DM and import that script.
    Philip

  • EJB Client using https (SSL) with Server 8.1.3/8.1.4

    We have Swing client trying to use weblogic thin client to talk to weblogic server using https.
    If we try to use thin client wlclient.jar with https
    JAAS Authenticatio, lookups nothing works
    If we try to use weblogic.jar from client we need to use license.bea in classpath.
    How can we use thin client jar or equivalent without needing license.bea in client classpath?
    We tried to create our own thin client but without license.bea it doesn't work.
    Plesae give some suggestions or pointers. I have seen this raised many times but there is no conclusion on this topic.
    Thanks

    We have Swing client trying to use weblogic thin client to talk to weblogic server using https.
    If we try to use thin client wlclient.jar with https
    JAAS Authenticatio, lookups nothing works
    If we try to use weblogic.jar from client we need to use license.bea in classpath.
    How can we use thin client jar or equivalent without needing license.bea in client classpath?
    We tried to create our own thin client but without license.bea it doesn't work.
    Plesae give some suggestions or pointers. I have seen this raised many times but there is no conclusion on this topic.
    Thanks

  • ECC Client export and import with BW data model

    Dear BW Expert,
      We are now have BW QAS system which is connecting to ECC600QAS.
      Now we are going to:
         First  >> Export data ECC600QAS.
         Second Drop this client
         Third Create client with the same logical name as ECC600QAS and then import again with the same logical system name is ECC600QAS. Ofcourse we will re-establish again connection between ECC600QAS and BW QAS.
      In this case, do we need to create all data model or mapping data in BW again. Please help on this.
    Thanks and Regards,
    Kim Cheo.

    Hi Reddy,
      All your notes do not mention anything about in case Client refresh with the same logical name.
      Our case is that we do:
          Step 1:         Export client logical name is "ECC600QAS".
          Step 2:         Drop client "ECC600QAS"
          Step 3:         Import again and create the same client logical name "ECC600QAS".
          In this case do we need to create again all data model, mappying rule or transformation.
          Really, I can not found any idea there in all your note.
    Thanks and regards,
    Kim CheolYeon Lee.

  • Optimizing short code with XML objects

    Hi there!
    I'm trying to take into account the Garbage Collector (GC), so I decide to optimize this code:
    private function writeXMLtoModel(xmlData:XML):void{
    var listOne:XMLList = xmlData.node.children();
                for each(var xmlOne:XML in listOne){
                    var item: Object = new Object();  
                        item.one =  xmlOne.@one ;
                        item.two =  xmlOne.two ;
    For instance, is it useful to put "xmlOne = null" in every iteration?  I'm checking with the Flashdevelop's profiler, but I don't see the difference.
    maybe, I can also reuse the item object rather than creating it every time, right?
    Regards!

    everything you prefix with var inside a function body is local to the function during that function call.  ie, all those variables ( listOne and all the xmlOne and item) will be gc'd without you needing to do anything more.  (on the other hand, unless you have additional code, that function does nothing useful because no data can be obtained from it once it completes execution.)

  • Can't write in Pages 09 documents with Mavericks

    So I accidentally upgraded to Pages 5 on my ipad so then I had to install Mavericks and Pages 5 on my MacBook too (to allow syncing). Now Pages 5 is a complete disaster. It screws up all the lay-outs I created in 09 and doesn't allow me to create new ones as there are simply too many features missing. For instance, where did the blue lines do that tell you when an object is exactly in the middle of a page?! And dozens more.
    Now, here's the thing. I was smart enough to save a copy of Pages 09, so I can still use that (even if it doesn't sync with my ipad). However, when I create a new document in Pages 09, there is no way to type in it anymore. As in, no cursor and no option to place it in the document. When I start typing, I get that annoying sound that indicates I'm trying to type somewhere that doesn't allow typing. Which is the main function of a word processing programme, so it's really weird!
    Any suggestions?!!! I actually use Pages now and then as a professional, using it to create lay-outs for a publisher. So I am really dependent on the programme. I am also happy to hear suggestions for a different word processor! I used to love Pages, but now I'm just miserable.

    I guess there is one positive note. The new IOS Pages exports to .docx format.
    I have Pages ’09 v4.3 installed and upgraded OS X 10.8.5 to Mavericks. I have not installed Pages v5.0. I can open a new document, type at will, and save it.
    Have you tried launching Pages ’09 from another account on your Mac? This will determine whether it is an installation issue, or a configuration issue unique to your login account. You may benefit from pressing shift+command+U and then launching Disk Utility to verify/repair permissions on your boot drive.

  • HT5188 Can I use a 'gifted' app code with AC?

    I have an unused redemption code for an app that was gifted to me (the code was sent to me by a school administrator). Can I manually add this to Apple Configurator so that I can manage this app on our school iPads? I don't believe it was purchased through VPP, so it's not on a spread sheet that I can import to AC. It's a very expensive communication device app, so I need to be able to move the app between iPads as our students move through the school system. Thanks.

    By default, whenever you connect a supervised device to Apple Configurator, any apps which were installed on that device by a user will be deleted.
    With Apple Configurator v1.1 or later, you can change this setting in Preferences, under the Apple Configurator menu. http://support.apple.com/kb/HT5203
    So, if you install the app as a "user" using whatever apple id you would normally use to install a standalone app, you can change the preferences setting in .1.1.  You would not use Configurator to install the app but add it manually  to the device being used by the student or group of students in question.  Given that you only have one code you could not legally place it on multiple devices anyway so there is no point in  loading it through Configurator.

  • Why can't I group a Media Placeholder with another object anymore?

    In the previous Keynote, I was able to set an image as a Media Placeholder and then add another object or image and group them together. This was handy as I create themes for my agency to use to make it easy to display a variety of iPhone design mock-ups in device (without needing to constantly arrange so the mock-up fits perfectly inside the screen).
    In the new Keynote (for Maverics) I can't do this anymore : [
    Also, I noticed I can't group text with any other object anymore either. Seems like a step back to me.
    Is there any way around this? Or a way to submit to Apple for consideration to bring the feature back?

    Hi cartoonfox,
    Thanks for using Apple Support Communities.  Here are instructions for grouping together items such as media placeholders, shapes, text boxes, etc:
    Layer, group, and lock objects - Keynote Help for Mac
    https://help.apple.com/keynote/mac/6.0/#/tan003ee8980
    Group objects
    You can group multiple objects so you can move, resize, or rotate them as a single unit.
    Shift-click to select multiple objects, then Control-click anywhere on the slide, and choose Group.
    Cheers,
    - Ari

Maybe you are looking for