Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Aashish Chaursiya

Aashish Chaursiya

Community Learner
Share
129Questions
127Answers
198.5KViews on questions

How to resolve this error - invalid_cross_reference_key?

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

Salesforce

Answered Apr 26, 2023 · 1.2K Views Read answer →

How can createddate be larger than lastmodifieddate?

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…

Salesforce

Answered Apr 26, 2023 · 682 Views Read answer →

How to resolve the issue related to the order of execution in Salesforce?

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…

Salesforce

Answered Apr 26, 2023 · 968 Views Read answer →

When can I use (SeeAllData=true)?

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…

Salesforce

Answered Apr 18, 2023 · 1.3K Views Read answer →

How to apply css to inner elements of lightning input lwc?

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…

Salesforce

Answered Apr 18, 2023 · 4.0K Views Read answer →

How can I resolve the issue when using ISPICKVAL in formula?

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…

Salesforce

Answered Apr 18, 2023 · 998 Views Read answer →

How to resolve the uncaught typeerror cannot read property style of null?

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…

Salesforce

Answered Apr 17, 2023 · 836 Views Read answer →

What must be done when a list has no rows for assignment to

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…

Salesforce

Answered Apr 17, 2023 · 5.7K Views Read answer →

Explain the character set to move a table?

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…

SQL Server

Answered Mar 16, 2023 · 828 Views Read answer →

More members from the Salesforce community

Learners asking and answering questions on the same topics — follow their questions and join in.

Latest Salesforce Blogs

Guides, tips and career advice on Salesforce from JanBask experts.

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.