Salesforce

Salesforce

LastViewedDate in Salesforce

Note:This field is not available in KnowledgeArticle entity.https://help.salesforce.com/s/articleView?id=000332637&type=1 LastViewedDate is a date time field.To update this when SOQL retrieve the field, use FOR VIEW Clause.https://www.infallibletechie.com/2014/01/for-view-in-soql.html Sample SOQL:SELECT Name, CreatedDate, LastModifiedDate, LastViewedDate FROM ....

Salesforce

Salesforce System.DmlException: Insert failed. First exception on row 0; first error: FIELD_INTEGRITY_EXCEPTION, There’s a problem with this state, even though it may appear correct. Please select a state from the list of valid states.:

Exception: System.DmlException: Insert failed. First exception on row 0; first error: FIELD_INTEGRITY_EXCEPTION, There's a problem with this state, even though it may appear correct. Please select a state from the ....