You need to sign in to do that
Don't have an account?
Chris Berg 6
REST Calls from within my (org/domain) failing
I have created an Apex REST service following an example from SalesForce. I created a custom button on my Case page. This button contains all the code I need to POST to my REST service. Both my Case page and the URL I am calling share the same domain:
https://na16.salesforce.com/500j0000000zfug
https://na16.salesforce.com/services/apexrest/decision
I am getting a 401 (Unauthorized). Is there something simple I can do whereby this REST call is trusted? Should I attempt to use some existing headers from the case page to make this work? I wanted to avoid a lot of heavy security steps for making calls inside the platform.
https://na16.salesforce.com/500j0000000zfug
https://na16.salesforce.com/services/apexrest/decision
I am getting a 401 (Unauthorized). Is there something simple I can do whereby this REST call is trusted? Should I attempt to use some existing headers from the case page to make this work? I wanted to avoid a lot of heavy security steps for making calls inside the platform.
That should fix your 401 Unauthorized exception. Depending on how your rest service is authenticated, you may need to look into either the username / password or oauth token flow for authenticating with the service as well.