+ Start a Discussion
Rakesh ERakesh E 

How to call RestResource created in Apex from outside salesforce.

Hi,

 

i have created a apex RestResource class as mentioned in below link in my org.

but when i try to call this resorce from POSTMAN(rest lient in chrome) its giving me error as 

 

[
{
"message": "Session expired or invalid",
"errorCode": "INVALID_SESSION_ID"
}
]

 

the link is : http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_methods_system_restrequest.htm

 

i tried by using the URL : https://ap1.salesforce.com//services/apexrest/Account/0019000000B8nwt

 

and provided 1 parameter

Authorization : my session id which i got it from userInfo.getSessionID() method.

 

please let me know if anyone has worked on it and what is the mistake iam doing

 

Thanks

 

Regards

Rakesh

 

 

Nicolás KacowiczNicolás Kacowicz
I would like to know the same thing. Hope it gets answered