none
Hyperlink to Custom Resource in Email Template RRS feed

  • Question

  • Hello,

    I've created a custom resource in MIM 2106 which I want to hyperlink in an Email notification.  The only way I can get it to work is to open one of the created resources and copy its URL to the clipboard and then paste this into the html.  So the html looks like <a href="https://blah.blah/identitymanagement/aspx/common/GlobalSearchResult.aspx?searchtype=1234-abcd-etc&popupFromClipboard=https%3A%2F%2Fblah.blah%2Faspx%2Fcustomized%2FEditCustomizedObject.aspx%3Fid%3D[//Target/ObjectID]%26type=%3DApples%26display%3DApples+Bananas+Pears">[//Target]</a>

    I've tried using javascript:PopupPage and a few other variations but the above html is the only way I can get it to work.  It's ugly and would prefer a cleaner method if possible.

    TIA

    Rob

    Thursday, March 22, 2018 10:39 AM

All replies

  • Hi Rob,

    What I tend to do is work out what I want the URL to look like by copying the above, and editing it in Notepad to the shorter version I want.  I then test it in the browser to confirm it works, before adding it to the email template with the parameters.

    • https://portalurl/identitymanagement/aspx/customized/EditCustomizedObject.aspx?id={ObjectID}&type={ObjectTypeName}

    If I don't want to display the full URL,  you can also put some text inside the URL attributes, and it will not display the full URL.

    • <a href={Link}>Click Here</A>

    Their was also an issue in one of the releases of MIM 2016 with the copy url feature, so I would suggest looking at getting the latest MIM SP1 hotfix installed as well, which might make things a little easier.

    Hope this helps,

    Ian

    Friday, March 23, 2018 9:47 AM