web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Plugins and Shared Variables

(0) ShareShare
ReportReport
Posted on by
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

 

*This post is locked for comments

I have the same question (0)
  • Kenny Vaes Profile Picture
    345 on at

    By SharedVariable do you mean the Optional Parameters?

    It is possible to add an optional parameter to the UpdateRequest. (UpdateRequest.OptionalParameters)
    When you now enter the plugin for the update it will contain this optional parameter is the context.

    I also believe you can put any datatype into this optional parameter.

    Hope this helps.

    Regards,

    Kenny

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans