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:
Background: I find Cursor struggles to retrieve content from Salesforce documentation links due to various approaches used such as as shadow dom and dynamic loading. This Cursor command leverages Cursors Browser Automation tool (needs to be explcitly enabled) to help give it a few more clues on how to deal with these pages. I initially built a shell script for it to call but then I discovered Cursor commands. So I built this command using Cursor itself once we had both figured this out - effectively it wrote its own instructions. Use at your own risk.
Usage: In Cursor type / and select Create Command enter sfdoc and press enter. Then paste the content below into the file. To use, use prompts like Read this https://developer.salesforce.com/docs... using /sfdoc. Make sure you have chromium NPM library installed globally as the Node.js scripts below require it. Also make sure you have given Cursor permission to use your browser - there is a icon bottom right of the chat window to enable this in