I would like to implement a workflow and am encountering problems.
The aim of the workflow is to automate the payment reminder process. I have already found a flow in the flow library that implements something like this. Unfortunately, the problem here is that I still have to manually add a due date to the order:
You may be able to handle this use case using the order.paymentTerms.paymentSchedules list (show below) and iterating through the payment schedules to test if it should have a reminder send and then send the reminder.
Please enlighten me so that I understand this correctly.
The workflow is started by a new order. Then I wait 7 days. The payment schedules are read out by the for_each.
In the next step I check if it is a specific payment method, if the order is fully paid and if there is an overdue.
If I understand it correctly, all orders would run through this workflow up to this query and my query would then only give a payment reminder to the orders that I have filtered through the query.
Payment terms is used to make payment schedules, which is a feature of the B2B product. Do you use that? Or do you use some other system?
Reading through the above thread, it seems like your are trying to reproduce the B2B payment terms feature through Flow. In order for “Send Payment Reminder” to work, it needs a Payment Schedule. So you need to first create that payment schedule for an order.