Posts

Showing posts with the label Salesforce

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 install...

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...

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)...

Utiity method to get week number of month by passing a Datetime value

Hi Techies, Here below is the Method that you can use in order to fetch week number in a month: for ex: Pass                ->     Result .......................................... 1July2016                 1 8July2016                 2 22July2016               4 and so on.... Method :     public Integer weekOfMonth( Datetime dateVar){                 Date currentDate = dateVar.Date();                 Integer weekCount = 0;                 Integer startWeekResidue = 0;                 Integer endWeekResidue = 0;                 //Calculating startWeekResidue           ...

Include Lightning Component in Visualforce Page

Yes, it's possible now. We can put our Lightning Component inside Visualforce page, it would help us to combine features we have built using both VF and Lightning Component. Basically we have four steps to add lightning component to a Visualforce Page. Step 1: a) Create simple lightning aura application and make it global and extend ltng:outApp , now save this app as "MyLightningApp" <aura:application access="GLOBAL" extends="ltng:outApp"> b) Create a component and save it as "MyLightningCmp". <aura: component> Test - We are inside component now!! </aura:component> Step 2: Add a dependency to our application, The app uses the <aura:dependency> tag to indicate that it uses the standard Lightning component, such as ui:button and Custom Component in our case "MyLightningApp" Note: If the app is defined in your org (that is, not in a managed package), you can use the ...