Deloitte
10+ Bayside Journal Interview Questions and Answers
Q1. 1. can we extract related object from parent object and vice versa and how? 2. what is sharing rules and what all things can you do using it? 3. flows 4. features of permission sets ( i included expiring of prm...
read moreInterview questions for Salesforce Consultant
Extract related object from parent object and vice versa using relationship fields
Sharing rules control access to records based on criteria
Flows automate business processes
Permission sets grant additional permissions to users
Frameworks like Apex and Lightning provide structure for development
Role hierarchy determines access to records based on job function
Plugins like Salesforce Inspector help with debugging
Mandatory fields can be ...read more
Q2. how to convert one to one relation to many to many relationship
To convert one to one relation to many to many relationship, create a junction object and establish relationships.
Create a junction object to serve as the intermediary between the two objects.
Create two lookup fields on the junction object, one for each object in the one to one relationship.
Update the existing records to associate them with the junction object.
Create new records in the junction object to establish the many to many relationship.
Use junction object reports and ...read more
Q3. how to show page layouts based on user location
Page layouts can be shown based on user location by using Salesforce's record types and page layout assignment rules.
Create multiple record types for the object
Assign different page layouts to each record type
Create page layout assignment rules based on user location
Specify the criteria for each rule, such as user's country or region
Assign the appropriate page layout to each rule
Q4. types of ids 15 and 18 what are they?
IDs 15 and 18 are Salesforce record IDs.
Salesforce record IDs are unique identifiers for records in the Salesforce platform.
ID 15 is a case-sensitive 15-character ID, while ID 18 is a case-insensitive 18-character ID.
These IDs are used to reference and identify specific records in Salesforce.
They are commonly used in queries, data manipulation, and integration processes.
Q5. how to check security through apex
To check security through Apex, use System.runAs() to run code with different user contexts.
Use System.runAs() to execute code as a specific user
Check user permissions using the UserRecordAccess object
Verify field-level security using the Schema.DescribeFieldResult class
Use the Security.stripInaccessible() method to remove inaccessible records from query results
Q6. What are the types of trigger in Salesforce
Types of triggers in Salesforce include before triggers, after triggers, and future triggers.
Before triggers are used to update or validate record values before they are saved to the database.
After triggers are used to access field values that are set by the system (such as a record's ID) and to affect changes in other records.
Future triggers are used to perform operations asynchronously, such as sending email notifications or updating related records.
Examples: before insert ...read more
Q7. write batch apex to move all attachments to files
Batch Apex to move attachments to files
Create a Batch Apex class that implements the Database.Batchable interface
In the start method, query for all attachments that need to be moved
In the execute method, loop through the attachments and create corresponding files
In the finish method, delete the attachments that have been successfully moved
Q8. Why are sharing rules used?
Sharing rules are used to extend sharing access to users in Salesforce beyond the organization-wide defaults.
Sharing rules are used to grant access to records that a user does not own.
They are used to extend sharing access beyond the organization-wide defaults.
Sharing rules can be based on criteria or ownership.
They are used to give read or read/write access to specific groups of users.
Sharing rules are often used in conjunction with role hierarchy and sharing settings.
Q9. types of soql statements
Types of SOQL statements
SELECT statement is used to retrieve records from one or more objects
UPDATE statement is used to modify existing records
DELETE statement is used to delete records
INSERT statement is used to create new records
UPSERT statement is used to either update existing records or insert new records
SOQL also supports aggregate functions like COUNT, SUM, AVG, etc.
SOQL can be used to query data from standard and custom objects
Q10. Best practices of apex class
Best practices for writing Apex classes in Salesforce
Follow naming conventions for classes, variables, and methods
Keep classes focused on a single purpose to improve readability and maintainability
Use comments to explain complex logic or business rules
Avoid using hard-coded values and use custom settings or custom metadata types instead
Write unit tests to ensure code coverage and catch any potential issues early on
More about working at Deloitte
Top HR Questions asked in Bayside Journal
Interview Process at Bayside Journal
Reviews
Interviews
Salaries
Users/Month