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
Kayla Even 8Kayla Even 8 

add field logic to a flow

We have a flow associated with a custom action button. A 3rd party built the flow before I joined the company. I would like to add logic to the flow to check dates on Quote object in order for the flow to initiate. If the start and expires on dates are not in the future I'd like to give the user a warning to correct the dates. Is that possible with a flow? 
ShivankurShivankur (Salesforce Developers) 
Hi Kayla,

You can use Flow Screen Input Component: Date & Time and add a formula to see if the provided date is greater than today. Based on the provided date and its validation with formula you can show error message you can use the fault path to display the error message to the running user. In the same Screen element, ask the user to report the error to the IT department. To do so, draw the fault connector to a Screen element with this Display Text field.

Please check out below links for more information on this:
https://help.salesforce.com/articleView?id=sf.flow_ref_elements_screencmp_datetime.htm&type=5
https://help.salesforce.com/articleView?id=flow_build_logic_fault_examples.htm&type=0

Hope above information helps. Please mark as Best Answer so that it can help others in future.

​​​​​​​Thanks.