locked
How to identify Action / operation is triggered from CRM FORM Ui or SDk code( OOther Plugin code) in mscrm 2013? RRS feed

  • Question

  • How to identify Action / operation is triggered from CRM FORM Ui or SDk code( OOther Plugin code) in mscrm 2013?

    Req: user is not allowed to deactivate record with specific status reason  but some jobs running daily will Deactivate this record with this specific status reason using SDK code. 

    So we need to write a pluing on set staus message and if we are able to identify the trigger is come from CRM Form UI , then we can validate the availabe status reason for the user and  show respective error message.

    Please help on this 


    hari ________________________________________________________ If this post answers your question, please click "Mark As Answer" on the post and "Vote as Helpful"

    Saturday, May 31, 2014 3:53 AM

All replies

  • Why don't you check the status in your Job itself which is running and written using SDK ?

    Vilas Magar http://microsoftcrmworld.blogspot.com/

    Saturday, May 31, 2014 8:04 AM
  • You can acheive this by running daily jobs under a seperate user. When you run the job check the user if it is specific use than execute. For all other users use javascript to allow/disallow them to change status.

    Regards Faisal

    Monday, June 2, 2014 9:20 AM
  • You can check CallerOrigin property inside your plugin.

    Please refer following post for your reference:

    http://a33ik.blogspot.ae/2012/06/callerorigin-in-plugins.html


    Hope this helps. If you get answer of your question, please mark the response as an answer and vote as helpful !!!
    Vikram Singh. !!!  My Blog

    Monday, June 2, 2014 9:52 AM