I’ve had this problem before and have worked around it in some cases. When auto-populating a reference field in edit mode through an action, the field populates with the Salesforce ID instead of the reference record’s name. In my current use, I want to have a task that can be assigned to other users as owner. It works as planned except that I want the owner field to prepopulate upon page load with the userId of the current user. They can then change that to another user if they want to assign the task to others. The problem is that when the field populates, it populates with the Salesforce user ID instead of the userID. I tried triple Mustache, global merge variable for user and creating a model on the user object and pulling the userId from there. All have the same result: Salesforce Id instead of UserId. It does work, but it looks sloppy to the user having a jumble of numbers and letters in the userId field. Anyone have any suggestions?
This topic has been closed for comments
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.