I have a custom metadata type that stores configuration information related to my Salesforce package. One piece of information I'd like to store is a link to a Salesforce user.
The field controls whether or not to fire an Apex trigger. If the Salesforce user who made the update is matches the specified Salesforce user in the metadata record, the trigger is skipped, otherwise it is fired.
Currently, I am storing the user's email. The limitation of this approach is that the email address is not guaranteed to match a Salesforce user at all. Is there a way of defining a field that can link to a specific Salesforce user from a custom metadata type?