How to write the aura if else statement?
You "aura:set" the else attribute: Content when true Content when false
Answered Apr 26, 2023 · 822 Views Read answer →
You "aura:set" the else attribute: Content when true Content when false
Answered Apr 26, 2023 · 822 Views Read answer →
First of all, there is some useless code in your controller. You don't need to instantiate a new opportunity in the save method. The opportunity variable which is shared with your Visualforce page already has all the values assigned.You only have to do this: public void Saveto(){ insert opp; }About your error -…
Answered Apr 26, 2023 · 1.2K Views Read answer →
The answer to your question - How can createddate be larger than lastmodifieddate is - createdDate-LastModifiedDate Returns the difference in the number of days - it's like yesterday- today - 1 If you multiply by 24 (24 hours a day ) returns the value in hours then by 60 (60 minutes) returns the value in minutes then…
Answered Apr 26, 2023 · 682 Views Read answer →
To resolve the issue related to the order of execution in Salesforce, you must understand that - A Workflow Field Update triggers a second round of before and after triggers, so if a workflow and trigger both operate on the same field, the trigger will win. As explained in Triggers and Order of Execution:Executes…
Answered Apr 26, 2023 · 968 Views Read answer →
One apex try catch block is enough, unless you want to act differently depending on which query caused the exception.
Answered Apr 18, 2023 · 868 Views Read answer →
In most cases, you can work around the SeeAllData true limitation by using the Force.com Enterprise Apex Selector pattern and ApexMocks. here's an example for Dashboard Your MyClass.doSomething() method uses code such as this: .... Dashboard[] dashboards = DashBoardsSelector.newInstance() .selectByDeveloperName(new…
Answered Apr 18, 2023 · 1.3K Views Read answer →
To apply css to inner elements of lightning input lwc - we have to override CSS : Create a CSS file and add in static resource File Content : .customInput .slds-input{ border-colour: red; } Import That static resource file in your component import { loadStyle } from 'lightning/platformResourceLoader'; import CUSTOMCSS…
Answered Apr 18, 2023 · 4.0K Views Read answer →
You prematurely closed the IF (marked here with "****" around it): IF(ISPICKVAL(Status, "A") || ISPICKVAL(Status, "B")****)****, Date1__c - TODAY(), Date2__c- TODAY() Try: IF(ISPICKVAL(Status, "A") || ISPICKVAL(Status, "B"), Date1__c, Date2__c) - TODAY()This includes DerekF's recommended optimization of pulling out…
Answered Apr 18, 2023 · 998 Views Read answer →
To resolve the uncaught typeerror cannot read property style of null - I see you declare your [removed] tag before html body. If you directly call a script tag it starts executing immediately. So by the time script tag crawls the document using document.querySelector('.progress-circle-prog'); this might not be…
Answered Apr 17, 2023 · 836 Views Read answer →
When a list has no rows for assignment to sobject - Your trigger is only firing after update and your test does not perform any updates, only the insert of an account and opportunity. Do you intend for Implementation records to be inserted on the insert of a new opportunity? If so, you should make your trigger after…
Answered Apr 17, 2023 · 5.7K Views Read answer →
The only way Salesforce schema builder export works is when using an ERD tool. I recommend you try AbstraLinx, you will be able to export your schema as a PNG or print it directly.
Answered Apr 17, 2023 · 1.5K Views Read answer →
If downtime is a concern, then use one of the online schema change tools for character set to move a table: pt-online-schema-change. You can perform most types of ALTER TABLE statements with nearly no downtime. See more of my notes about that in my answer here: https://dba.stackexchange.com/a/313406/2703 gh-ost. This…
Answered Mar 16, 2023 · 828 Views Read answer →
Learners asking and answering questions on the same topics — follow their questions and join in.
Cyber Security learner
167Questions 203AnswersCyber Security learner
158Questions 179AnswersCyber Security learner
137Questions 158AnswersCyber Security learner
118Questions 142AnswersCyber Security learner
110Questions 141AnswersSalesforce learner
103Questions 162AnswersGuides, tips and career advice on Salesforce from JanBask experts.
Salesforce Cost for Salesforce Certification: Exam Fees by Type, Retakes & Hidden Costs
Salesforce certification exam fees run $75 to $4,500, and most cost $200. See cost by role, retakes, taxes, discounts, and…
Salesforce Salesforce Admin Certification Cost 2026: Exam Fees, Retake & Other Expenses
Learn the Salesforce Admin certification cost in 2026, including the exam fee, retake cost, taxes, discounts, preparation…
Salesforce How to Get Into Salesforce With No Experience
Wondering if you can get a Salesforce job with no experience? Learn how to pick a career path, build real skills, and land your…
Salesforce How to Become a Salesforce Developer Without Experience
No coding background? Learn how to become a Salesforce Developer step by step - skills to build, projects to create, and how to…
Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.
Step-by-step Salesforce guides from industry experts
Common Salesforce interview questions, answered