hi am creating a cleaning app and it has three users the cleaners clients and administrator. i have two buttons which target the cleaner. the accept button and decline order button i want to use a microflow for both buttons in that when the cleaner accepts the order it is added to the cleaners orders. thanks
asked
baiga vicent musiiba
1 answers
0
Your Order entity in the domain model should have an association to Administration.Account
When a user clicks the "Accept Order" button, run a microflow
It should have an Order as an input parameter
Add a retrieve via xpath, retrieve the first Administration.Account object with this constraint: [id = $currentUser].
Add a change action that changes the Order and sets the association to Administration.Account with the output from the previous action. Set commit and refresh to yes.