locked
Undocument $Context/Path RRS feed

  • Question

  • Is it possible to have a criteria as part of the undocumented $context variable notation so that specific item can achieved.

    For example,

    $Context/Path[Relationship='CustomSystem_WorkItem_Activity_Library!System.WorkItemContainsActivity' TypeConstraint='CustomSystem_WorkItem_Activity_Library!System.WorkItem.Activity.ReviewActivity']/Path[Relationship='CustomSystem_WorkItem_Activity_Library!System.ReviewActivityHasReviewer' TypeConstraint='CustomSystem_WorkItem_Activity_Library!System.Reviewer']/Path[Relationship='CustomSystem_WorkItem_Activity_Library!System.ReviewerIsUser' TypeConstraint='System!System.User']/Path[Relationship='CustomSystem_SupportingItem_Library!System.UserHasPreference' TypeConstraint='CustomSystem_Notifications_Library!System.Notification.Endpoint']/Property[Type='CustomSystem_Notifications_Library!System.Notification.Endpoint']/TargetAddress$
    returns: ServiceRequest->ReviewActivity->Reviews->IsUser->Email Address

    $context/Path.....NotifiationEndPoint returns both the SIP address and Email address to be used in notification template.

    We want to filter it so that only SMTP email address can be listed.

    Criteria though in another format,

                    <Criteria xmlns=""http://Microsoft.EnterpriseManagement.Core.Criteria/"">
                      <Reference Id=""System.Notifications.Library"" PublicKeyToken=""{0}"" Version=""{1}"" Alias=""NotifLib"" />
                      <Expression>
                        <And>
                          <Expression>
                            <SimpleExpression>
                              <ValueExpressionLeft>
                                <Property>$Target/Property[Type='NotifLib!System.Notification.Endpoint']/TargetAddress$</Property>
                              </ValueExpressionLeft>
                              <Operator>Equal</Operator>
                              <ValueExpressionRight>
                                <Value>foo@bar.com</Value>
                              </ValueExpressionRight>
                            </SimpleExpression>
                          </Expression>
                          <Expression>
                            <SimpleExpression>
                              <ValueExpressionLeft>
                                <Property>$Target/Property[Type='NotifLib!System.Notification.Endpoint']/ChannelName$</Property>
                              </ValueExpressionLeft>
                              <Operator>Equal</Operator>
                              <ValueExpressionRight>
                                <Value>SMTP</Value>
                              </ValueExpressionRight>
                            </SimpleExpression>
                          </Expression>
                        </And>
                      </Expression>
                    </Criteria>

    Objective is to specify the email address of that particular reviewer user in the notification email. Can this be somehow achieved by editing Notification template or subscription MP ?


    Shahid Roofi

    Wednesday, August 21, 2013 7:33 PM