Custom dialog to variable?
Is there a way to use a custom dialog to populate just a variable? (and not a field in a record?)
Yes but you need a global field if you want the User to enter the value (using the Input Data tab in Custom Dialog). You would then set the variable with the global value.
Retrieving data ...