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.

DISCLAIMER

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 Adept 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



Comments

  • Silas_SulserSilas_Sulser Customer Adept 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

    Silas

  • Jeff_LangJeff_Lang Customer Adept 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 + "&cc=DPTI.ServiceManagerDev@sa.gov.au&subject=" + emailSubject;
      }
     )

  • Jeff_LangJeff_Lang Customer Adept 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 Adept 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 IT Monkey ✭
    @Silas_Sulser, we're having the same problem, just for the image.  Did you ever find a fix?
  • Karen_Bruster1Karen_Bruster1 Customer IT Monkey ✭

    Slightly off topic,

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

  • Jeff_LangJeff_Lang Customer Adept 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 ✭✭✭

    Hi

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

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


    regards

    Roland


Sign In or Register to comment.