I’m currently building in a workflow to check for duplicates before converting a lead. To do so, I have a duplicate leads model whose conditions compare fields like email address to the same fields on my Lead model. When duplicates are identified, they are presented in a table along with a separate table containing values from the current Lead record for comparison. Both can be edited in-line to clear up any errors that might be causing the duplicates to be identified. I then have a custom Save button that saves and re-queries both models.
When editing and saving the duplicate record in-line, the process works perfectly. The value is updated, the models re-queried, and the tables disappear from the page (they’re conditionally displayed only if the duplicate model contains any rows). However, when the current Lead is edited in-line, the models are saved correctly, but the query does not seem to update the Duplicate Leads model, as this continues to be displayed in the pop-up, despite the fact that the model should now return no rows based on it’s conditions. Once the page is refreshed, everything displays properly.
I feel like I’m missing something simple, but who knows!
Question
Issue with re-querying model after changes to separate model
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.