I'm trying to access the matching rules associated to a Duplicate rule via code. Through the UI, it's easy enough to create a Duplicate Rule then add Matching rules to it. So I know there has to be a link between these objects, but I can't seem to find any documentation on how to make this link through code.
Here is an idea of what I'm trying to do. (which obviously does not work)
SELECT Id, DuplicateRuleId (<- not correct, but this is what I need) FROM MatchingRule WHERE DuplicateRuleId = (Some specific Duplicate Rule Id)
Does anyone have any ideas on how this would be possible?