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
<script src="/soap/ajax/39.0/connection.js" type="text/javascript"></script> | |
<script> | |
sforce.connection.sessionId = '{!$Api.Session_ID}'; | |
var result = sforce.connection.describeSObject("Opportunity"); | |
for (var i = 0, size = result.fields.length; i < size; i++) { | |
var field = result.fields[i]; |
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
/** | |
* getDependentPicklistOptions | |
* by Benj Kamm, 2012 | |
* (inspired by http://iwritecrappycode.wordpress.com/2012/02/23/dependent-picklists-in-salesforce-without-metadata-api-or-visualforce/) | |
* CC BY-SA 3.0 (http://creativecommons.org/licenses/by-sa/3.0/us/) | |
* | |
* Build an Object in which keys are valid options for the controlling field | |
* and values are lists of valid options for the dependent field. | |
* | |
* Method: dependent PickListEntry.validFor provides a base64 encoded |
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
const url = 'resourceName/' + date.now() + '/path'; |
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
setTimeout(function () { | |
"use strict"; | |
const waiting_timeA = 1 * 60000, | |
waiting_timeB = 1 * 60000, | |
monster_type = 0, // 0 - 3 | |
current_exp = 'kkkkkkkkkk', | |
words_missions = ['masmorras', 'Campo Viking'], | |
good_items = ['poirins', 'liths', 'zeindras', 'ibiwans', 'kerrannas', 'facilidade', 'bacias', 'sugos', 'delicadeza', 'magia', 'conflito', 'rapidez', 'brilho', 'rayols', 'Erradica', 'espalhan', 'lucro', 'thiens', 'frabos', 'perdi'], | |
merce = ['herege', 'grande mestre', 'lanceiro de elite'], | |
merceMinLevel = 60, |
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
/* | |
* Example: Get a map of list of contacts by status from list of contacts | |
* @param: List<SObject> objects | |
* @param: String fieldName - field Api Name of a text field | |
* @return Map<String, List<SObject>> sObjectListByString | |
*/ | |
public static Map<String, List<SObject>> getSObjectListByString(List<SObject> objectList, String fieldName) { | |
Map<String, List<SObject>> sObjectListByString = new Map<String, List<SObject>>(); | |
String fieldValue; |
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
public class JWTAuthAccountService { | |
/* | |
{ | |
"private_key_id": ".....", | |
"private_key": "-----BEGIN PRIVATE KEY-----[KEY HERE, REMOVE "\n" LINEBREAKS]-----END PRIVATE KEY-----\n", | |
"client_email": "[email protected]", | |
"client_id": "....apps.googleusercontent.com", | |
"type": "service_account" | |
} |
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
public with sharing class AccountsService { | |
public string getAllFieldsAndValues(String accIdA, String accIdB) { | |
final Set<String> systemFields = new Set<String> { | |
'CreatedDate', | |
'CreatedById', | |
'LastModifiedById', | |
'LastModifiedDate' | |
}; | |
try { |