locked
How to get Microsoft.Crm.Asyncronous.AsyncExecutionContext RRS feed

  • Question

  • I'm getting Microsoft.Crm.Asyncronous.AsyncExecutionContext class in my context. I want RequestID from that AsyncExecutionContext.
    Dare to promise
    Monday, July 6, 2009 3:44 AM

Answers

  • Hi Deepak,

    I am sorry but i don't think we could access it from the IPluginExecutionContext's context, that class (AsyncExecutionContext) is being used internally and we don't have any public property of context to get it's reference !!

    Regards,
    Nishant Rana
    http://nishantrana.wordpress.com
    • Marked as answer by D-Virdi Tuesday, July 7, 2009 10:49 AM
    Tuesday, July 7, 2009 10:46 AM

All replies

  • Hi all,
    When I debug my plugin i got a Microsoft.Crm.Asyncronous.AsyncExecutionContext  under the context.
    There I found RequestId.
    But how to get that programatically..??
    I'm not getting any class , interface or nething like AsyncExecutionContext.
    Can anybody help me out??
    Dare to promise
    Monday, July 6, 2009 1:50 PM
  • Hi Deepak,

    Well to get Microsoft.Crm.Asynchronous.AsyncExecutionContext class you need to add reference to CrmAsynService.exe found at installationDir\Microsoft Dynamics CRM\Server\bin !

    But than again, adding references to it is neither recommended nor supported !!


    Regards,
    Nishant Rana
    http://nishantrana.wordpress.com
    Tuesday, July 7, 2009 6:13 AM
  • Thanks Nishant,
    Then how can I get the request Id.
    Microsoft.Crm.Asynchronous.AsyncExecutionContext.RequestId
    I want requestid for my Audit Log.

    Dare to promise
    Tuesday, July 7, 2009 10:34 AM
  • Hi Deepak,

    I am sorry but i don't think we could access it from the IPluginExecutionContext's context, that class (AsyncExecutionContext) is being used internally and we don't have any public property of context to get it's reference !!

    Regards,
    Nishant Rana
    http://nishantrana.wordpress.com
    • Marked as answer by D-Virdi Tuesday, July 7, 2009 10:49 AM
    Tuesday, July 7, 2009 10:46 AM