
7 risposte

I did write a custom validation rule "ShipToCheck" which tests the field Account.ShippingAddress which is Visible and Editable to all Profiles.Should I start a new topic? Assuming I needed to assert the state of Account.ShippingAddress, I attempted to select it in the test class. Field Name ShippingAddress is an Account Standard Field, yet changing the Apex test class from Account a = [select Id from Account limit 1];toAccount a = [select Id, ShippingAddress from Account limit 1];givesError: Compile Error: No such column 'ShippingAddress' on entity 'Account'.similar to the Component Errors and Apex Test Failures.Does Apex need authorization to access the field? How?