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
George Galaios 22George Galaios 22 

Assign values to a screen variable from a flow variable

I have a flow where it has:
  1. Screen flow consisting of some inputs (text, picklist, etc...)
  2. Assignment to a new lead record variable (All input values are assigned to the respective fields of the lead)
  3. Apex Action to perform some validations and return the valid lead (e.g. validate text fields do not consist of mixed greek and latin characters and also capitalize characters etc)
  4. Condition (If apex returns that we have a validation error (mixed characters), i want to navigate to the first screen, and also update the screen elements with the capitalized characters.
My problem is, i cannot find a way to assign the capitalized characters to the screen elements. For example, if the user input on FirstName field is 'Giorgos', apex will return 'GIORGOS'. This will also update my lead record returned, however i want also to update the screen Element from 'Giorgos' to "GIORGOS". How can this be achieved?
AnudeepAnudeep (Salesforce Developers) 
Hi George, 

Have you tried the UPPER function. This is available in flows as per the documentation

https://help.salesforce.com/articleView?id=customize_functions.htm&type=5