See related:https://salesforcediaries.com/2019/12/13/connectedcallback-in-lightning-web-component/ https://www.codekiat.com/2020/04/how-to-pass-record-id-from-lightning-web-component-to-apex-controller.html
If this information helps, please mark the answer as best. Thank you
We can call an apex method inside the connectedCallback() in Lightning Web Component.
Example:
See related:https://salesforcediaries.com/2019/12/13/connectedcallback-in-lightning-web-component/
https://www.codekiat.com/2020/04/how-to-pass-record-id-from-lightning-web-component-to-apex-controller.html
If this information helps, please mark the answer as best. Thank you
You can take references from below code.
----Apex class -------html ------.js If you find your Solution then mark this as the best answer.
Thank you!
Regards
Suraj Tripathi