Forum Replies Created

  • NAVEEN

    Member
    January 16, 2018 at 7:25 am in reply to: How can I get all Field API names of Accounts in Salesforce?

    By using Schema we can get any Object field API names and labels also.

    Schema.getGlobalDescribe().get(selectedObject).getDescribe().fields.getMap();

    From Above method we get A Map. In this map Keys are API names of field for selectedObject.

     

    U can use below for Accounts API Names

    // get the Account Info

    Schema.DescribeSObjectResult r = Account.sObjectType.getDescribe();

    // init list of strings to stores the API names of Accounts
    List<String>apiNames = new list<String>();
    for(string apiName : r.fields.getMap().keySet()){
    apiNames.add(apiName);
    System.debug(apiName);
    }
    System.debug(apiNames);

     

    • This reply was modified 6 years, 11 months ago by  NAVEEN.
  • NAVEEN

    Member
    October 1, 2016 at 5:20 am in reply to: What is the purpose of BATCH APEX in Salesforce?

    Thank you Ajit Kumar,

    U said "When we have to Update or Insert bulkdata in salesforce or we have to make web services callouts then we use the batch apex."

    Here Bulkdata means... How much?  We can Process bulkdata on Apex class ... So  what are The Batch class have increased governor limits then apex classes?

    Could give Brief Explanation?

  • NAVEEN

    Member
    September 27, 2016 at 8:43 am in reply to: How can show active Parent records on lookup in Salesforce?

    Got it, It can be done by Lookup Filter .

  • NAVEEN

    Member
    September 20, 2016 at 5:41 am in reply to: How ISBLANK() is different from ISNULL() in Salesforce?

    ISBLANK() - return true if "TEXT filed" is empty

    ISNULL() - return true if "Number filed" is empty

Popular Salesforce Blogs