locked
Plugin development RRS feed

  • Question

  • Hi all,

    I have three fields on [Customer equipment-Entity Record] shutdown start time,shutdown end time and Unitstatus(Optionset with 2Values-Shutdown and Service).Now if I choose the val of unitstatus as shutdown I want to update the shutdownstart time field With current sysdate and time if I choose service as unit status value I want to update shutdown end time field value

    Thanks



    Tuesday, December 1, 2015 7:43 PM

All replies

  • Hi,

    Check the property bag for unitstatus and set the dates accordingly. What date and time you should set, now that's another story, but if you just use new DateTime() you should get the current date.

    **Edit** you should be able to do this with a synchronous workflow too, which is easier if you haven't coded plugins Before.

    Regards


    Rickard Norström Developer CRM-Konsulterna
    http://www.crmkonsulterna.se
    Swedish Dynamics CRM Forum: http://www.crmforum.se
    My Blog: http://rickardnorstrom.blogspot.se


    Tuesday, December 8, 2015 2:10 PM