To include a validated email field in your Screen Flow simply click and drag the EDQ Email Validation (Flows) component found under the Custom section of the Components panel into the required position on your screen.

Configure the component

You can select resources from the flow, such as variables or global constants, or you can manually enter a value.

EDQ Email Validation

Attribute
Description
API Name An API name can include underscores and alphanumeric characters without spaces. It must begin with a letter and can’t end with an underscore. It also can’t have two consecutive underscores.
Disabled Prevents the user from modifying or copying the value. Defaults to False and can be changed by using the appropriate GlobalConstant.
Email Value Can be used to optionally provide a default value.
Existing Field API Name Can be used in tandem with the Record Id below to optionally retrieve an existing EDQ Log entry so that the validated email and its status can be displayed when the component loads. This corresponds to the Salesforce API Name of the field the existing email is stored in.
Existing Record Id Can be used in tandem with the Field API Name above to optionally retrieve an existing EDQ Log entry so that the validated email and its status can be displayed when the component loads. This corresponds to the Salesforce Record Id of the existing record containing the email.
Help Text Give your users more context. The text you enter is available in an info bubble next to the component.
Label User-friendly text that displays to the left of the component.
Placeholder Text The text that appears in the email field when it's empty. Use placeholder text to give users a hint about what to enter in the field.
Required Requires the user to enter a value. Defaults to True and can be changed by using the appropriate GlobalConstant.

Precedence when prepopulating the component

You may wish for the component to load already populated with existing data. This could be data that hasn't previously been validated using EDQ components or it may have already been validated and you want to show the existing validation status beside the field. You should therefore note how the behavior changes depending on which flow input variables are set.

Flow variables set
Outcome
Email Value
  • The EDQ email field is populated with the value exactly as you have set it.
Existing Record Id
Existing Field API Name
  • A lookup is attempted for the matching EDQ Log entry.
  • If successful, the EDQ email field is fully populated, along with the validation status.
Existing Record Id
Existing Field API Name
Email Value
  • A lookup is attempted for the matching EDQ Log entry.
  • If successful, the EDQ email field is fully populated, along with the validation status. The Email Value is ignored.
  • If unsuccessful, the EDQ email field is populated with the Email Value, exactly as you have set it.

Store the component's values in the flow

All attributes are available to store in flow variables, but usually you must store one of these attributes below. The values are assigned to the flow variables when the user navigates to the next screen.

Attribute
Description
Email Value The validated email address.
Validation Input Key * Used in the EDQ Save Transaction Log Apex Action if required.
Validation More Info * Used in the EDQ Save Transaction Log Apex Action if required.
Validation Status * Used in the EDQ Save Transaction Log Apex Action if required.
Validation Type * Used in the EDQ Save Transaction Log Apex Action if required.

* The four Validation attributes are all needed if you use the dedicated Apex Action we supply to create EDQ Log objects to store the validation status.