APL函數(shù)代碼開放場(chǎng)景-關(guān)聯(lián)對(duì)象數(shù)據(jù)范圍規(guī)則Groovy代碼示例
2025-01-10 16:34:58 33 本站
//動(dòng)態(tài)關(guān)聯(lián)字段可以綁定的對(duì)象 List objectApiNames = ["object_KkdtL__c","AccountObj","object_qep6N__c"] def list = [] objectApiNames.each { item -> RelatedObjectData objRelate = RelatedObjectData.builder() .apiName(item) .build() list.add(objRelate) } // log.info(list) RelatedObject relatedObject = RelatedObject.builder() .objectList(list) .build() return relatedObject