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
mattclausenmattclausen 

Using sessionid={!$Api.Session_ID} with Partner Communities

I am using the Partner Community product and have a Visualfoce page that contains a link to site on our servers. We want to be able to verify the person who clicks on the link to access these pages.

We are using this functionality in our Customer Portal with the following code: sessionid={!$Api.Session_ID}&serverurl={!$Api.Enterprise_Server_URL_260} and it works great.

When trying to access the same page from the Partner Community I get the following error: "An error has occurred processing your request. Please ensure you are logged into the Portal and try again."

Is there different code I need to use for Partner Communities? Could this be a permissions issue or something supported differently in Partner Communities?
Best Answer chosen by mattclausen
mattclausenmattclausen
Figured it out. This was not code related but Profile related. New user profile did not have API access enabled. Once I turned that on, I was able to get access.