shree sashti
02/19/2025, 10:54 AMNElliott
02/19/2025, 12:02 PMshree sashti
02/19/2025, 12:05 PMNElliott
02/19/2025, 12:19 PMNElliott
02/19/2025, 12:22 PMconst scriptSearchObj = search.create({
type: "script",
filters:
[
["isinactive","is","F"],
"AND",
["owner","anyof","1234"]
],
columns:
[
search.createColumn({name: "internalid", label: "Internal ID"}),
search.createColumn({name: "owner", label: "Owner"})
]
});
Iterate the results and do:
record.submitFields({
type: 'script',
id: the_Record_Internal_ID,
values: {
owner: the_Updated_Employee_ID
}
});
shree sashti
02/19/2025, 3:30 PMNElliott
02/19/2025, 3:38 PM