Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static Boolean IsInternalParentAssign(IPluginExecutionContext context)
- {
- Boolean result = false;
- if (context.ParentContext != null)
- {
- IPluginExecutionContext parentContext = context.ParentContext;
- if (parentContext.MessageName == "Assign"
- && context.Depth == 1
- && parentContext.PrimaryEntityId != context.PrimaryEntityId)
- {
- result = true;
- }
- }
- return result;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement