+ Start a Discussion
Sachin Chaudhary 48Sachin Chaudhary 48 

How to get session id for guest user?

Hi All,

I want to create remote site setting when API call is made.
Is there any way to create remote site setting(via API).
I am using salesforce sites. Login user is guest user and I am getting error like " Invalid Session ID found in SessionHeader: Illegal Session faultcode=sf:INVALID_SESSION_ID faultactor=".

Thanks in advance.
Sachin
bhanu_prakashbhanu_prakash
Hi Sachin,

Please check below link
https://help.salesforce.com/articleView?id=000335516&type=1&mode=1 (https://help.salesforce.com/articleView?id=000335516&type=1&mode=1)

Please check below link to check with javascript
https://developer.salesforce.com/forums/?id=9062I000000QuZLQA0

Let us know if it helps you and mark it best if it helps you
Thanks, 
Bhanu Prakash
ForceLearn.com
Sachin Chaudhary 48Sachin Chaudhary 48
Hi Bhanu,

Thanks for the reply.
The articles which you have given I have already gone through it. But is there any other workaround to create remote site setting?