Posts

Salesforce DX – Push Changes To Dev Hub

Here below are the steps to push changes to Devhub org: 1) Open terminal, 2) Go to the source project directory where deploy (convert) folder is created 3)) Run: force:source:convert ex: Ajays-MacBook-Pro:Test DX Project ajay$ sfdx force:source:convert 2)  sfdx force : mdapi : deploy - d deploy - u brett @ wipdeveloper . com ex: Ajays-MacBook-Pro:Test DX Project ajay$ sfdx force:mdapi:deploy -d metadataPackage_1557997633911 -u test-pe5ul6jgi4nb@example.com To check the status of this deployment try either of below mentioned two ways : 1)  run "sfdx force:mdapi:deploy:report" or 2) open the org and goto s etup->deployment status

SFDX Install CPQ in Scratch org

Hi Guys, To install the CPQ package in Devhub :  1) Goto ->  https://steelbrick2.force.com/apex/installPremium 2) Scroll down to Package Installation Link 3) Click on Recent Package Release link depending on Org you want to install CPQ - Production / Sandbox 4) Do the org authentication, it would then redirect to org where the CPQ package would be installed. 5) The status could be monitored under Setup->installed packages 6) You would receive an email when the package is successfully installed.  To install the CPQ package in Scratch org :  1) Goto terminal and run the following command -> sfdx force:package:install --package [packageId] -w 30 use the package id from the CPQ Installation Page as  [packageId] the  -w 30  denotes that installation will wait 30 minutes for the installation to complete after the package is available. the -u [Scratch Org Name] denotes scratch org name where you want installation. for ex:  sfdx f

Installing Apache ANT on MAC OS X

To get Ant running on your Mac in 5 minutes, follow these steps. Open up your terminal. Decision 1 - If you already have brew installed, follow the below two steps: Make sure you have updated version of brew by running the first command 1)  brew update 2)  brew install ant Decision 2 - If you don't have brew installed : Perform these commands in order: 1) /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 2) brew install ant If you don't have Java installed yet, you will get the following error: "Error: An unsatisfied requirement failed this build." Run this command next:  brew cask install java  to fix this. The installation will resume. Results : Successful installation: Ant is now installed and available through the "ant" command in the terminal. To test the installation, just type " ant -version " into a terminal window. You should get the followi

Simplest flow diagram possible to understand different Access in salesforce security model

Image
ORG Level Access Profile Level Access Record Level Access Field Level Access

Why a User can't see a record - Steps to troubleshoot via sharing architecture

 Here is a troubleshooting flow. 1. Verify that the user has permissions to access to the object. 2. Identify the user's role who can't see the record and note it. 3. Identify the owner's role of the record and note it. 4. Review the role hierarchy and verify these two roles are in two different branches (they should be). 5. Now you need to review the sharing rules for the object and make sure there is no rule that will grant the user access. This can also cause you to look in public groups as well. Maybe the user just got left out of a group where there is a sharing rule, or does it make sense to create a new sharing rule to grant the user access? This depends on the architecture you are trying to maintain, and applies to both ownership-based sharing rules and criteria-based sharing rules. 6. If you are using teams, should this user be on the team for that record? How are teams maintained and how did the miss occur? 7. If manual sharing is used, the user m

Checking API Usage

Image
1) Below are the ways by which you can access the report to check API Usage for the organisation- a) System Overview Go to Monitor | System Overview and there you will find the API REQUESTS, LAST 24 HOURS. This shows you how many API calls you've made in the last 24 hours including today. For example, if you are viewing this on Monday at 2:30 PM, it'll show you the calls made since Sunday at 2:30 PM b) Through Salesforce Report Click the Reports tab and view the "API Usage Last 7 Days" report under the Administrative Reports folder. This will show you how many calls each app/person made in the last 7 days. shortcut step-> put this URL in for your instance.  It's how I found the API report.https:// na1 .salesforce.com//00O?rt=104&retURL=%2F00O&c=UN&c=FULL_NAME&c=EM&c=CID&c=TS&c=CC&duel0=FULL_NAME%2CUN%2CEM&scope=organization&details=yes Replace the  na1  with your instance.  c) You

How to Query all fields in Apex ( SELECT (ALL) * FROM SObject )

Hello Guys, We have situations where we need to query all fields from any SObject in salesforce and because in SOQL we have to maintain resource allocation therefore we don't have option such as to query like SELECT * FROM SObjectName like we used to have in SQL. So here is the utility method that you can use to fetch all field names for a particular SObject and return as string: Method:   public static String fetchFieldNames(String sObjectName){       String SobjectApiName = sObjectName;       Map<String, Schema.SObjectType> schemaMap = Schema.getGlobalDescribe();       Map<String, Schema.SObjectField> fieldMap = schemaMap.get(SobjectApiName).getDescribe().fields.getMap();       String commaSepratedFields = '';       for(String fieldName : fieldMap.keyset()){           if(commaSepratedFields == null || commaSepratedFields == ''){               commaSepratedFields = fieldName;           }else{               commaSepratedFields = commaSe