Home Community Uploads

Cireson Partners, Customers and Community members share your customizations and examples here to help benefit the community as a whole to earn Kudos and badges.


All files and projects located here are provided and come "as-is" and without any warranty or support. Use at your own risk. Your use of Community Uploads is subject to our Terms of Use.

Cireson does not and will not support or maintain these enhancements, extensions, and scripts.

For Team Cireson uploads click here.

Display Customer Information and image from EWS below User Name

Jeff_LangJeff_Lang Customer Ninja IT Monkey ✭✭✭✭
This is a Modified version of a file I got from @Adrian_Paech (he just gave the ok to upload it :))

Basically it displays information below the Affected User on both Incidents and Service Requests. it can be modified to work with any other user pickers added to a form as well (eg as shown in the image below we have a Primary contact that this also shows below when the prepHelpBlock is called for it as well.

just include in your custom.js, and in the attached file search for "EWSServerName" and update the variable with the address for your ews server (do not include the https:// or anything after the domain name)

it can be modified easily to show other information or remove what it currently shows


  • Silas_SulserSilas_Sulser Customer Advanced IT Monkey ✭✭✭

    Hey Jeff, many many thanks for sharing that great solution, it works like a charm!

     One strange thing is remaining in our environment: to get the EWS photo it asks for credentials like

    As soon as the credentials are entered, everything works fine.

    Is that a federation problem?

    Thanks and best regards


  • Jeff_LangJeff_Lang Customer Ninja IT Monkey ✭✭✭✭
    @Silas_Sulser Not sure why you are being asked for the logon for EWS, we are running it here and it only fails if they have not restarted their pc for a week or more, but it does not ask for logon then, just rejects anonymous logons.

    May be worth talking to your exchange expert on that one
  • Thomas_GahleitnerThomas_Gahleitner Customer IT Monkey ✭

    @Jeff_Lang Thank you for sharing! :) .. just a side note - your email adress is still written in the cc-field.

    You may get a few unintentional love letters ;-)

    $("label[for='" + userPickerId + "']").parent().on("click", "a", function(e)
       var mailLink = e.target.href;
       var irTitle = (pageForm.viewModel.Title) ? encodeURIComponent(pageForm.viewModel.Title) : "";
       var emailSubject = "[" + pageForm.viewModel.Id + "] " + irTitle;
       var irDesc = (pageForm.viewModel.Description) ? encodeURIComponent(pageForm.viewModel.Description) : "";
       e.currentTarget.href = mailLink + "&[email protected]&subject=" + emailSubject;

  • Jeff_LangJeff_Lang Customer Ninja IT Monkey ✭✭✭✭
    heh i missed that one, anything sent from outside will get ignored completely anyway :)

    worthwhile for anyone using this to also update that, we have that in there so that anything sent this way also gets added to the workitem in scsm
  • Jeff_LangJeff_Lang Customer Ninja IT Monkey ✭✭✭✭
    heres an updated copy with that email address removed, and a new variable added called ccemail, to have it cc another email just add the email address to the variable
  • Brian_WinterBrian_Winter Customer Advanced IT Monkey ✭✭✭
    @Silas_Sulser, we're having the same problem, just for the image.  Did you ever find a fix?
  • Karen_Bruster1Karen_Bruster1 Member IT Monkey ✭

    Slightly off topic,

    @Jeff_Lang How did you get those lovely red numbers on hour navigation bar?

  • Jeff_LangJeff_Lang Customer Ninja IT Monkey ✭✭✭✭
    @Karen_Bruster1 that is done via the custom work item badges script uploaded by @Martin_Blomgren , the latest version of which can be found at https://community.cireson.com/discussion/comment/9753#Comment_9753
  • Roland_KindRoland_Kind Partner Advanced IT Monkey ✭✭✭


    regarding the logon window - which version of Exchange your are using ?

    (Exchange 2013 / 2016 on premise or MS Cloud Solutions ?)



  • Silas_SulserSilas_Sulser Customer Advanced IT Monkey ✭✭✭
    @Silas_Sulser, we're having the same problem, just for the image.  Did you ever find a fix?
    Hi @Brian_Winter We unfortunately didnt find any fix for that authentication problem.
    @Jeff_Lang: which authentication methods did you select for your EWS?

    This is a screenshot of our environment:

  • Jeff_LangJeff_Lang Customer Ninja IT Monkey ✭✭✭✭
    @Silas_Sulser our exchange is handled by a 3rd party provider, all we do is call the URL
  • Roland_KindRoland_Kind Partner Advanced IT Monkey ✭✭✭


    for a better problem solution - it might be helpful if you press F12 (on IE or EDGE) to go into the developer view. maybe you can see some errors on the "network" window if tracing is enabled.

    This can be helpful for further analyses :-)



  • Steve_ClarkeSteve_Clarke Customer Adept IT Monkey ✭✭
    Hi All,

    This is a great script, although one thing we have noticed is that it only intermittently loads the user data. I suspect this is a timing thing. @Martin_Blomgren fixed a similar issue with a mutation observer for the badges customisation here: https://community.cireson.com/discussion/comment/9753#Comment_9753.

    I think this script might need a similar fix in order to reliably load the user data...

  • Jeff_LandersJeff_Landers Customer IT Monkey ✭
    Jeff Lang or anyone else.  We would love to be able to recreate the layout of the landing page for the DPTI portal.  We have a Cireson consultant helping us but it would take a lot of time/effort to recreate that beautiful page.  Is that css code available?  Jeff Landers
  • Michael_McAllisterMichael_McAllister Customer IT Monkey ✭
    @Jeff_Landers We did something similar here, though not sure if it's the same thing it allows us to put an image in the top left corner. Just put the code below into your 'custom.css' located in \inetpub\CiresonPortal\CustomSpace.

    We just put it in a folder called Logo inside the customspace. It must be in a location accessible to everyone from a browser. We had to mess around with the spacing to get it quite right. Feel free to try different settings, but this worked best for us and allowed us to still have the text in addition to the picture (though my OCD still thinks it looks off).

    .headerContent { 
     background: url("/CustomSpace/Logo/**IMAGENAME**") no-repeat 0 0;
     background-size: 75px;
     padding-left: 75px;

  • Brad_ZimaBrad_Zima Member Advanced IT Monkey ✭✭✭

    @Jeff_Lang I have noticed this no longer formats correctly with the latest versions of the portal. Are there any plans to update it, or should I just remove it altogether?

  • Jason_MeyerJason_Meyer Customer Advanced IT Monkey ✭✭✭

    Just FYI, this customization appears to be broken in version 11.0.4. Anyone else seeing this?

  • Brad_ZimaBrad_Zima Member Advanced IT Monkey ✭✭✭

    Yes, I have the issue as well, it appears the person icon for the Teams chat button has thrown the page layout off. I did a little poking with it but my JS and CSS weren't strong enough so I disabled the extension altogether.

  • Justin_WorkmanJustin_Workman Cireson Support Super IT Monkey ✭✭✭✭✭

    Hi All. I updated this to be compatible with 11.x.

  • Brad_ZimaBrad_Zima Member Advanced IT Monkey ✭✭✭

    Thanks Justin, I will give it a try in our Dev environment today!

  • Brad_ZimaBrad_Zima Member Advanced IT Monkey ✭✭✭

    Also a quick question, if I wanted to remove the "Alternate Contact Method" box from the IR form and replace it with this addon, what would I need to change in the JS file?

  • Brad_ZimaBrad_Zima Member Advanced IT Monkey ✭✭✭

    @Justin_Workman I noticed this add on seems to clobber the Affected Users Tickets add on, is there a way to get both of them to display? I don't mind if one is above or below the other.

  • Jason_MeyerJason_Meyer Customer Advanced IT Monkey ✭✭✭

    Thanks Justin, appears to have fixed it for us.

  • Kevin_GoodwinKevin_Goodwin Customer Advanced IT Monkey ✭✭✭

    I have been trying to find my EWSServerName but can't seem to find it. We are hybrid with Exchange right now and all of our mailboxes are at O365, but all I see as an option:


    This would seem to require a login to get to the correct information, and I don't know how that would work.

  • Micka_WilliamsMicka_Williams Customer IT Monkey ✭
    edited June 2022

  • Simon_ZeinhoferSimon_Zeinhofer Customer Advanced IT Monkey ✭✭✭

    We also run a hybrid config, but I was able to use our Exchange Online Server, without being prompted for a login. Maybe speak to your infrastructure guys, they should give you the right server for that config - I got my server from them ;)

    In order to get the Mail Subject and CC address to the mail, when I click on the address I had to change the code inside the UpdateHelpBlock to the following:

    if (typeof obj.Email)


    var irTitle = (pageForm.viewModel.Title) ? encodeURIComponent(pageForm.viewModel.Title) : "";

    var emailSubject = "[" + pageForm.viewModel.Id + "] " + irTitle;

    var emailTo = obj.Email;


    strEmailLink = "<a href='mailto:" + emailTo + "?cc=" + emailCC + "&subject=" + emailSubject + "'>" + emailTo + "</a>";

    $("#" + userPickerId + "_Email").html(strEmailLink);

    $("#" + userPickerId + "_IMG").html("<img src='https://" + EWSServerName + "/EWS/Exchange.asmx/s/GetUserPhoto?email=" + emailTo + "&size=HR96x96'>");


    @Justin_Workman Thank you for the update :) Is there any solution for the Affected User Tickets no longer being shown when the Block is used?

Sign In or Register to comment.