OAM Search Results Virtual Attribute
What if you want to include a virtual attribute in your search results that is derived form another attribute?
Just create the attribute in an outbound mapper flow and add it to the search results and it should show up as expected – right? Well, maybe it will and maybe it won’t; if the attribute(s) the derived value is based on is/are in the search results too then it will show up as anticipated. However, if they are not there then it won’t show up as expected.
The solution is to use the OVD addReturnAttribute delivered mapper function on the reciprocal inbound request with the required source attributes. This will allow the outbound mapper to have the required data to complete the derived attribute and enable the OAM search result configuration to exist without the source attributes.