sfdx force:auth:web:login --setalias <sandbox name> --instanceurl https://test.salesforce.com
sfdx force:org:list
| <apex:page standardController="PricebookEntry" extensions="PricebookExt" showHeader="false" sidebar="false"> | |
| <html> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <meta http-equiv="x-ua-compatible" content="ie=edge" /> | |
| <title>PriceBook Review</title> | |
| <meta name="viewport" content="width=device-width, initial-scale=1" /> | |
| <apex:slds /> <!-- SLDS style sheet --> | |
| <style> |
| public class PricebookExt { | |
| public List<PricebookEntry> productList = new List<PricebookEntry>(); | |
| public PricebookEntry entry; | |
| public Boolean IsReady = false; | |
| public integer total_products; | |
| public PricebookExt(ApexPages.StandardController stdController) { | |
| this.entry = (PricebookEntry)stdController.getRecord(); | |
| } | |
| <html> | |
| <body> | |
| <!-- live chat button --> | |
| <a id="liveagent_button_online_573i00000004DD7" href="javascript://Chat" style="display: none;" onclick="liveagent.startChat('573i00000004DD7')"> | |
| Online Chat | |
| </a> | |
| <div id="liveagent_button_offline_573i00000004DD7" style="display: none;"> | |
| Offline Chat | |
| </div> |
| public with sharing class AccountUpdateIntegration { | |
| @future (callout=true) | |
| public static void runjob(String username, String password, String jobName, String jobType) { | |
| HttpRequest req = new HttpRequest(); | |
| HttpResponse res = new HttpResponse(); | |
| Http http = new Http(); |
| <apex:page title="Clipboard Test" > | |
| <apex:messages /> | |
| <script language="JavaScript"> | |
| function ClipBoard(copytextid, holdtextid){ | |
| copyToClipboard(copytextid); | |
| } | |
| function copyToClipboard(elementId) { | |
| // Create an auxiliary hidden input | |
| var aux = document.createElement("input"); | |
| // Get the text from the element passed into the input |
| <aura:event type="COMPONENT"> | |
| <aura:attribute name="param" type="String"/> | |
| </aura:event> |
| <apex:page showHeader="false" sidebar="false"> | |
| <html> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <meta http-equiv="x-ua-compatible" content="ie=edge" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1" /> | |
| <apex:slds /> <!-- SLDS style sheet --> | |
| </head> | |
| <body> |
| document.cookie.match(/(^|;\s*)sid=(.+?);/)[2]; |
| // Row number from where to fill in the data (starts as 1 = first row) | |
| var CUSTOMER_ID = 2; // 1st row may contains column headers | |
| // Google Doc id from the document template | |
| // (Get ids from the URL) | |
| var SOURCE_TEMPLATE = "sdsv"; | |
| // In which spreadsheet we have all the customer data | |
| var CUSTOMER_SPREADSHEET = "svs"; |