Flow to check and redirect to create / edit if…
Scenario:
Check if record (meeting certain criteria) already exists, if not redirect to standard create new page, else redirect to view record
Example:
client services - wants all records for a client from a single day under a single case. so if case already exists for a contact for today, display message and redirect to record on finish, else allow user to create new case
This can be done w/ visualforce. Testing to see how it works w visual workflow.
Trying a few approaches:
A) flow + use retURL to redirect to new case page based
strategy:
Use retURL on button that launches flow to redirect to new case page
If case exists, use screen to display link to case (and no finish button so no redirect possible)
If no case exists, go straight to redirect (no screen).
steps:
pass contactID to flow variable in button
use fast lookup to check if case exists
Use decision to evaluate whether...