Goutam - Brainstorming Paper For SFA Sheet

You might also like

Download as odt, pdf, or txt
Download as odt, pdf, or txt
You are on page 1of 10

Salesforce Admin

First Brainstorming Test Paper

1. Validate that the e-mail id is in the Format.


Ans
NOT(REGEX(‘*[a-zA-Z0-9._|\\\\%#~"=?&/S4*!}{+-]+@[a-zA-Z0-9.-]+\\.[a-zA-2)
{2,4}S’))

2. Prevents users from editing opportunity products after


an opportunity is closed. Create the validation rule on
opportunity products.

Ans.
OR( ISPICKVAL( Opportunity.StageName , 'closed won') ,
ISPICKVAL(Opportunity.StageName, 'closed lost') )

3. Allows a custom field called Commit Amount to be increased but not


decreased after initial creation.
Ans.
AND(
ISCHANGED(Commit_Amount__c)
PRIORVALUE(Commit_Amount__c ) > Commit_Amount__c
)
4. Validates that a custom field called Employee Count is a non-negative even number.

Ans.
AND(
Employee_Count__c<0
MOD( Employee_Count__c ,2) != 0 || Employee_Count__c < 0
)
5. Validates that opportunity Amount is positive and no more than $10 million.

Ans.
OR(
Amount<=0
Amount>10000000
)
6. How to make the screen components read-only? Saswat Kumar at Learnowx
uses Salesforce Flow to streamline Sales Processes. Kumar has a requirement
to display the following logged-in user fields on a screen flow in the read-only
mode:
1. First Name
2. Last Name
3. Email
4. Mobile
Ans.

Screen Element :

Flow Structure:
7. Send an email to the contact email ID whenever a contact is created.

Ans.
E-Mail Action Button:

Record Trigger Flow Condtion:


Condtions to Check Contact:

8. Create a flow which contains a picklist with two options (Contact and Opportunity). If the
user selects Contact then create a related contact and if the user selects Opportunity
then create an Opportunity record.

Ans.

Screen Flow:
Create Contact Element Conditions

Create opportunities Condition


9. On account creation if annual revenue is >=10000 then create one related opportunity to
account and send email to the account owner. Also update the description field of the
account saying 'Opportunity is created'.

Ans.
Record trigger Flow

Create Opportunity Condition:


Update Description:

Send Email:
10. Count total contact records related to an Account when:
○ Contact is created.
○ Contact is updated to be linked with an account.
○ Contact is updated to be linked with another account.
○ Contact is deleted.

Ans.

Part-1,2 Create and Update Contact

Count Contacts
Update Contact:
Record Trigger Flow:

You might also like