Call
Modified on Wed, 23 Aug 2023
You can use a Call node to connect to third-party repositories. You can connect to BOs and perform the required BO Operations such as create, delete, fetch, etc.
- Add a new node by clicking the+ icon.
- Drag the Call node from the node library.
- Choose Data Service from the recommended connectors.
- Select the required BO operation, such as Delete, Create, or Update.
- Define mapping to pass values for performing the operation.
Mapping
You can pass values to the BOs as either constants or variables. The output variable of each node is available to be mapped as input in all the subsequent nodes.
- To Pass Constants: Enter the value in double quotes or single quotes.
- To Pass Variable: Press Tab and select the required variable. You can add Expressions also if required.
Invoice Management with Supplier and Invoice Line Items
- Click the "+" icon to add a new node to the workflow.
- Click the "Call" node in the node library to add workflow canvas.
- Click on call node to open call node action panel.
- In the "Call" node action panel, choose "Data Service" from the list of recommended connectors. This will allow you to interact with the business objects (BOs).
- Select the BO Operation - Create, Update, get by id, Get All, Patch or Delete. For this example, start with "Create" to create a new invoice.
- Define the mapping to pass values for the "Create" operation. This includes passing necessary data for the new invoice, such as invoice details, supplier information, and line items.
- To Fetch Supplier Details, add another "Call" node to the workflow. Choose "Data Service" connector. Select the "Get by ID" operation for the "Supplier BO." Define mapping to pass the supplier ID from the created invoice to fetch supplier details.
- To fetch Invoice Line Items, add a third "Call" node to the workflow. Choose "Data Service" connector. Select the "Get by ID List" operation for the "Invoice Line Item BO." Define mapping to pass the list of invoice line item IDs from the created invoice to retrieve all associated line items.
- Update the existing invoice with new information. Add another "Call" node to the workflow. Choose "Data Service" connector. Select the "Update" operation for the "Invoice BO." Define mapping to pass the updated invoice details and any changes.
- To delete a specific invoice and its associated line items, add a last "Call" node to the workflow. Choose "Data Service" connector. Select the "Delete" operation for the "Invoice BO." Define mapping to pass the invoice ID or any criteria to delete the specific invoice.
- Additional Operations: You can extend the workflow to perform additional operations based on the retrieved data, such as calculating invoice totals, generating reports, or triggering notifications.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article