function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Naresh ChandaNaresh Chanda 

Sfdc.canvas.parent.publish - Sfdc is not defined in lightning app builder

When using Sfdc.canvas.parent.publish, get the error-  Sfdc is not defined while editing the lightning record page in lightning app builder. It works and doesn't show an error on the lightning record page when you just open it, but when you click 'Edit Page' to view in lightning app builder get the error - Sfdc is not defined. Is it a platform bug?
AbhishekAbhishek (Salesforce Developers) 
Hi Naresh,

I suspect that this Known Issue is related to your Query,

I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.