-1

I want to query start of day and end of day field from the user object but I am getting error for that refer images for more detailsenter image description here

1
  • Please include your code as text, not images. Images are horrible for accessibility. – Adrian Larson Oct 27 '17 at 15:03
3

Both fields are not accessible through API. To get past this, you will need to create a custom formula field to pull in the data from the standard fields. You can then use the custom formula in your SOQL.

StartDay Formula field Data Type - Text Formula - TEXT(StartDay)

EndDay Formula field Data Type - Text Formula - TEXT(EndDay)

select StartDay__c from User

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.