On my SharePoint site, I have two lists
Event
Attendee
- Title (created by combines their name with Event ID from Event Table)
- Name (with InfoPath it's automatically pulling using REST to get User Profile Info)
- Event ID
I've tried on the Form Submit to set rules up to look back at the Title on Attendee Table and switch the view if it already exists. If anything, in my attempts to figure this out on my own, I've probably confused myself more than anything.
The last attempt I had the Form Submit Rules
Rule 1 - Check for Duplicates
- Condition: None
- Action 1 - Set a field's value
- Field: (from Main Data Source) - Title
- Value: (from Main Data Source) - Title
- Action 2 - Query for Data
- Data Connection - Attendees
- Action 3 - Set a field's value
- Field: (from Main Data Source) - Duplicate
- Value: (From Attendees) - Insert Formula - count(Title from Attendees's queryFields)
Rule 2 - Switch View
- Condition: When Duplicate is not blank
- Action - Switch View to Already Registered
Rule 3 - Submit using Data Connection
In this situation, I got the "Already Registered" view even though there is no entry with that title in the Attendee List.