Hot answers tagged

2

One area to think about (not sure how important) is the Account Case relations. With 1.6m records, I'd be wary of hitting the 10k or less best practice for lookups( and master-details) that have impacts on visibility. This may not matter depending upon the how many moves/service/claims requests per account or if you sharing settings are public read-write on ...


1

Beyond bulkification, I think you are likely to have an issue with this line: Trigger.oldMap.get(rooms.Id).addError('Cannot add tenants to this room.'); Because it looks to me like you are trying to retrieve a Tenant_details__c record using the id from a room_detail__c record. Regarding bulkification, your updates are outside of the for loop, you could ...


1

The issue here is that your update statement is updating the list of timesheet records, whereas you need it to update a list of contacts. I would rewrite your code as follows: public class batchClass implements Database.Batchable<sObject>{ public Database.QueryLocator start(Database.BatchableContext bc) { String query = 'SELECT Id, ...


1

There is an open Idea on Salesforce Community for that topic. You can upvote: Allow user to choose any field to display in "instant results" in Global Search However, if you want to customize the Lookup Search Results (Second Line Information). This is what I found. IMPORTANT: You need to go through Classic to make those changes. https://success....


Only top voted, non community-wiki answers of a minimum length are eligible