I have a triggered action that sends a notification when a person or team has been assigned a task.assignment. It uses a link to allow people to jump to the Parent Record.
It worked great when those were just coming from Incidents and Service Requests, but we've implemented Knowledge management, and are using 3 knowledge subtypes. FRS_Knowledge.Document, FRS_Knowledge.IssueResolution, and FRS_Knowledge.QandA.
The variable ParentLinkCategory returns the whole subtype, but the link will only work if it's just set as FRS_Knowledge
Here's the HTML:
<tr><td>Parent ID:</td><td><a href="$(ServerURL())/Login.aspx?Scope=ObjectWorkspace&CommandId=Search&ObjectType=$(ParentLink_Category)%23&CommandData=RecId,%3D,0,$(ParentLink_RecID),string,AND|#">$(ParentObjectDisplayID)</a></td></tr>
I've tried putting a subexpression in to substring ParentLink category by find ".", and that works for Knowledge, but breaks SR and Incident.
If I put an IF statement in, it tells me that subexpressions aren't permitted.