fflib-apex-common icon indicating copy to clipboard operation
fflib-apex-common copied to clipboard

Building full domain class factory causing issue for site user and partners

Open sarathiatgit opened this issue 8 years ago • 1 comments
trafficstars

we have territory setup requirement on opportunity from trigger. but that create an impact when Site or Partner users are doing something on some other unrelated object because Application domain factory is calling all the domain constructor and SF rejecting it straight way saying Error : Field(Opportunity.territory2Id) is not writeable for Partner User. Is it possible to stop making all domain class at once and do it selectively as required in transaction?

sarathiatgit avatar Feb 08 '17 06:02 sarathiatgit

I am pretty sure your asking for on demand creation of something here. I'm just not 100% sure what? Can you provide some more code samples / snippets of the relevant code that you want to be done selectively please?

afawcett avatar Feb 18 '17 19:02 afawcett