When setOrgWideEmailAddressId is not set, sender will be excutor.
Salesforce dev blog
Technical blog about Salesforce
Search In This Blog
2023-12-27
2023-08-08
Not Admin User, How to delete/insert FinServ__FinancialAccount by Apex
Apex should be "without sharing".
Remove sObject.SObjectType.getDescribe().isDeletable() or sObject.SObjectType.getDescribe().isUpdateable() or sObject.SObjectType.getDescribe().isCreateable()
Inactive record in FinServ__RollupByLookupConfig__c, if need.
To Delete
Before delete, update "OwnerId" to current user. Like: FinServ__FinancialAccount.OwnerId = UserInfo.getUserId(). Then user can delete FinServ__FinancialAccount record.
To insert
If you want the special user can edit this FinServ__FinancialAccount record, don't forget to update "OwnerId" to the special user's id after insert.
2022-12-23
Catch System.LimitException in LWC
System.LimitException cannot catch by [try...catch...] in Apex.
When call Apex method in lwc and LimitException occurred in Apex source, [try...catch...] also not working in js.
2022-11-30
Custom auto open utility bar without popout button by aura
<!-- use lightning:utilityBarAPI -->