Master Data Services Custom Business Rule
Hej eksperter,Er der nogen af jer som har styr på MDS?
jeg har prøvet at stille følgende spørgsmål på Technet men ingen reagere på spørgsmålet, så nu prøver jeg her :-)
https://social.technet.microsoft.com/Forums/en-US/5aaf98de-801e-4485-80f3-d912eec718ff/custom-business-rule-help?forum=sqlmds
Mit spørgsmål kan ses nedenfor:
Hi,
Currently i'm testing MDS, and are new to Master Data Services. (I have taken and online Microsoft Course)
Today we have our own home built tool for Master Data.
But we want to replace it with MDS.
I need to create a Custom Business Rule, but I'm really unsure how to built it and use it.
My challenge is that I have and ID field/ATTRIBUTE, let's call it TEAM_ID. That is a number, let's say that for one record that the TEAM_ID=100.
The same record also have two other fields/ATTRIBUTES, START_DATE + END_DATE.
Sample:
Code TEAM_ID START_DATE END_DATE
1 100 2019-01-01 2019-12-31
2 100 2020-01-01 2020-06-01
3 100 2020-05-01 2100-12-31
I need a Business Rule that checks that:
START_DATE <= END_DATE
That the period between START_DATE and END_DATE are not overlapping any of the other periods where TEAM_ID=100 (I the sample above where Code=2 the END_DATE later that the START_DATE for Code=3, and that is not okay)
How would I built something like that?