Created
March 7, 2016 05:07
-
-
Save shrutis22/3d3adce1911dd2b3b271 to your computer and use it in GitHub Desktop.
Switch ON Button - CloudBit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{!REQUIRESCRIPT("/soap/ajax/36.0/connection.js")} | |
{!REQUIRESCRIPT("/soap/ajax/36.0/apex.js")} | |
var obj = { | |
"percent" : 100, | |
"duration" : -1, | |
"recId" : "{!LittleBit__c.Id}" | |
}; | |
sforce.apex.execute( "CloudBit" , "toggle" , obj ); | |
location.reload(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment