I'm trying to do a Thanks
post via Apex
. More specifically, I want it like this :
These are the steps I have taken to be able to post a Badge
.
1. Created a WorkBadgeDefinition Object
2. Connected the WorkBadgeDefinition object to a WorkBadge object
3. Connected the WorkBadge Object to the WorkThanks object
4. Connected the WorkThanks object to a FeedItem object
After step 4, it does post on chatter, however, does not contain the link to the badge. Though FeedItem
has a related record of a WorkThanks
object, it does not specify the badge being given.
Any idea what I might be doing wrong and/or missing? For the steps, I followed the following schema https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_erd_badge.htm