vendredi 13 mars 2015

Can't pull Office field from search template driven employee directory in 365



I'm setting up an employee directory as seen on Marc's blog here http://ift.tt/1DZvkp0.


The issue is that the office field won't come in. The ManagedPropertyMapping tag includes "OfficeNumber" but for some reason the ctx.CurrentItem won't pull back that particular field. I can do a search for "OfficeNumber: Vinings" for instance and it works correctly. I've spent hours trying to sort this out and I'm getting no where. Does anyone have any ideas?


Here is my ManagedPropertyMapping tag: 'AboutMe':'AboutMe','AccountName':'AccountName','Office':'OfficeNumber','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','WorkId':'WorkId','WorkPhone':'WorkPhone','YomiDisplayName':'YomiDisplayName'








0 commentaires:

Enregistrer un commentaire