ror, scala, jetty, erlang, thrift, mongrel, comet server, my-sql, memchached, varnish, kestrel(mq), starling, gizzard, cassandra, hadoop, vertica, munin, nagios, awstats
/* | |
* @description: A code snippet that mimics the popular Select * SQL syntax in force.com's Apex language. | |
*/ | |
// Initialize setup variables | |
String objectName = 'Contact'; // modify as needed | |
String query = 'SELECT'; | |
Map<String, Schema.SObjectField> objectFields = Schema.getGlobalDescribe().get(objectName).getDescribe().fields.getMap(); | |
// Grab the fields from the describe method and append them to the queryString one by one. |
2015-01-29 Unofficial Relay FAQ
Compilation of questions and answers about Relay from React.js Conf.
Disclaimer: I work on Relay at Facebook. Relay is a complex system on which we're iterating aggressively. I'll do my best here to provide accurate, useful answers, but the details are subject to change. I may also be wrong. Feedback and additional questions are welcome.
Relay is a new framework from Facebook that provides data-fetching functionality for React applications. It was announced at React.js Conf (January 2015).
// see https://salesforce.stackexchange.com/questions/165551/possible-to-update-namedcredential-from-apex | |
MetadataService.NamedCredential credential = new MetadataService.NamedCredential(); | |
credential.fullName = 'Demo_Credential'; | |
credential.label = 'Demo Credential'; | |
credential.endpoint = 'https://www.DEMO2.com'; | |
credential.principalType = 'NamedUser'; | |
credential.protocol = 'NoAuthentication'; | |
system.debug(createMetadata(credential)); |
The Dev Hub is our production org. Scratch orgs are registered against a Dev Hub and can be managed from there. Execute the following command in a terminal (you'll be prompted to enter your username and password in a browser window):
sfdx force:auth:web:login --setdefaultdevhubusername -a Unum_DevHub
It's possible to have multiple Dev Hub orgs. If you want to change to a different Dev Hub, you must specify your defaultdevhubusername
setting with this command: