+ 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!