Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Salesforce Trailhead Widget for your Website

Salesforce Trailhead widget for your Website

Hi Friends

Recently, I have been working on a small project, where I wanted to make a profile card, which displayed your Trailhead profile (your rank, Badges, point and your basic Info available on Trailhead). Something like shown below.

Salesforce Trailhead Widget

This Salesforce Trailhead Widget will help you, showcase your hard-earned Badges, points and completed trails on your website. If you own a WordPress site, Blogspot or any website, just use this widget like a swag to brag about your achievements in trailhead.

Any impact on my Blog or website? well this widget uses an asynchronous call to an external server and everything is calculated there and the result is embedded on your website without using any of your website’s resources.

To Use this widget for your website please follow the below instruction.

Step 1

To begin we need your trailhead profile Id, you can find your trailhead profile by logging into your trailhead account and clicking on the profile drop-down menu as shown in the image below:

Salesforce Trailhead Widget

you will either find a vanity URL or a Profile ID – ‘005500000061VVIAA2’ copy it and paste it temporarily on your system.

Step 2 

Copy the below code and paste on your page:

View the code on Gist.

Step 3 

Now In the code line shown below:

After ‘yourProfileId=’, paste either your vanity URL or the profile Id we saved in step 1, for me it is my vanity URL ‘sumitkumardatta’ for you it can be anything.
and that is it, you are good to use this widget on your website.
Let me know in the comments if you face any issue or have any feedback.
Have a Happy New Year from Salesforce Next Gen

Also Have a look at the below resources:

  1. Best Salesforce Interview Questions book with Apex and Visualforce concept explained

Also Have a look at the below learning resources:

  1. SOQL (Salesforce Object Query Language)
  2. Apex Trigger Best Practices and the Trigger Framework

  3. Salesforce Interview Question and Answers Part 2

  4. Salesforce Interview Questions on Test Class

The post Salesforce Trailhead Widget for your Website appeared first on SalesforceNextGen.

This post first appeared on Salesforce Next Gen, please read the originial post: here

Share the post

Salesforce Trailhead Widget for your Website


Subscribe to Salesforce Next Gen

Get updates delivered right to your inbox!

Thank you for your subscription