Challenge Overview
Project Overview
Hyperlink all the things! We need a minor enhancement to the Appirio Gamification Engine, built in AngularJS and Salesforce.com.
Business Requirements for this Challenge
Change the Chatter Post to have a hyperlinked @mention in the feed.
Current:
John Doe has just achieved the HOTR badge!
After :
@John Doe has just achieved the HOTR badge!
where @mention is a hyperlink to the user record.
See similar code in our application (lined 192 in PointTriggerHandler class) and Salesforce developer documentation for example code: https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/connectapi_examples_post_feed_element_mention.htm
Thats it!
Steps To Get the Current Code
-
Head to Github to grab the current source code. The Github link will be provided in the Forums.
-
Go through the Github Read Me file to set up source code in your developer org.
Implementation Guidelines
-
Alter the afterInsertAwardedBadge trigger to achieve the stated functionality. Use the BatchInput class, to ensure, the trigger works for bulk records.
-
To test, create a Badge record for a user in your org via the Badges tab. Be sure to test with a standard user profile.
Final Submission Guidelines
- Commit your changes in your local repository
- Please name the commit message “S-155329 - Fixing @Mention for Badges”
- Create a patch file, and upload the patch file as submission. How to create a patch file
- Please provide a destructive changes.xml file if necessary to remove metadata no longer required after your changes.