...
Code Block |
---|
url_flow(?optional_parameters) |
...
How to Use Billing Run Initiator
...
with a Custom Invoice URL Button
...
You will see how to trigger invoice generation for a Pre-Invoice record using a button.
...
Fill in the following details for the custom button:
Label - Billing Run Test
Name - Billing_Run_Test
Display Type - Detail Page Button
Behaviour - Display in new window
Content Source - URL
In the text area below, enter the following URL:
Code Block bashCopy code
/flow/ADvendio/Billing_Run_Test_Flow?recordId={!ADvendio__Invoice__c.Id}
/flow/ADvendio/Billing_Run_Test_Flow
is the URL of the flow, which can be found in the flow details. To find these details, go to the list of flows, open the action menu of the flow, and select "View Details and Versions."?recordId={!ADvendio__Invoice__c.Id}
is the ID of the pre-invoice that will be invoiced , and used as a parameter of the flow.
...
Run Invoice Generation from an ADvendio Invoice record
Open a Here are step-by-step instructions for using the Billing Run Initiator via a Custom Invoice URL Button:
Navigate to the Pre-Invoice record
...
in your system's menu.
On the Pre-Invoice record, you should see the invoice status listed as "Created."
At the top right corner of the Pre-Invoice record, click the "Billing Run Test" custom button that you added earlier.
After clicking the button, wait for an option that says "Return to the Pre-Invoice" and click on it.
The system will ask you whether you want to start the Billing Run. Press "Yes" to confirm.
Wait for the process to complete. You should see a message indicating that it's Done.
Now, press the option Return to the Pre-Invoice record, you should see that the invoice status has changed to "Invoiced."
...