locked
Fetching server date and time RRS feed

  • Question

  • Hi Andriy,

    The query is specific to you. 

    I want to fire the datetime plugin which you have provided on Retrive of some data for an entity?.

     

    i.e in java script onLoad event of page i will retrieve some simple data, and i would like to register your plugin on retrieve message and fire your plugin and fetch server date is it possible?.

     

    Why i want to do this way i have lot of Fetch xml in many pages which might fire this plug in unnecessarily.

    below i am also pasting your earlier answer

    Thanks and Regards

    Ravi


    The validation I've wrote in previous post works with local time.

    In the case you want to manipulate with server time you have 2 possibilities:

    1. Validate this datetime field on the server side using plugins in Pre-Mode and throw an exception in the case datetime is wrong.

    2. Get Server Date Time in some way. You can check how I did it for CRM 4.0 in following post - http://a33ik.blogspot.com/2009/08/how-to-retrieve-server-datetime-on.html

    Friday, October 14, 2011 6:38 AM

All replies