locked
Add link to knowledge document in notification template RRS feed

  • Question

  • Hi

    My customer want to have a link to knowledge document in the resolved email to the enduser. I have made a template that the enduser get when status is resolved, but I can not find out how to add a link to the knowledge document I have added to the incident.

    Does any one how to fix this

     

    Thanks

     

    Jon

     

    Friday, December 3, 2010 12:57 PM

Answers

  • https://portal/EndUser/KnowledgeArticleDetails.aspx?Id=$Context/Path[Relationship='CustomSystem_Knowledge_Library!System.EntityLinksToKnowledgeDocument' TypeConstraint='CustomSystem_Knowledge_Library!System.Knowledge.Article']$?$Id$?

    or for HTML:

    <a href='https://portal/EndUser/KnowledgeArticleDetails.aspx?Id=$Context/Path[Relationship='CustomSystem_Knowledge_Library!System.EntityLinksToKnowledgeDocument' TypeConstraint='CustomSystem_Knowledge_Library!System.Knowledge.Article']$?$Id$?'>$Context/Path[Relationship='CustomSystem_Knowledge_Library!System.EntityLinksToKnowledgeDocument' TypeConstraint='CustomSystem_Knowledge_Library!System.Knowledge.Article']/Property[Type='CustomSystem_Knowledge_Library!System.Knowledge.Article']/Title$</a>

    replace CustomSystem_Knowledge_Library! to your real MP reference. You can saw it in template editor by:

    1. Press Insert... button
    2. Select "Is related to configuration item" in left
    3. Scrol down to "Knowledge Article" group and select any field (for example Title)
    4. Press Add

    After that you must get some like this:
    $Context/Path[Relationship='CustomSystem_WorkItem_Library!System.WorkItemRelatesToConfigItem' TypeConstraint='CustomSystem_Knowledge_Library!System.Knowledge.Article']/Property[Type='CustomSystem_Knowledge_Library!System.Knowledge.Article']/Title$

    Copy marked text to template above.

    Also note. If you have several KA in one incident you can use <group> tag like this:

    <group>
    https://portal/EndUser/KnowledgeArticleDetails.aspx?Id=$Context/Path[Relationship='CustomSystem_Knowledge_Library!System.EntityLinksToKnowledgeDocument' TypeConstraint='CustomSystem_Knowledge_Library!System.Knowledge.Article']$?$Id$?
    </group>

    http://opsmgr.ru
    • Marked as answer by Jon R. Berg Monday, December 6, 2010 8:39 AM
    Saturday, December 4, 2010 10:02 PM

All replies

  • https://portal/EndUser/KnowledgeArticleDetails.aspx?Id=$Context/Path[Relationship='CustomSystem_Knowledge_Library!System.EntityLinksToKnowledgeDocument' TypeConstraint='CustomSystem_Knowledge_Library!System.Knowledge.Article']$?$Id$?

    or for HTML:

    <a href='https://portal/EndUser/KnowledgeArticleDetails.aspx?Id=$Context/Path[Relationship='CustomSystem_Knowledge_Library!System.EntityLinksToKnowledgeDocument' TypeConstraint='CustomSystem_Knowledge_Library!System.Knowledge.Article']$?$Id$?'>$Context/Path[Relationship='CustomSystem_Knowledge_Library!System.EntityLinksToKnowledgeDocument' TypeConstraint='CustomSystem_Knowledge_Library!System.Knowledge.Article']/Property[Type='CustomSystem_Knowledge_Library!System.Knowledge.Article']/Title$</a>

    replace CustomSystem_Knowledge_Library! to your real MP reference. You can saw it in template editor by:

    1. Press Insert... button
    2. Select "Is related to configuration item" in left
    3. Scrol down to "Knowledge Article" group and select any field (for example Title)
    4. Press Add

    After that you must get some like this:
    $Context/Path[Relationship='CustomSystem_WorkItem_Library!System.WorkItemRelatesToConfigItem' TypeConstraint='CustomSystem_Knowledge_Library!System.Knowledge.Article']/Property[Type='CustomSystem_Knowledge_Library!System.Knowledge.Article']/Title$

    Copy marked text to template above.

    Also note. If you have several KA in one incident you can use <group> tag like this:

    <group>
    https://portal/EndUser/KnowledgeArticleDetails.aspx?Id=$Context/Path[Relationship='CustomSystem_Knowledge_Library!System.EntityLinksToKnowledgeDocument' TypeConstraint='CustomSystem_Knowledge_Library!System.Knowledge.Article']$?$Id$?
    </group>

    http://opsmgr.ru
    • Marked as answer by Jon R. Berg Monday, December 6, 2010 8:39 AM
    Saturday, December 4, 2010 10:02 PM
  • Hi

     

    Great, thanks for this.

     

    Regards

     

    Jon

     

    Monday, December 6, 2010 8:40 AM
  • This is a helpful answer, thank you - this is exactly what I'm trying to do.  Unfortunately, my results for all of the "Is Related to Configuration Item" related class are coming back blank.

    here is the substitution string I get when selecting Insert > Is Related to Configuration Item > Knowledge Article > Title :

    $Context/Path[Relationship='CustomSystem_WorkItem_Library!System.WorkItemRelatesToConfigItem' TypeConstraint='CustomSystem_Knowledge_Library!System.Knowledge.Article']/Property[Type='CustomSystem_Knowledge_Library!System.Knowledge.Article']/Title$

    none of the items under "Is Related to Configuration Item" seem to be pulling any data.  I have tested with other classes such as incident title, affected user, etc. and they do seem to be working.

    What can I do to troubleshoot this issue?

    Thank you,

    Dan Wheeler
    Sr. Systems Engineer, msnbc.com

    Thursday, April 7, 2011 11:58 PM
  • I'm having trouble with the <group> tag.  I'm not exactly sure what its supposed do so I dont know if its working or not.

    heres what I have in my template:

    <group>
    https://msnbc-help/EndUser/KnowledgeArticleDetails.aspx?Id=$Context/Path[Relationship='CustomSystem_Knowledge_Library!System.EntityLinksToKnowledgeDocument' TypeConstraint='CustomSystem_Knowledge_Library!System.Knowledge.Article']$?$Id$?
    </group>

    and here's what I get in the email:

    https://msnbc-help/EndUser/KnowledgeArticleDetails.aspx?Id={2c6c78f6-ad41-ed93-ea3a-0318471cba38}; {1d8dc63c-eb92-d605-20a8-8a391a92a747}; {af5e6107-bba4-c24e-0614-b34838376ae7}

    Monday, April 18, 2011 6:10 PM