2

The Setters are not called when using the transient keyword and hence you may be seeing null in the body or title or any other fields. You can revert back to the non-transient version public Attachment attachmentRec { get { if(attachmentRec == null) attachmentRec = new Attachment(); return attachmentRec; } set; } ...


1

You can use a Lightning App. Like a VFP, they are addressable via a URL: https://mydomain.lightning.force.com/my_ns/appName.app Which you write as: <aura:application extends="force:slds"> <c:myLwc /> </aura:application> You can also just add the lightning__AppPage target and and make a full page app if you prefer, though it ...


1

It turned out to be that the page depended on some HTML files in Prod which were saved in Salesforce Classic under Documents. Documents don't get copied over, and so those dependencies were broken. Those HTML files were loading jQuery as well as some other things needed. I went into Prod, downloaded them, and had to go into Salesforce Classic to upload them. ...


1

Answering to your questions: What is the behavior of a formula field that is part of a SOQL query?: They behave as a normal field Does the running user/site user need to have access to all fields referenced in the formula? Or is access to the formula field enough? No, they do not need to, access to formula field is enough. You can check this What is the ...


1

You're basically trying to store the entire file in the view state, which causes this error. You need to omit the file contents from the view state using the transient keyword: public transient blob file1{get;set;}


1

I ended up just making my own tables instead of using Related Lists.


Only top voted, non community-wiki answers of a minimum length are eligible