Link in Review Activity not working
A review activity has been assigned to you.
<p>
To see the details of this request, please visit the <a href="http://mysupport.mycompany.com/ServiceRequest/Edit/$Context/Property[Type='CustomSystem_WorkItem_Library!System.WorkItem']/Id$">mySupport Portal</a>.
<p />
Best Answer
-
David_Morris1 Member Advanced IT Monkey ✭✭✭Hi,
if the notification template is targeting the RA rather than the SR you need to change the /ServiceRequest/ in the link to /Activity/ this will take the user directly to the RA within the SR
A review activity has been assigned to you.
<p>
To see the details of this request, please visit the <a href="http://mysupport.mycompany.com/Activity/Edit/$Context/Property[Type='CustomSystem_WorkItem_Library!System.WorkItem']/Id$">mySupport Portal</a>.
<p />
6
Answers
It looks like you are passing in the Id of the RA not of its parent SR. You need to find the WorkItemContainsActivity Relationship and get the ID of the parent SR from within that.
Geoff
To see the details of this request, please visit the <a href="http://mysupport.mycompany.com/ServiceRequest/Edit/$Context/Path[Relationship='CustomSystem_WorkItem_Activity_Library!System.WorkItemContainsActivity' SeedRole='Target' TypeConstraint='ServiceRequest!System.WorkItem.ServiceRequest']/Property[Type='CustomSystem_WorkItem_Library!System.WorkItem']/Id$$Context/Path[Relationship='CustomSystem_WorkItem_Activity_Library!System.WorkItemContainsActivity' SeedRole='Target' TypeConstraint='CustomSystem_WorkItem_Library!System.WorkItem']/Path[Relationship='CustomSystem_WorkItem_Activity_Library!System.WorkItemContainsActivity' SeedRole='Target' TypeConstraint='ServiceRequest!System.WorkItem.ServiceRequest']/Property[Type='CustomSystem_WorkItem_Library!System.WorkItem']/Id$$Context/Path[Relationship='CustomSystem_WorkItem_Activity_Library!System.WorkItemContainsActivity' SeedRole='Target' TypeConstraint='CustomSystem_WorkItem_Library!System.WorkItem']/Path[Relationship='CustomSystem_WorkItem_Activity_Library!System.WorkItemContainsActivity' SeedRole='Target' TypeConstraint='CustomSystem_WorkItem_Library!System.WorkItem']/Path[Relationship='CustomSystem_WorkItem_Activity_Library!System.WorkItemContainsActivity' SeedRole='Target' TypeConstraint='ServiceRequest!System.WorkItem.ServiceRequest']/Property[Type='CustomSystem_WorkItem_Library!System.WorkItem']/Id$$Context/Path[Relationship='CustomSystem_WorkItem_Activity_Library!System.WorkItemContainsActivity' SeedRole='Target' TypeConstraint='ChangeRequest!System.WorkItem.ChangeRequest']/Property[Type='CustomSystem_WorkItem_Library!System.WorkItem']/Id$$Context/Path[Relationship='CustomSystem_WorkItem_Activity_Library!System.WorkItemContainsActivity' SeedRole='Target' TypeConstraint='CustomSystem_WorkItem_Library!System.WorkItem']/Path[Relationship='CustomSystem_WorkItem_Activity_Library!System.WorkItemContainsActivity' SeedRole='Target' TypeConstraint='ChangeRequest!System.WorkItem.ChangeRequest']/Property[Type='CustomSystem_WorkItem_Library!System.WorkItem']/Id$$Context/Path[Relationship='CustomSystem_WorkItem_Activity_Library!System.WorkItemContainsActivity' SeedRole='Target' TypeConstraint='CustomSystem_WorkItem_Library!System.WorkItem']/Path[Relationship='CustomSystem_WorkItem_Activity_Library!System.WorkItemContainsActivity' SeedRole='Target' TypeConstraint='CustomSystem_WorkItem_Library!System.WorkItem']/Path[Relationship='CustomSystem_WorkItem_Activity_Library!System.WorkItemContainsActivity' SeedRole='Target' TypeConstraint='ChangeRequest!System.WorkItem.ChangeRequest']/Property[Type='CustomSystem_WorkItem_Library!System.WorkItem']/Id$?activityId=$Context/Property[Type='CustomSystem_WorkItem_Library!System.WorkItem']/Id$&tab=activity">mySupport Portal</a>.
if the notification template is targeting the RA rather than the SR you need to change the /ServiceRequest/ in the link to /Activity/ this will take the user directly to the RA within the SR
A review activity has been assigned to you.
<p>
To see the details of this request, please visit the <a href="http://mysupport.mycompany.com/Activity/Edit/$Context/Property[Type='CustomSystem_WorkItem_Library!System.WorkItem']/Id$">mySupport Portal</a>.
<p />