大家都是字典去重,大概这样,18、19是表格id
function main(){
let d = {}
let s = Application.Record.GetRecords(18)
for (let i of s.records) {
let t = i.fields["文本"]
d[t] = 1
}
for (let i of Object.keys(d)) {
Application.Record.CreateRecords(19, [{"fields":{"文本": i}}])
}
}
main()
创作者俱乐部成员