This file contains hidden or 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
Show hidden characters
{ | |
"workbench.colorTheme": "Default Dark+", | |
"git.postCommitCommand": "sync", | |
"git.enableSmartCommit": true, | |
"git.confirmSync": false, | |
"git.autofetch": true, | |
"terminal.integrated.fontFamily": "Consolas", | |
//"prettier.prettierPath": "/home/coder/.npm/lib/node_modules/prettier", | |
"editor.formatOnSave": true, | |
"editor.defaultFormatter": "esbenp.prettier-vscode", |
This file contains hidden or 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 CreateNamedCredsController { | |
public static final String CLIENT_ID = '<clientid>'; | |
public static final String CLIENT_SECRET = '<clientsecret>'; | |
public static final String API_VERSION='v51.0'; | |
public static final String TOKEN_ENDPOINT_URL = 'https://login.salesforce.com/services/oauth2/token'; | |
public static final String AUTHORIZE_ENDPOINT_URL = 'https://login.salesforce.com/services/oauth2/authorize'; | |
public static final String REDIRECT_URL = URL.getSalesforceBaseUrl().toExternalForm()+'/apex/AuthHandler'; | |
public static final String NAMEDCRED_TOOLING_ENDPOINT_URL = URL.getSalesforceBaseUrl().toExternalForm()+'/services/data/'+API_VERSION+'/tooling/sobjects/NamedCredential/'; | |
public static final String AUTH_PROVIDER_NAME = 'SF_Auth'; | |
This file contains hidden or 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
<template for:each="{forecastRevenues}" for:item="period"> | |
<tr key="{period.index}"> | |
<td | |
data-label="{period}" | |
data-id="{period.Id}" | |
data-field="Forcast_Period_Start__c" | |
> | |
<div class="slds-truncate" title="{period.Forecast_Period_Start__c}"> | |
<lightning-input | |
type="date" |
This file contains hidden or 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
#!/usr/bin/env bash | |
set -euo pipefail | |
orgname="${1:-default}" | |
foldername="$2" | |
if [[ $foldername != "" ]]; then | |
query="Select Folder.DeveloperName,DeveloperName from EmailTemplate where Folder.DeveloperName='$foldername'" | |
else | |
query="Select Folder.DeveloperName,DeveloperName from EmailTemplate" | |
fi | |
# echo $orgname $query |
This file contains hidden or 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
AIInsightAction | |
AIInsightFeedback | |
AIInsightReason | |
AIInsightValue | |
AIPredictionEvent | |
AIRecordInsight | |
AcceptedEventRelation | |
Account | |
AccountBrand | |
AccountBrandShare |
This file contains hidden or 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
AboutMe User | |
AboutMe UserChangeEvent | |
AcceptLanguage CredentialStuffingEvent | |
AcceptLanguage CredentialStuffingEventStore | |
AcceptanceLabel Recommendation | |
AcceptanceLabel RecommendationChangeEvent | |
AccessCode ConferenceNumber | |
AccessLevel AccountBrandShare | |
AccessLevel AssessmentIndicatorDefinitionShare | |
AccessLevel AssessmentTaskDefinitionShare |
This file contains hidden or 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
@isTest | |
public static void it_should_say_seeall_is_false() { | |
Boolean seeAllData = true; | |
try { | |
ConnectApi.UserProfiles.getUserProfile(null, UserInfo.getUserId()); | |
} catch (UnsupportedOperationException ex) { | |
seeAllData = false; | |
} | |
System.assert(!seeAllData, 'See All data returned true'); | |
} |
This file contains hidden or 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
import { LightningElement, api, track, wire } from 'lwc'; | |
import setupChartData from './chartSetup.js'; | |
import getChartData from '@salesforce/apex/MachineActivityCompletionChartController.getTestCompletionDetails'; | |
import getChartOptions from './chartOptions.js'; | |
export default class MachineActivityCompletetionChart extends LightningElement { | |
@api poaId; | |
@api testMethodIds; |
This file contains hidden or 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
/** | |
* Reduces one or more LDS errors into a string[] of error messages. | |
* @param {FetchResponse|FetchResponse[]} errors | |
* @return {String[]} Error messages | |
*/ | |
const reduceErrors = (errors) => { | |
if (!Array.isArray(errors)) { | |
errors = [errors]; | |
} |