Amarkant Jadhav
IndividualForum Replies Created
-
Amarkant
MemberJanuary 12, 2018 at 7:08 pm in reply to: Is there any way to select all fields of object via soql query in Salesforce?In developer console , go to open -objects- objectname- select the fields using shift button on keyboard - click on Query button present at the bottom of same screen. You can see query form with all fields in query editor of sales force.
-
Similar to the SQL rollback. Used to rollback the DML Transactions performed on the database in a single transaction sequence.
For more details go through following link Transaction control in Salesforce
-
MAP<ID,Opportunity> os = new MAP<Id,Opportunity>([Select ID from Opportunity]);
SET<ID> keys = os.keyset();
String s = 'SELECT RecordTypeId, COUNT(Id) os FROM Opportunity Where Id IN ';
s+=':keys GROUP BY RecordTypeId';
AggregateResult[] ars = Database.query(s);
System.debug(ars[0].get('RecordTypeId')); -
Amarkant
MemberJuly 17, 2017 at 3:39 am in reply to: Why 'after undelete' trigger is not included in salesforce?'after undelete' trigger is available in Salesforce but for limited set of objects.
Following is the list of objects on which after undelete will work :
Account
Asset
Campaign
Case
Contact
ContentDocument
Contract
Custom objects
Event
Lead
Opportunity
Product
Solution
TaskThe after undelete trigger events only run on top object. For example, if you delete an Account, an Opportunity may also be deleted. When you recover the Account from the Recycle Bin, the Opportunity is also recovered. If there is an after undelete trigger associated with both the Account and the Opportunity, only the Account after undelete trigger event executes.
-
Amarkant
MemberJune 15, 2017 at 4:51 am in reply to: How to mass update records on click of button in Salesforce?To achieve this you can fetch all the records present in your list view in apex and update that. You will get more help search for StandardSetController methods.
-
Amarkant
MemberJune 8, 2017 at 3:00 am in reply to: How to mass update records on click of button in Salesforce?Do you want to update the all records present in the object or just the records present in particular list view from which you are clicking the button ?
-
Amarkant
MemberJune 7, 2017 at 6:46 am in reply to: Run Batch Apex class without stopping in Salesforce?We can have Integer Iterator to achieve this instead of Query Locator in Batch Apex.
-
Amarkant
MemberJune 7, 2017 at 3:02 am in reply to: Run Batch Apex class without stopping in Salesforce?What is you exact scenario ?
One thing you can do to achieve this, start the next batch in finish method of first batch.
-
Amarkant
MemberJune 7, 2017 at 2:58 am in reply to: What is security access for child record when master is private in SalesforceIn case of junction object, child object always inherits the security settings from his PRIMARY MASTER object. The object included in first master detail relationship is becomes the primary master object.