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
uri-dev1.392024776339377E12uri-dev1.392024776339377E12 

LoginHistory - AuthenticationService

Hi All,
I'm trying to query the LoginHistory.AuthenticationServiceId child to parent relationship.
I see that one possible type for the authenticaiton service is the SampSsoConfig. Trying to run something like:
"SELECT TYPEOF AuthenticationServiceId when SamlSsoConfig then DeveloperName end FROM LoginHistory" fails with "No such relation" error.

Any idea?

Thanks,
Uri

jane1234jane1234
hello,
If your requirement is to get the login history ,
enter login history in Quick find box, then you can find the login history , 
you can apply filters to get the required fields 
then you can download option
and download it. 
In excel concatenate the username + application name +protocol
then  filter out the duplicates 


Hope it will be helpul for you
uri-dev1.392024776339377E12uri-dev1.392024776339377E12
Hi Seethal,
Thanks for trying to help. We (SkyFormation) have witten a connector the salesforce which extract security related information. We collect LoginHistory data but I'm wondering if I can query (SOQL) the login's authentication service related information in a single query rather than two.
Uri