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
admin dudeadmin dude 

404 NOT_FOUND

Hi,

Trying to call queryAll endpoint and look for an object TenantSecurityLogin i get the status code 404 with 

{"errorCode": "NOT_FOUND", "message": "The requested resource does not exist"}
1. Why does this error occured?
2. Are there any other errors that results in 404 status code?
3. If this error is related to licensing, where can I find for each object what license is required in order to query for it via rest api?

SwethaSwetha (Salesforce Developers) 
HI,
Can you share the request payload? Thanks
admin dudeadmin dude
GET /services/data/v57.0/queryAll/?q=select fields(standard) from TenantSecurityLogin HTTP/1.1
Host: <domain>.my.salesforce.com
Authorization: <Bearer Access Token>

 
admin dudeadmin dude
It happens with a few sobjects, this is just an exmple. Can I rely this call to return only available sobjects only?
GET /services/data/v56.0/sobjects HTTP/1.1
Host: <domain>.my.salesforce.com
Authorization: <Bearer Access Token>

 
SwethaSwetha (Salesforce Developers) 
I have been trying this REST URI in Workbench.While /services/data/v58.0?q=SELECT+LastLoginDate,MetricsType,Username+FROM+TenantSecurityLogin works, /services/data/v58.0/queryAll?q=SELECT+LastLoginDate,MetricsType,Username+FROM+TenantSecurityLogin doesn't work.

Thanks