SObjectBatch function ( final String arg0 , final String arg1 , final String arg2 , final String ... arg3 ) { version . requireAtLeast ( 36 , 0 ) ; final String loc0 = composeFieldsParameter ( arg3 ) ; addBatchRequest ( new BatchRequest ( Method . GET , rowBaseUrl ( arg0 , arg1 ) + "srini_string" + notEmpty ( arg2 , "srini_string" ) + loc0 ) ) ; return this ; }
add retrieval of related sobject fields by identifier . for example account has a relation to createdby . to fetch fields from that related object user sobject use : batch.addgetrelated `` account '' , identifier , `` createdby '' , `` name '' , `` id '' concode_field_sep String apiPrefix concode_elem_sep List<BatchRequest> batchRequests concode_elem_sep long serialVersionUID concode_elem_sep String SOBJECT_TYPE_PARAM concode_elem_sep Version version concode_elem_sep int MAX_BATCH concode_field_sep SObjectBatch addCreate concode_elem_sep SObjectBatch addGeneric concode_elem_sep SObjectBatch addGeneric concode_elem_sep SObjectBatch addGet concode_elem_sep Version getVersion concode_elem_sep SObjectBatch addLimits concode_elem_sep String composeFieldsParameter concode_elem_sep SObjectBatch addGetByExternalId concode_elem_sep SObjectBatch addUpsertByExternalId concode_elem_sep SObjectBatch addDelete concode_elem_sep String rowBaseUrl concode_elem_sep String rowBaseUrl concode_elem_sep SObjectBatch addQuery concode_elem_sep SObjectBatch addUpdateByExternalId concode_elem_sep SObjectBatch addQueryAll concode_elem_sep SObjectBatch addSearch concode_elem_sep Class[] objectTypes concode_elem_sep SObjectBatch addUpdate concode_elem_sep List<BatchRequest> getBatchRequests concode_elem_sep void addBatchRequest concode_elem_sep String typeOf