
PwC


10+ PwC Salesforce Developer Interview Questions and Answers
Q1. Trigger to prevent user from deleting Account if any opportunity record is associated with it
Use a trigger to prevent deletion of Account if any Opportunity record is associated with it
Create a before delete trigger on Account object
Query for related Opportunity records using SOQL
If any Opportunity records are found, throw an error message to prevent deletion
Q2. Write an Apex Triggers on Opportunity
An Apex trigger on Opportunity can automate processes and enforce business logic.
Use the 'before insert' and 'before update' events to modify data before it is saved.
Use the 'after insert' and 'after update' events to perform actions after data is saved.
Use the 'before delete' event to prevent deletion of records.
Use the 'after delete' event to perform actions after records are deleted.
Use the 'after undelete' event to perform actions after records are restored from the Recyc...read more
Q3. Screen flow, Why we use Subflow?
Subflows are used in screen flows to break down complex processes into smaller, reusable components.
Subflows help in organizing and modularizing the flow logic.
They allow for reusability of common flow elements across multiple screen flows.
Subflows can be called from multiple places within a screen flow, reducing redundancy.
They make it easier to maintain and update the flow logic.
Subflows can improve the overall performance of the screen flow by reducing complexity.
Q4. Roll up summary trigger to populate number of open opportunities on account
Use a roll up summary trigger to populate the number of open opportunities on an account
Create a trigger on Opportunity object to update the count on Account object
Query for open opportunities related to the account
Update the count field on the Account object with the number of open opportunities
Q5. What is Salesforce What is soql
Salesforce is a cloud-based CRM platform that helps businesses manage customer interactions and data.
Salesforce is a customer relationship management (CRM) platform
It is cloud-based and accessible from anywhere
It helps businesses manage customer interactions and data
It offers a range of tools and features for sales, marketing, and customer service
SOQL (Salesforce Object Query Language) is a query language used to search your organization's data for specific information
Q6. What is trigger What is apex
A trigger is a piece of code that executes before or after a record is inserted, updated, or deleted in Salesforce.
Triggers are used to automate processes and enforce business logic.
Triggers can be written in Apex and are associated with a specific object.
Triggers can be used to update related records, send emails, or perform other actions.
Triggers can be created using the Salesforce user interface or the Salesforce Developer Console.
Q7. what is mixed dml error?
Mixed DML error occurs when DML operations on setup and non-setup objects are mixed in a single transaction.
Mixed DML error occurs when DML operations are performed on both setup and non-setup objects in a single transaction.
Setup objects include objects like User, Profile, PermissionSet, etc.
Non-setup objects include custom objects created by the user.
To avoid mixed DML error, separate the DML operations on setup and non-setup objects into different transactions.
Q8. What is ValidateInput
ValidateInput is a method used to check and validate user input in a software application.
ValidateInput ensures that the data entered by the user meets certain criteria or constraints.
It helps prevent errors and security vulnerabilities by verifying the input before processing it.
Examples include checking for valid email addresses, ensuring numeric values are within a specified range, and validating required fields.
Q9. Are you flexible with timings
Yes, I am flexible with timings.
I understand that the nature of the job may require me to work outside regular hours.
I am willing to adjust my schedule to meet project deadlines.
I am open to discussing flexible work arrangements with my team.
For example, I have worked on projects that required me to work weekends or late nights to meet client needs.
Q10. Sorting algorithm
A sorting algorithm is a method for arranging elements in a specific order.
Sorting algorithms can be categorized as comparison-based or non-comparison-based.
Common sorting algorithms include bubble sort, insertion sort, selection sort, merge sort, and quicksort.
Sorting algorithms have different time and space complexities, which affect their efficiency.
Example: Sorting an array of strings in alphabetical order using quicksort.
Q11. What is trigger in salesforce
A trigger in Salesforce is a piece of code that is executed before or after specific data manipulation events, such as insert, update, or delete.
Triggers are used to perform custom actions on records in Salesforce.
Triggers can be written in Apex programming language.
Triggers can be executed before or after specific events like insert, update, or delete.
Triggers are associated with a specific object in Salesforce.
Example: A trigger can be used to automatically update a related...read more
Q12. diff. between SOQL and SOSL
SOQL is used to query records from Salesforce objects, while SOSL is used to search for records across multiple objects.
SOQL stands for Salesforce Object Query Language
SOQL is used to query records from a single Salesforce object
SOSL stands for Salesforce Object Search Language
SOSL is used to search for records across multiple Salesforce objects
SOQL queries are more structured and specific, while SOSL searches are more flexible and can search across multiple objects
Q13. type of flows in salesforce
There are three types of flows in Salesforce: Autolaunched Flows, Screen Flows, and Scheduled Flows.
Autolaunched Flows are triggered by a process or Apex trigger and do not require user interaction.
Screen Flows guide users through a series of screens to collect and display information.
Scheduled Flows are triggered by a schedule and can automate repetitive tasks.
More about working at PwC

Interview Process at PwC Salesforce Developer

Top Salesforce Developer Interview Questions from Similar Companies








Reviews
Interviews
Salaries
Users/Month

