Automation Flashcards

1
Q

The sales manager at Prestige Worldwide has requested that anytime a new account is created in Salesforce, a new opportunity should automatically be created and associated with the newly created account. What can be used to accomplish this? Choose one

A. Create a workflow rule
B. Write a before trigger
C. Write an after trigger
D. Create a formula field

A

C

C is correct because an after trigger can be used for two purposes, to access field values that are set by the system and to effect changes in other records

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the four actions that a workflow rule can perform?

A
Four actions are:
assigned a task 
send an email 
update a field
send an outbound message
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Why would someone use a before trigger?

A

Before triggers are used to update or validate record values before their save to the database.

This means you do not have access to a record ID since the record has not been saved yet.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a Formula field?

A

formula field is used to calculate the value of a field based off one or more other fields.

formula field cannot be used to create records

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Which of the following can be used to automatically create and associate an opportunity to an account when it is created? Select all that apply

A. Process Builder
B. Workflow rule
C. Assignment rule
D. Before trigger
E. After trigger
F. Flow
A

A, E, F

Process Builder, after trigger, and Flow can be used to automatically create an opportunity and Associate it to an account when it is created.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What type of field cannot be used in a formula field?

A

Long text area, encrypted, or description fields

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Does a field being referenced by a formula field prevent that field from being deleted?

A

Formula fields prevent a user from deleting a field if it is being referenced by a formula field

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the return types of a formula field?

A

8 return types

Checkbox, currency, date, date and time, time, number, percent, text

How well did you know this?
1
Not at all
2
3
4
5
Perfectly