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
vanessa veronvanessa veron 

job schedulable action future

I have a Visualforce page that informs the User request and the file name.

I have a classe apex Schedulable, how do I use the name entered in the Visualforce page file to create the document through a schedulable job.
I think it's a future action is not'm getting retrieve the name to create the file appears always NULL.
Best Answer chosen by vanessa veron
pconpcon
To do this, you're going to need to store the information somewhere like an intermediary object and written to "the database".  The scope of the variable from your VisualForce page is not available to the scheduled class.

All Answers

pconpcon
To do this, you're going to need to store the information somewhere like an intermediary object and written to "the database".  The scope of the variable from your VisualForce page is not available to the scheduled class.
This was selected as the best answer
vanessa veronvanessa veron
Thank you!