Untitled

mail@pastecode.io avatar
unknown
apex
2 years ago
190 B
2
Indexable
Never
trigger UpdateMyCustomField on User (after insert, after update) {


User u = Trigger.new[0];
u.MyCustomField__c = /*some calculations here*/
update u;

/*something else here*/

}