Hello, I have had the following problem several times now, for which I have not found a reasonable solution myself. Perhaps someone here can help me:
Let's assume I have:
Entity A ----(1:n)---- Entity B
If i want to know how many Bs are connected to an A, I can use the formula: entity\countRelated(). So far so good.
Let's take an example:
A1 -> B1;B2;B3 (count = 3)
A2 -> B4 (count = 1)
Now, if I change the connection at B2 from A1 to A2, I have:
A1 -> B1;B3 (count = 2)
A2 -> B2;B4 (count = 2)
But I don't know how I can trigger formula in A1, to recount all related Bs.
With workflows I can only trigger A2, so then I have:
A1 -> B1;B3 (count = 3)
A2 -> B2;B4 (count = 2)
What is obviously wrong.
And I simply can't find a reasonable solution. I am now working with scheduled workflows so that the errors are fixed at least at a certain time, but that is of course not an ideal solution.
Let's assume I have:
Entity A ----(1:n)---- Entity B
If i want to know how many Bs are connected to an A, I can use the formula: entity\countRelated(). So far so good.
Let's take an example:
A1 -> B1;B2;B3 (count = 3)
A2 -> B4 (count = 1)
Now, if I change the connection at B2 from A1 to A2, I have:
A1 -> B1;B3 (count = 2)
A2 -> B2;B4 (count = 2)
But I don't know how I can trigger formula in A1, to recount all related Bs.
With workflows I can only trigger A2, so then I have:
A1 -> B1;B3 (count = 3)
A2 -> B2;B4 (count = 2)
What is obviously wrong.
And I simply can't find a reasonable solution. I am now working with scheduled workflows so that the errors are fixed at least at a certain time, but that is of course not an ideal solution.
Comment