Following code will Extract list of all the objects in Salesforce and their fields in Map. As you can see that in this recipe we are using Schema class getGlobalDescribe() method to get all the SObjects and then we are iterating their key values which are SObject name to get all related field using the …