have created a two rollup fields one for active invoices and other a custom entity called batch invoices both are located under Account entity and working fine.
I would like to create a scheduled recurring workflows to sent the accounts which has greater then or equal to 1 on rollup files which are invoice or batch invoice.
I have created a date filed in account called "statement sent date" which updates every time statement is email and created additional filed called outstanding which add up both active invoices and batch invoices.
I would like the email automatically after 7 days after the last "statement sent date" if the "outstanding" field is greater then or equal to 1
have tried few options however I keep getting a loop, below is what am trying as test and it now working
what is the best way to achieve this as am having issues.