AnsweredAssumed Answered

Custom field on Salesforce User object not coming over with other data

Question asked by nathaniel.lee179727 on Aug 29, 2018
Latest reply on Aug 29, 2018 by DarrellFlenniken9941


I've got a custom text field on the User object in salesforce, and am trying to make an insert call with this field filled out, but when the data gets into my User trigger handler, the field is null.


The field is called "UserRoleName__c," and is a text field, 255 chars in length. I am stamping this field with the name of a user role from another SFDC org, with the intention that the role name will be used to look up in a metadata table the new role this user will be assigned to in a new role hierarchy.


Within the XML doc that is produced (in test mode), that field does have the data I'm looking for, but it won't show up in the User record when it gets to the trigger logic.


When using workbench to insert a new user, I am able to set this field, and it comes across in the trigger handler as well.


Another weird thing, I can't add this field to the INSERT XML profile by the import function, but it is included in the UPSERT XML profile I created through the import function.