Persistent Systems
TCS Interview Questions and Answers
Q1. How security works in apex, let's say user don't have access on Phone field and SELECT id, Name, Phone from Account WITH_SECURITY_ENFORCED how this query works?
In Apex, security is enforced by default. If a user doesn't have access to a field, they won't be able to query it.
In Apex, security is enforced by default, meaning that users can only access data they have permission to see.
If a user doesn't have access to the Phone field in the Account object, they won't be able to query it even with WITH_SECURITY_ENFORCED.
The SELECT id, Name, Phone from Account WITH_SECURITY_ENFORCED query will only return the id and Name fields for users ...read more
Q2. how to change create date while uploading the record through data loader?
You can change the create date while uploading records through Data Loader by enabling the 'Allow Insert' option.
Enable 'Allow Insert' option in Data Loader settings
Map the 'Created Date' field in the mapping file to the desired date/time value
Ensure the user has the necessary permissions to change the create date
Q3. how wire method works, while importing data want to add record inside wire method in Jsfile how?
Wire method in Salesforce is used to fetch data from Apex controller to Lightning Web Component. Adding records inside wire method in JS file involves using imperative Apex to create records.
Use @wire decorator in Lightning Web Component JS file to call an Apex method
Inside the wire method, use imperative Apex to create records by calling the createRecord method from the Lightning Data Service
Pass the record data as parameters to the createRecord method
Q4. What is relation between account and contact?
Account and contact have a parent-child relationship in Salesforce.
An account represents a company or organization, while a contact represents an individual associated with that account.
An account can have multiple contacts, but a contact can only be associated with one account.
Contacts are linked to accounts through a lookup relationship.
Account and contact records can be related using the AccountId field on the contact object.
Q5. Tell me sales cloud sales process?
The sales cloud sales process is a systematic approach to managing and tracking sales activities from lead generation to closing deals.
Lead generation: Identifying potential customers and capturing their information.
Opportunity management: Qualifying leads and converting them into opportunities.
Sales pipeline: Tracking the progress of opportunities through various stages.
Sales forecasting: Predicting future sales based on the pipeline and historical data.
Quote and proposal ma...read more
Q6. can we change chunk size in batch job
Yes, we can change the chunk size in a batch job.
Chunk size can be changed by setting the batch size parameter in the start method of the batch class.
The default chunk size is 200 records, but it can be increased or decreased based on the requirements.
Changing the chunk size can impact the performance of the batch job, so it should be tested thoroughly.
Example: If you want to process records in batches of 100, you can set the batch size parameter to 100.
Q7. Explain master detail?
Master-detail is a relationship between two objects where the detail object is dependent on the master object.
Master-detail is a one-to-many relationship.
The master object controls certain behaviors of the detail object.
Deleting the master record automatically deletes the detail records.
Security and sharing settings of the master record are inherited by the detail records.
Roll-up summary fields can be created on the master object to display aggregated data from the detail rec...read more
Q8. what is batch job
A batch job is a process that runs in the background to process large volumes of data in chunks.
Batch jobs are used in Salesforce to handle large data volumes efficiently.
They are typically scheduled to run at off-peak times to minimize impact on system performance.
Batch jobs can be used for data cleansing, data migration, and other data processing tasks.
Example: A batch job that updates all customer records with a new discount percentage.
Interview Process at TCS
Top Salesforce Developer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month