• durgaprasad vdp
  • NEWBIE
  • 0 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 2
    Replies
how to transfer records from one batch class to another batch class
There was an unexpected error while verifying this challenge. Usually this is due to some pre-existing configuration or code in the challenge Org. We recommend using a new Developer Edition (DE) to check this challenge. If you're using a new DE and seeing this error, please post to the developer forums and reference error id: BHWUFQWM
  Map<String, Schema.SObjectType> schemaMap = Schema.getGlobalDescribe();
        Schema.SObjectType sobjSchema = schemaMap.get(objtype);
        Map<String, Schema.SObjectField> fieldMap = sobjSchema.getDescribe().fields.getMap();
        List<fieldMetaData> fmdList = new List<fieldMetaData>();
        for (String fieldName: fieldMap.keySet()) {  
            String fieldlabel;
            String fieldType;
            //It provides to get the object fields label.
            fieldlabel = fieldMap.get(fieldName).getDescribe().getLabel();
          
            Schema.DisplayType FldType = fieldMap.get(fieldName).getDescribe().getType();
            fieldType = string.valueOf(FldType);
            system.debug('fieldlabel>>>>>'+fieldlabel);
             system.debug('fieldAPI****>>>>>'+fieldName);
           
            fieldMetaData fmd = new fieldMetaData();
            fmd.fieldLabel = fieldlabel;
            fmd.fieldapi = fieldName;
            fmd.fieldType = fieldType;
            fmdList.add(fmd);
        }
        return fmdList;

here i am getting API  small letters like Test__c as a test__C
can you please suggest me anyone
how to transfer records from one batch class to another batch class