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
Kannan RamasamyKannan Ramasamy 

Apex method is not invoking, if the user is other than admin user

 

I am invoking external service to update Account information into my  DB. This service will be invoked  while creating,updating and delete an Account.. This works fine if i logged as administrator user.  But Apex method is not invoking if i logged as other than administrator. Do i need use global access specifier?

Best Answer chosen by Admin (Salesforce Developers) 
spraetzspraetz

Are you calling into Force.com via a webserivce?

 

If so, you need to set up the user's profile to have access to the Apex class that contains the webservice. 

All Answers

spraetzspraetz

Are you calling into Force.com via a webserivce?

 

If so, you need to set up the user's profile to have access to the Apex class that contains the webservice. 

This was selected as the best answer
jsfrbjsfrb

HI spraetz,

 

I having the same issue, its working perfectly on Admin user but its not invoking when the VF page is used by a different user. The classes and VF page are enabled on all profiles so I can't find a reason why its not being invoked. I already search everywhere but I couldn't find any answer. Please help.

 

Thanks,

Jsfrb