Print this page Skills - How do I endorse a skill via Apex?

Knowledge Article Number 000227255
Description How do I endorse a skill via Apex?
Resolution To endorse a user's skill via Apex you just need an Id of their ProfileSkillUser record and the Id of the User who will be endorsing the skill:
ProfileSkillEndorsement endorsement = new ProfileSkillEndorsement(ProfileSkillUserId = '0SMi00000004CR1', UserId = '005i0000000TwE7');

insert endorsement;

You can learn more about the skill objects and their fields from he SOAP API Developer Guide:


promote demote