Skip to content

Instantly share code, notes, and snippets.

View saicharanreddyk's full-sized avatar

Saicharan Reddy K saicharanreddyk

View GitHub Profile
@saicharanreddyk
saicharanreddyk / SOQL Queries.sql
Created October 21, 2021 17:30 — forked from sholloway/SOQL Queries.sql
Useful SOQL queries for exploring a Salesforce org.
--------------------------------------------------------------------
-- Queries related to distribution of metadata.
-- Find the number of users per profile.
SELECT count(id), Profile.name
FROM User
WHERE User.IsActive = true
GROUP BY Profile.name
-- Find the distribution of Apex classes per namespace.
select count(id), NameSpacePrefix
@saicharanreddyk
saicharanreddyk / project-scratch-def.json
Last active November 3, 2020 03:07
sample project-scratch-def.json
{
"orgName": "Salesforce Developer",
"edition": "Enterprise",
"hasSampleData": "true",
"features": ["MultiCurrency","DeferSharingCalc","PersonAccounts"],
"settings": {
"mobileSettings": {
"enableS1EncryptedStoragePref2": true
},
"omniChannelSettings": {
PS C:\Users\Saicharan Reddy K\Desktop\VSCodeSetup> sfdx force:data:record:create -s Contact -v "LastName=Acme"
Successfully created record: 0030K00002IDJOWQA5.
PS C:\Users\Saicharan Reddy K\Desktop\VSCodeSetup> sfdx force:data:record:update -s Contact -i 0030K00002IDJOW -v "LastName=AcmeUpdate"
Successfully updated record: 0030K00002IDJOW.
PS C:\Users\Saicharan Reddy K\Desktop\VSCodeSetup> sfdx force:data:record:get -s Contact -i 0030K00002IDJOW
attributes:
type: "Contact"
url: "/services/data/v48.0/sobjects/Contact/0030K00002IDJOWQA5"
Id: "0030K00002IDJOWQA5"
IsDeleted: null
@saicharanreddyk
saicharanreddyk / unsignedPluginWhiteList.json
Last active May 22, 2020 03:53
unsignedPluginWhiteList.json
[
"shane-sfdx-plugins",
"@muenzpraeger/sfdx-plugin"
"sfdx-waw-plugin",
"mo-dx-plugin",
"sfdx-cmdt-plugin",
"texei-sfdx-plugin",
"etcopydata",
"sfdx-browserforce-plugin",
"sfdx-migration-automatic",
@saicharanreddyk
saicharanreddyk / package.xml
Created May 21, 2020 05:25
sample package.xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
<types>
<members>*</members>
<name>ApexClass</name>
</types>
<types>
<members>*</members>
<name>ApexComponent</name>
</types>
{
"content": [
{
"type":"cms_image",
"urlName":"urlname",
"status":"Draft",
"body": {
"title" : "Draft Blade Coffee Grinder Large",
"altText" : "blade_coffee_grinder_large",
"thumbUrl":"https://image.shutterstock.com/image-photo/mountains-during-sunset-beautiful-natural-260nw-407021107.jpg",
OpenSSL x509 -req -sha256 -days 365 -in server.csr -signkey server.key -out server.crt
OpenSSL req -new -key server.key -out server.csr
openssl genrsa -des3 -passout pass:SomePassword -out server.pass.key 2048
openssl rsa -passin pass:SomePassword -in server.pass.key -out server.key
@saicharanreddyk
saicharanreddyk / AutomationOutput.txt
Last active April 10, 2020 10:23
Automation Output
Setting the session-based environment variables
Changing the location into project folder
Creating new directory 202004101432
Cloning dreamhouse github repo
Cloning into 'dreamhouse-sfdx'...
remote: Enumerating objects: 1714, done.
remote: Total 1714 (delta 0), reused 0 (delta 0), pack-reused 1714
Receiving objects: 100% (1714/1714), 4.98 MiB | 913.00 KiB/s, done.
Resolving deltas: 100% (944/944), done.
Updating files: 100% (427/427), done.