I have an object which is sometimes created by a user manually, or under some circumstances is created by a trigger. It has a formula field which gets populated by a related object's field when a user manually creates it. Because of that I am getting an error when attempting to populate it with a trigger (I get an error when trying to save the code saying the field is unwritable). Is there a way to do this without making the field a non-formula field ?
Thank you very much for your help.