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
Eduardo AndradeEduardo Andrade 

Access web service from browser

Hi, I'm new to create web services. I've created a class to update an opportunity, it worked in the workbench tool, but when I've tried the direct link (https://<myinstance>.salesforce.com/services/apexrest/opt/<opp id>) on the browser, it showed the following page error:

<Errors>
<Error>
<errorCode>INVALID_SESSION_ID</errorCode>
<message>Session expired or invalid</message>
</Error>
</Errors>

Is there a way I can pass session id through the url, or I have to create an application to deal with salesforce authentication?

Appreciate any help.