GetUserField
4 min
returns the field value of the specified user (if a recid is supplied) or for the currently logged in user (if no recid is supplied) syntax getuserfield(fieldname, recid) enabled for for a description of the business object categories, see notes on "enabled for" docid\ u26v9fecfs6ilwa0 pvjd business object category yes/no business rules before save rules yes1 business rules calculation rules (after save, with or without also recalculate on load) yes business rules calculation rules (before save or always, without also recalculate on load) yes1 business rules calculation rules (before save or always, with recalculate on load) yes business rules editing rules yes2 business rules initialization rules yes1 business rules read only rules no business rules required rules yes2 business rules validation rules yes1 client expressions no object permissions no services yes ldap yes mobile yes quick actions (except ui quick actions) yes1 ui quick actions no reports yes1 search/dashboard without field references yes1 search/dashboard with field references no 1 except in services 2 except in services and when this field appears on a form or is triggered by such a field parameters parameter description fieldname the name of the field for which to get the value recid (optional) the recid of a specific user instance defaults to the currently logged in user return value text field example $(getuserfield("displayname", owner valid)) this example gets the display name field of the user who is the owner of this business object, assuming that there is an owner relationship and that the owner is a validated field $(getuserfield("primaryemail")) this example gets the primary email field of the currently logged in user
