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
AntonPavlovAntonPavlov 

how to move variables to a file and use it in apex classes?

I need move variables to a file and use it in apex classes. How do this?
Kalaivani SubbaiyanKalaivani Subbaiyan
Move from where?
AntonPavlovAntonPavlov
I mean, output all the variables from the apex class to a file and then connect them or make one class with variables and use and receive them in another class
Deepak GerianiDeepak Geriani

Hi,

I am sure you don't need to store value in a file you just need to use the same variables in another apex class. If so use the wrapper class concept.
which will help you to do the same. I hope you are aware of it. Here is the link (https://www.forcetalks.com/blog/wrapper-class-in-apex-salesforce-the-developer-guide/#:~:text=A%20Wrapper%20Class%20is%20frequently,at%20some%20stage%20in%20runtime.) might help you to understand and answer your question.

​​​​​​If my answer has helped you to resolve your issue please mark this answer as resolved.
Thanks