Quantcast
Channel: Active questions tagged feeditem+chatter - Salesforce Stack Exchange
Viewing all articles
Browse latest Browse all 68

Posting Badge Information to Chatter

$
0
0

I'm trying to do a Thanks post via Apex. More specifically, I want it like this : enter image description here

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


Viewing all articles
Browse latest Browse all 68

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>