Hi everyone.
I have set it up to do the following:
When a sales invoices in business central gets created get the entry and set the variable of the Sales Invoice nr,
Business central posts Sales Orders directly in Posted sales invoices and Sales invoices runs automatically even if not posted...
So I have set a decision to see if Variable contains "Inv", because Sales Invoices is "IN-12345" and Posted Sales Invoices is "INV-12345"
So if true - Gets invoice from Posted Sales Invoice
If False - Do until ( Delay 30 minutes get record again Set variable to new fetched nr ) - Do until condition is set to the same as the condition above (Stop if No. Contains "INV")
If it contains invoice gets invoice and sends it to the customer.
But for some reason its not working and I am unsure if I am doing it right. See attached.