|
|
|
date: Sun, 24 Aug 2008 10:52:03 -0700,
group: microsoft.public.crm.developer
back
Plugins and SharedVariables
I am trying to pass a SharedVariable from one plugin to another, but am not
having any luck. I have the following two plugins:
CaseCreate : Registered on Incident Create as Synchronous, Post Stage, Parent
CaseUpdate: Registered on Incident Update as Synrchonous, Post Stage, Child
In the CaseCreate, I add a shared variable and update the case. This
triggers the CaseUpdate, but the SharedVariable doesn't exist in the context
in CaseUpdate.
Also, the context in the CaseUpdate does have a ParentContext, but the
MessageName is "Update" in Parent. I thought it would be "Create", since the
CreateCase was the parent that triggered the update. And the SharedVariable
isn't in parent either.
I am using CreateCrmService in parent and generating my own proxy in the
child, based on documentation in sdk. The plug-ins do fire correctly.
Is it possible to pass a SharedVariable in this scenario? Any help is
appreciated.
Thanks,
John
date: Sun, 24 Aug 2008 10:52:03 -0700
author: JohnH
RE: Plugins and SharedVariables
The way you would like to use the ShareVariables is not how they work. The
sharedvariables collection is only available the current execution pipeline.
That means that you can add a variable in a pre-update plugin and retrieve
this in the post-update for the same update.
You are attempting to pass your variable to a new execution pipeline. The
only method to pass information to another plugin is to use the parameters on
the request object.
--
Patrick Verbeeten (MCPD)
Lead Developer
Aviva IT
Tools for CRM Developers and Administrators
http://www.patrickverbeeten.com/Tools.aspx
"JohnH" wrote:
> I am trying to pass a SharedVariable from one plugin to another, but am not
> having any luck. I have the following two plugins:
>
> CaseCreate : Registered on Incident Create as Synchronous, Post Stage, Parent
> CaseUpdate: Registered on Incident Update as Synrchonous, Post Stage, Child
>
> In the CaseCreate, I add a shared variable and update the case. This
> triggers the CaseUpdate, but the SharedVariable doesn't exist in the context
> in CaseUpdate.
>
> Also, the context in the CaseUpdate does have a ParentContext, but the
> MessageName is "Update" in Parent. I thought it would be "Create", since the
> CreateCase was the parent that triggered the update. And the SharedVariable
> isn't in parent either.
>
> I am using CreateCrmService in parent and generating my own proxy in the
> child, based on documentation in sdk. The plug-ins do fire correctly.
>
> Is it possible to pass a SharedVariable in this scenario? Any help is
> appreciated.
>
> Thanks,
> John
>
>
>
>
date: Tue, 26 Aug 2008 08:21:02 -0700
author: Patrick
|
|