Though this is quite a popularized method of washing your machine. But many of the reputed washing machine brands have forbidden to use dishwasher tablets in washing machines.
The reason is that they can harm the internal parts of the machine. And also they produce extra foam, which is not commendable.