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
Ayub HeartForceAyub HeartForce 

$api.SessionId problem

Hi Guys,

 

I have 2 urls : -

 

 https://salesforce.wikiorgcharts.com/dispach.php?wikilocation=salesforce/chart/accountId_001Z000000c3dDtIAI&
sfapisessionid=00DZ0000001C5S9!AQMAQJXpOlos00hvxOdV86L0nUf_ML0rIl.HeFrm7PupPeDug_eOIBL.NHta14P81ioyGVk32JKiJCTF8PoRk2KYexyDVor6&sfapipartnerserverurl=https://c.cs11.visual.force.com/services/Soap/u/20.0/00DZ0000001C5S9

                                               and

https://salesforce.wikiorgcharts.com/dispach.php?wikilocation=salesforce/chart/accountId_001Z000000c3dDtIAI&
sfapisessionid=00DZ0000001C5S9!AQMAQLnga9Qkd9CuuKdmey4U1IPhQKMnsXSIxXNC1qI1uZPki5rt54FRQPfTLa1ANNCWMf4iLaXH5m4_Bvhv0tEfiMnUNeoG&sfapipartnerserverurl=https://c.cs11.visual.force.com/services/Soap/u/20.0/00DZ0000001C5S9

 

formula for above link :

https://salesforce.wikiorgcharts.com/dispach.php?wikilocation=salesforce/chart/accountId_{!Account.Id}&sfapisessionid={!API.Session_ID}&sfapipartnerserverurl={!API.Partner_Server_URL_200}

 

Means urls are same except that sfapisessionid i. e urls for different user on an Account. Both user have same profile, Problem is that one url is loading successfully whether another one not loading.

 

@problem

1. How can sessionId affects access of records outside salesforce?

2. When user have same profile, same role then how can partial loading takes place?

 

Any quick answer will be greatly appreciated.

 

Thanks,

Ayub

 

Ashish_SFDCAshish_SFDC

Hi Ayub, 

 

Session IDs are dynamically generated by the logging in of a user - everytime either a time out or a new login is created by the same user it generated a new session ID. 

If it is delaying in loading the page then it might due due a query or a sharing rule that is being calculated in the backgroud, it does not look like its a session id issue.

 

Regards,

Ashish

Ayub HeartForceAyub HeartForce

Thanks Ashish for ur quick reply,

 

But there is no sharing rule or manual sharing on records, for one user, ifram having this url loads and for another user,  iframe having this url does not load.

 

 

Its really embrassing, I m not able to find out why are these happenning?

 

Thanks,

Ayub

Ashish_SFDCAshish_SFDC

Hi Ayub, 

 

There should be some sharing setting that would be doing this trick, raise a support case with Salesforce if needed. 

 

Regards,

Ashish