1

I've a field read only from field accessibility for a profile. when i try to check that field from apex it will not editable.

i want this field should be editable by apex and not manually.

my apex class;

global class CreateOpty{

    WebService static Integer CreateOptywithps(String Id){

        ..........
    }
}

how can i do?

8
  • 2
    Assuming the field isn't a read-only data type, like a formula, you can indeed set the value in your class. Try including information about the error you're getting when you try to update the value, or the behavior you experience.
    – sfdcfox
    Jul 20, 2016 at 6:55
  • means by default it will update the read only field by apex class.
    – user29314
    Jul 20, 2016 at 6:58
  • Are you calling this class through anonymous apex?
    – martin
    Jul 20, 2016 at 7:00
  • I'm calling this class from custom Button
    – user29314
    Jul 20, 2016 at 7:00
  • From what you've described, this should be entirely possible. Where were you running into trouble?
    – martin
    Jul 20, 2016 at 7:04

0

You must log in to answer this question.

Browse other questions tagged .