11-02-2023 09:05 AM
As a DemandTools V user, with the Export module, or possibly Tune or Modify, I would like to filter the results by comparing one field to another, such that the results include only records that have different values in the two fields. Furthermore, I would like this to work with lookup fields, such that I could compare a value in one field of the primary object to a value in a field of the parent object. Is this possible?
Solved! Go to Solution.
11-03-2023 11:59 AM - edited 11-06-2023 05:24 AM
Hi @RichTUniti,
I believe you could use the Match Module to compare two fields on a record. Match will give you both the records that have the same value and those that do not. You can just export this data, as you would in Export, or you can grab the SF IDs from the file and use them to condition on a batch in other modules.
You're going to open the Match module and make sure the Source is the same environment that you're logged into:
You're going to add two conditions on your match step: the record ID and then another condition where you're matching two both fields. In my below example my condition is comparing the email field to our alternate email field:
Any record in the Single Record Matches tab will have the same value in both fields. Any records in the No CRM Record Match tab will not have the same value in both fields.
You have the ability to export everything, just the matched records or just the non-matched records:
If you're wanting to take the list of records and use them in another module, you would take the exported file and while in excel use the TEXTJOIN formula to create a comma delimited list of the record IDs. You would then paste that list in a condition in step 1 of the module so that you'll only see those records:
I also will add that this can be done with a parent object recod field as well. You would just choose that field during the matching step.
I think the bigger question is why you'd like to do this - what is the end results? When you find the records where the fields do not match, what do you plan on doing with that information?
Hope this helps!
11-03-2023 11:59 AM - edited 11-06-2023 05:24 AM
Hi @RichTUniti,
I believe you could use the Match Module to compare two fields on a record. Match will give you both the records that have the same value and those that do not. You can just export this data, as you would in Export, or you can grab the SF IDs from the file and use them to condition on a batch in other modules.
You're going to open the Match module and make sure the Source is the same environment that you're logged into:
You're going to add two conditions on your match step: the record ID and then another condition where you're matching two both fields. In my below example my condition is comparing the email field to our alternate email field:
Any record in the Single Record Matches tab will have the same value in both fields. Any records in the No CRM Record Match tab will not have the same value in both fields.
You have the ability to export everything, just the matched records or just the non-matched records:
If you're wanting to take the list of records and use them in another module, you would take the exported file and while in excel use the TEXTJOIN formula to create a comma delimited list of the record IDs. You would then paste that list in a condition in step 1 of the module so that you'll only see those records:
I also will add that this can be done with a parent object recod field as well. You would just choose that field during the matching step.
I think the bigger question is why you'd like to do this - what is the end results? When you find the records where the fields do not match, what do you plan on doing with that information?
Hope this helps!
11-08-2023 09:44 AM
Brilliant! That works.
And thank you Anthony for taking the time to explain it so well, in steps, and with marked-up screenshots.
Besides solving my problem now, you helped me realize some tricks and features of DT that I didn't know exist, and they should help me for other use cases.
To answer your question, "why you'd like to do this - what is the end results?" It's because this is a data clean-up project that is needed to get the field's values in sync, now that we have put in place controls to prevent mismatched values from being entered.
11-08-2023 10:04 AM
Hi @RichTUniti,
It's my pleasure! I'm so glad that it helped you and also allowed you to think of new ideas you can leverage this with.
I asked about the end result because you can use Modify to use an IF formula and then change values of a specific field based upon if it is true or false. If you can change the field to a predictable value, you may want to use Modify to do this!
Regards,
Get industry news, expert insights, strategies, and hot tips, served up fresh every week.
Visit the Validity blog