New answers tagged

1

You need to ensure that the ShippingState field has the same value as the BillingState field before records are saved. You need to invoke it in before insert context and assign BillingState to ShippingState Trigger: trigger AccountTrigger on Account (before insert) { if(Trigger.isBefore && Trigger.isInsert) AccountTriggerHandler....


0

Hi I think you are looking to query account where ShippingState and BillingState are equals. In this scenario, you can create a formula field, the return type for formula field will be boolean/Checkbox. Formula should be ShippingState = BillingState. This formula field will return you either true or false. You can use this formula field in your query ...


0

As far as this requirement is concerned, you are going a little bit off direction, the requirement says to accept a List of Accounts and not return List of Accounts and ensure that the ShippingState field has the same value as the BillingState field. So you will have to create a method Which accepts list of Account records. Loop through the records and ...


5

method named accountsByState that accepts a state abbreviation as a string and returns a List of Account objects You are not passing the parameter for state. public static List<Account> accountsByState(String stateAbbr) { return [SELECT Id, Name, BillingState FROM Account WHERE BillingState=:stateAbbr]; }


0

There are fields for converted records on the lead object. Which are not visible on the layout but you can use them in the formula or SOQL. Here are those fields Account - ConvertedAccountId Contact - ConvertedContactId Opportunity - ConvertedOpportunityId In the Advanced formula editor, you can find those fields. Sample Query SELECT Id, ...


0

Firstly there are many syntactical errors in your formula. Also, I don't think there is a need to use IF in your formula Your validation rule should be something like below OR( AND ( ISPICKVAL( GW_Volunteers__Volunteer_Status__c , "ACTIVE"), NOT(ISBLANK( Vol_BDCH_Leaving_Date__c )), NOT(ISBLANK( Reason_For_Leaving__c )) ),...


1

Your validation rule is not syntactically valid because it is missing numerous commas and parentheses. A minimally valid version could look something like this: IF( ISPICKVAL( GW_Volunteers__Volunteer_Status__c , "ACTIVE")), NOT(ISBLANK( Vol_BDCH_Leaving_Date__c ) && NOT(ISBLANK( Reason_For_Leaving__c ), IF(ISPICKVAL( ...


2

You are on the right way. You just need to switch to the Related Lists and drag Notes & Attachments to layout. Also make sure you are adding the related list to the proper layout.


Top 50 recent answers are included