This Data Stream example demonstrates how to use this Action Agent to write work orders to the AssetMaintenanceRequests entity in FinOps, using the OData service.
Drag the FinOps Agent onto the canvas and rename it. Link the input endpoint to the work order data, and the output to the printer, and save the Data Stream.
Select the Agent and click Configure. Keep the default Collection.
Set the OData version and enter the authentication details.
In this case, we're using OData version 4 and authentication type of app credentials. Select the authentication URL, client ID, and secret ID.
Set the action and the entity. In this case, set the action to POST and entity to AssetMaintenanceRequests.
Map the entity's properties to input attributes and set the data type.
Set the result properties and how they should be returned. In this case, return the request identifier, priority, actual start, and work order identifier; and return the results as new.
Apply the changes, save the Data Stream and publish it.
Let's look at the Live Data View. Observe that configured result properties - the details of the new AssetMaintenanceRequests records - are printed as new events.
FinOps Action Agent.xuc
FinOps Work Orders.csv