New answers tagged

0 votes

Can I add suffix in urlMapping for HttpPost in RestResource

You can specify a wildcard in order to allow the class to respond to all suffixes: @RestResource(urlMapping='/api/v1/*') You can then determine the resource by reading the value from RestContext: ...
user avatar
  • 439k
0 votes
Accepted

How to Display custom error code and custom error message in catch block?

you can try using a new apex class, with two properties: code and message: public class CustomExceptionResponse { private String code; private String message; public ...
user avatar
  • 422
0 votes

Disable "Generate new password and notify user immediately" checkbox while creating User via API

You cannot disable 'Generate new password and notify user immediately' via API, check limitation. Default value of checkbox field is set to true and you would receive notification when there are any ...
user avatar
  • 1,692

Top 50 recent answers are included