tag:blogger.com,1999:blog-3323891144353318207.post3966734443929205078..comments2024-03-13T08:04:46.236-04:00Comments on SteveMann's Path: SharePoint 2013 Search: Adding Managed Properties to Display TemplatesSteve Mannhttp://www.blogger.com/profile/07380496759963407882noreply@blogger.comBlogger37125tag:blogger.com,1999:blog-3323891144353318207.post-7704999063363947092017-05-09T14:25:10.076-04:002017-05-09T14:25:10.076-04:00Hi Steve,
I am trying to figure out how I can add...Hi Steve,<br /><br />I am trying to figure out how I can add properties to the JSON that gets returned when a user searches. I have created three managed properties and they are retrievable. <br /><br />What I am trying to do is get the JSON in the control template process that JSON with a custom function and then display the results. <br /><br />In order for me to process the JSON I need three additional properties for each item returned. I can't seem to figure out how to have search add the additional properties to the returned JSON. <br /><br />Is this even possible? <br /><br />Thanks in advance.<br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3323891144353318207.post-14375540266243578992017-02-03T14:20:04.425-05:002017-02-03T14:20:04.425-05:00CTX Current Item does not show a property called O...CTX Current Item does not show a property called Office nor can I find one in search schema Managed Properties. The crawled property People:Office is mapped to Managed Property "OfficeNumber". I'm using the managed property "WorkPhone" to display the TN in my display template.Anonymoushttps://www.blogger.com/profile/13896025865897960330noreply@blogger.comtag:blogger.com,1999:blog-3323891144353318207.post-18797392063258369012017-02-03T13:42:42.423-05:002017-02-03T13:42:42.423-05:00There is also an Office property. is that blank to...There is also an Office property. is that blank too? Steve Mannhttps://www.blogger.com/profile/07380496759963407882noreply@blogger.comtag:blogger.com,1999:blog-3323891144353318207.post-24196215703627138942017-02-01T12:12:37.295-05:002017-02-01T12:12:37.295-05:00Do you have any advice on getting BaseOfficeLocati...Do you have any advice on getting BaseOfficeLocation to show up, Steve? The property is obviously part of the template (in the managed property tag) and should be available, but the property never populates (that I can see when looking through the properties in F12. I know that the property is being populated through the UPS because it is visible in the mysite Person.aspxAnonymoushttps://www.blogger.com/profile/13896025865897960330noreply@blogger.comtag:blogger.com,1999:blog-3323891144353318207.post-3888390575928166852016-01-17T07:14:26.397-05:002016-01-17T07:14:26.397-05:00Make sure you go into Result Types and click on th...Make sure you go into Result Types and click on the Update link at top. There should be a Yellow bar alerting you of changes.Steve Mannhttps://www.blogger.com/profile/07380496759963407882noreply@blogger.comtag:blogger.com,1999:blog-3323891144353318207.post-80400595796917510272016-01-15T14:40:51.189-05:002016-01-15T14:40:51.189-05:00I am trying to update the Item_Person and I have f...I am trying to update the Item_Person and I have found MobilePhone property but I added it as you have here but it is not showing up for me. What am I missing?Anonymoushttps://www.blogger.com/profile/12971052618091988313noreply@blogger.comtag:blogger.com,1999:blog-3323891144353318207.post-18443457298330718142015-11-20T07:32:42.445-05:002015-11-20T07:32:42.445-05:00You cold add custom properties to the user profile...You cold add custom properties to the user profiles that contained the image url and link url. Then map those properties to new managed properties and include in your display template. You would add HTML on the template to create an anchor around an image using the appropriate urls for the href and src.<br /><br />Or you can construct the urls in the templacement itself I using the people account property but that would be a hard coded solution.Steve Mannhttps://www.blogger.com/profile/07380496759963407882noreply@blogger.comtag:blogger.com,1999:blog-3323891144353318207.post-69565985247576897562015-11-20T07:31:15.028-05:002015-11-20T07:31:15.028-05:00*could...sorry on train :)*could...sorry on train :)Steve Mannhttps://www.blogger.com/profile/07380496759963407882noreply@blogger.comtag:blogger.com,1999:blog-3323891144353318207.post-4942240229204442772015-11-20T07:30:19.253-05:002015-11-20T07:30:19.253-05:00You cold add custom properties to the user profile...You cold add custom properties to the user profiles that contained the image url and link url. Then map those properties to new managed properties and include in your display template. You would add HTML on the template to create an anchor around an image using the appropriate urls for the href and src.<br /><br />Or you can construct the urls in the templacement itself I using the people account property but that would be a hard coded solution.Steve Mannhttps://www.blogger.com/profile/07380496759963407882noreply@blogger.comtag:blogger.com,1999:blog-3323891144353318207.post-29079216033556166012015-11-11T14:16:31.482-05:002015-11-11T14:16:31.482-05:00Hi Steve, I have a requirement to load the picture...Hi Steve, I have a requirement to load the picture from external url. each image is named with employeeId. when clicked, it should take to that application. Basically, 2 fields - image field to redirect and load the image from external site and the hyperlink of username should redirect/open in new window to the external site. For ex: Lexisnexus InterAction has user profile details including pictures. I just want to display Interaction photo in people search result page and when click display name hyperlink to redirect to the InterAction user page.<br /><br />Appreciate your assistance.<br /><br />Thanks<br />ShyamAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-3323891144353318207.post-87455544143098103982015-07-13T16:49:28.100-04:002015-07-13T16:49:28.100-04:00Hello, I am also looking to display the Manager Us...Hello, I am also looking to display the Manager User Profile Property as the Preferred/Friendly Name instead of the domain\username. Is there a way to do this?<br /><br />Thank you,<br />AmyAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-3323891144353318207.post-8296736502214949622015-05-23T07:43:02.241-04:002015-05-23T07:43:02.241-04:00Do you have your User Profile sync running? Do you have your User Profile sync running? Steve Mannhttps://www.blogger.com/profile/07380496759963407882noreply@blogger.comtag:blogger.com,1999:blog-3323891144353318207.post-78064753888915150262015-05-15T02:10:45.631-04:002015-05-15T02:10:45.631-04:00Hey Steve - The Manager's and Assistant's ...Hey Steve - The Manager's and Assistant's Name are appearing in the format domainname\loginname. How can it be display in Preferred Name or Full Name Any idea?<br /><br />Thanks,<br />KhushiKhushihttps://www.blogger.com/profile/01984067918115765308noreply@blogger.comtag:blogger.com,1999:blog-3323891144353318207.post-39086754348101439912015-03-20T08:11:27.960-04:002015-03-20T08:11:27.960-04:00The crawled property is People:Manager. It does no...The crawled property is People:Manager. It does not appear that this crawled property is mapped to a managed property. So you would need to create a Managed Property that maps to People:Manager. You will probably want to make it Searchable, Queryable, and Retrievable. Run a full crawl and then use that new managed property in your template.Steve Mannhttps://www.blogger.com/profile/07380496759963407882noreply@blogger.comtag:blogger.com,1999:blog-3323891144353318207.post-29494963917308021562015-03-17T00:09:42.314-04:002015-03-17T00:09:42.314-04:00Hi I am trying to update Item_Person template to s...Hi I am trying to update Item_Person template to show manager. But the manager is not showing up. When I looked for the property in search schema it returned nothing.<br />Am I missing something?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3323891144353318207.post-3295363037548883162014-06-19T01:08:52.961-04:002014-06-19T01:08:52.961-04:00Sorted :) I tried using MobileNumber and it worked...Sorted :) I tried using MobileNumber and it worked .<br /><br />ThanksDawsYhttps://www.blogger.com/profile/18224989814418016727noreply@blogger.comtag:blogger.com,1999:blog-3323891144353318207.post-31828433510172686842014-06-19T00:56:06.417-04:002014-06-19T00:56:06.417-04:00Hi,
I have managed to show up work email and work ...Hi,<br />I have managed to show up work email and work phone on the result page. Now I also want to show up Mobile number (CellPhone). I have done the same process as I did for work email and work phone. But mobile number doesn't seem to appear? Any idea? I can see the mobile number on my sites, so the value is synched properly from AD.<br /><br />This is how my code looks like<br /><br />'AboutMe':'AboutMe','AccountName':'AccountName','BaseOfficeLocation':'BaseOfficeLocation','Department':'Department','HitHighlightedProperties':'HitHighlightedProperties','Interests':'Interests','JobTitle':'JobTitle','LastModifiedTime':'LastModifiedTime','Memberships':'Memberships','PastProjects':'PastProjects','Path':'Path','PictureURL':'PictureURL','PreferredName':'PreferredName','Responsibilities':'Responsibilities','Schools':'Schools','ServiceApplicationID':'ServiceApplicationID','SipAddress':'SipAddress','Skills':'Skills','UserProfile_GUID':'UserProfile_GUID','WorkEmail':'WorkEmail','WorkPhone':'WorkPhone','WorkId':'WorkId','YomiDisplayName':'YomiDisplayName','CellPhone':'CellPhone'<br /><br /><br />var has_CellPhone = !$isEmptyString(ctx.CurrentItem.CellPhone); <br /><br />if(has_CellPhone == true) {<br /> var encodedCellPhone = $htmlEncode(ctx.CurrentItem.CellPhone);<br /> var displayCellPhone = Srch.U.getSingleHHXMLNodeValue(hhProps, "CellPhone");<br />if ($isEmptyString(displayCellPhone)) { displayCellPhone = encodedCellPhone }DawsYhttps://www.blogger.com/profile/18224989814418016727noreply@blogger.comtag:blogger.com,1999:blog-3323891144353318207.post-62700264200509108892014-05-15T16:47:39.598-04:002014-05-15T16:47:39.598-04:00I assume this would still be available but not sur...I assume this would still be available but not sure. We use an external content type for our People data - we don't use the user profiles. Steve Mannhttps://www.blogger.com/profile/07380496759963407882noreply@blogger.comtag:blogger.com,1999:blog-3323891144353318207.post-7796617178685893822014-05-15T14:28:11.575-04:002014-05-15T14:28:11.575-04:00Nice article!
In 2010 people search results, &quo...Nice article!<br /><br />In 2010 people search results, "Browse in organizational chart" is also displayed aside from other user info. Can this be displayed also in 2013?<br /><br />Thanks.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3323891144353318207.post-88949960817289502352014-05-05T14:53:51.028-04:002014-05-05T14:53:51.028-04:00Hi I have created a custom item_person.html to whi...Hi I have created a custom item_person.html to which I have added work phone and email ..and ensure the people_core_search web part results used this new custom display template .- no issues. Next I want include some managed properties in the display tempate (resuts) that act as lookups to some custom AD attributes I store against each user .. To get these to display in my display template, I must added each property to my Results Schema.westerdaledhttps://www.blogger.com/profile/04978235432543060653noreply@blogger.comtag:blogger.com,1999:blog-3323891144353318207.post-41321065966575828662014-02-06T13:16:00.266-05:002014-02-06T13:16:00.266-05:00Oh ok good to know.. unfortunately we are on Offic...Oh ok good to know.. unfortunately we are on Office365.. Thanks for the info..Anonymoushttps://www.blogger.com/profile/09443708000764744295noreply@blogger.comtag:blogger.com,1999:blog-3323891144353318207.post-40713686029788611842014-02-06T11:07:46.826-05:002014-02-06T11:07:46.826-05:00You need to look at your Search Schema within the ...You need to look at your Search Schema within the Search Service Application and look for the correct Managed Property name. You also need to make sure that the Retrieve option is selected for the property.Steve Mannhttps://www.blogger.com/profile/07380496759963407882noreply@blogger.comtag:blogger.com,1999:blog-3323891144353318207.post-34909997569884162842014-02-06T10:31:31.290-05:002014-02-06T10:31:31.290-05:00Worked like a charm... Thanks a lot Steve.. I am j...Worked like a charm... Thanks a lot Steve.. I am just curious how did you get to know we should use OfficeNumber when the actual attribute name is Office? Just curiousAnonymoushttps://www.blogger.com/profile/09443708000764744295noreply@blogger.comtag:blogger.com,1999:blog-3323891144353318207.post-77386745385186853342014-02-05T17:36:43.163-05:002014-02-05T17:36:43.163-05:00Try OfficeNumber or BaseOfficeLocation.Try OfficeNumber or BaseOfficeLocation.Steve Mannhttps://www.blogger.com/profile/07380496759963407882noreply@blogger.comtag:blogger.com,1999:blog-3323891144353318207.post-36990707249456658292014-02-04T17:56:55.537-05:002014-02-04T17:56:55.537-05:00Hi Steve,
I am trying to update the people search...Hi Steve,<br /><br />I am trying to update the people search results with 3 profile properties using "Item_Person" Display template<br /><br />1) WorkPhone<br />2)WorkEmail<br />3)Office<br /><br />I am able to display my results with Work Phone and Work email, However I am not able to display Office value. I have used the exact syntax for Office attribute that I have used for the other 2 properties.Any information or help is appreciated<br />Anonymoushttps://www.blogger.com/profile/09443708000764744295noreply@blogger.com