高章伟
2023-03-03 d8dc84a3d56df839895f1c417a4d9cbee763d262
force-app/main/default/classes/SoapApi.cls
@@ -42,9 +42,6 @@
            layoutItem.layoutComponents.add(layoutComponent);
            return dlr;
        } else {
            System.debug('=====1====='+sObjectType);
        System.debug('=====2====='+recordTypeIds);
        System.debug('=====3====='+layoutName);
            return soap.describeLayout(sObjectType, layoutName, recordTypeIds);
        }
    }
@@ -53,11 +50,7 @@
    // Mapには、RecordTypeId(18桁) => {api名 => r,w,wm}
    // 如果Object中设定记录类型,该方法不能取出对应记录类型的项目,修改后方法名:getEditRWByRecordType --下一个方法
    public static Map<String, Map<String, String>> getEditLayoutItemRW(String sObjectType, String[] recordTypeIds) {
        System.debug('=====1====='+sObjectType);
        System.debug('=====2====='+recordTypeIds);
        PartnerSoapSforceCom.DescribeLayoutResult dlr = describeLayout(sObjectType, null, recordTypeIds);
         System.debug('=====1====='+sObjectType);
        System.debug('=====2=====--------');
        Map<String, Map<String, String>> rtn = new Map<String, Map<String, String>>();
        for (Integer lidx = 0; lidx < dlr.layouts.size(); lidx++) {
            String recordTypeId = dlr.recordTypeMappings[lidx].recordTypeId;