String objectApiName = "SalesOrderObj" // 对象APIName String objectId = context.data._id as String; // 当前对象数据ID,“fxiaokeAIExample”//对象数据ID String dateFieldApiName = "field_10f3f__c" // 日期字段APIName Date newDate = "2025-01-20" // 新的日期值,Date.now()是当前日期 def (Boolean error, Map data, String errorMessage) = Fx.object.update(objectApiName, objectId, [(dateFieldApiName): newDate], UpdateAttribute.builder().build()) if (error) { log.info("更新日期字段值失败,原因:" + errorMessage) } else { log.info("更新日期字段值成功") }
上一篇:更新指定数据金额字段
下一篇:没有了!