function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Priya MishraPriya Mishra 

approval process isue.

Hi All,

I am facing issue with approval process. 
1. Email is not sendi g once a approval request is created.
2. how to know  what are all the profile is having acess to a custom object.

Please help me to solve this.

Thanks in advance.
SwethaSwetha (Salesforce Developers) 
HI Priya,
Can you setup debug logs to see if there is any error?
Also, can you enable email logs (Steps listed on https://help.salesforce.com/s/articleView?id=sf.email_logs_edit.htm&type=5) in your org and see what is the mail event type (R/D/T/P) for the emails that aren't getting sent?

R - Reception The email was successfully received.
D - Delivery The email was successfully sent.
T - Transient Failure
The email transmission was delayed. Salesforce retries delivery over a 24-hour period. The first retry occurs five minutes after the first transient failure, the second occurs ten minutes after that, the third twenty minutes after that, and so on.
P - Permanent Failure The email could not be delivered.

Email log reference: https://help.salesforce.com/s/articleView?id=sf.email_logs_format.htm&type=5


>> To find which profiles have read acess to the custom object, run below SOQL
SELECT Profile.Name FROM PermissionSet WHERE IsOwnedByProfile = true AND Id IN ( SELECT ParentId FROM ObjectPermissions WHERE PermissionsRead = true AND SObjectType = 'MyObject__c' )

Ref:https://salesforce.stackexchange.com/questions/153986/query-which-profiles-have-read-access-to-specific-object

Also, see field reference for ObjectPermissions

If this information helps, please mark the answer as best. Thank you
Priya MishraPriya Mishra
thanks for reply can we connect pls if you are available i will sen you google meet link. 

thanks.
SwethaSwetha (Salesforce Developers) 
I am more comfortable communicating via the comment section here. Happy to guide you if you can tell me where specifically you are stuck. Thank you