Default Value always nil in automation


I have a text field in a dialog with a default value. When i order the service with the UI, in automation I get the value with this code : prov.get_option(:field_name).
But the same order with an API call, the value is always nil.

does anyone have this problem or a solution ?