Navigation: Menu --> Tools --> AI Agent Studio --> Business Object
Click on the Add button to start creating Business Object.
Fill out the following details.
- Family: SCM
- Product: Order Management
- Name: HP Create Sales Order
- Code: Populates automatically
- Resource type: Monolith
- Resource Path: Populates automatically
- Description: Provide an understandable description
Scroll down and click on + plus button to add the business function.
Add the correct resource path "/fscmRestApi/resources/11.13.18.05/salesOrdersForOrderHub" and set operation type to "POST" in Business Object Function.
Toggle the native authentication header and provide the payload as follows or as required.
{
"SourceTransactionSystem": "PS",
"SourceTransactionId": "{p_SourceTransactionId}",
"SourceTransactionNumber": "{p_SourceTransactionNumber}",
"TransactionalCurrencyCode": "USD",
"BusinessUnitId": 300000001921096,
"BuyingPartyNumber": "{p_BuyingPartyNumber}",
"TransactionTypeCode": "REGULAR",
"RequestedShipDate": "{p_RequestedShipDate}",
"SubmittedFlag": false,
"FreezePriceFlag": false,
"FreezeShippingChargeFlag": false,
"FreezeTaxFlag": false,
"RequestingBusinessUnitId": 300000001921096,
"CustomerPONumber": "{p_CustomerPONumber}",
"billToCustomer": [
{
"CustomerAccountId": {p_CustomerAccountId},
"SiteUseId": {p_SiteUseId}
}
],
"shipToCustomer": [
{
"PartyId": {p_PartyId},
"SiteId": {p_SiteId}
}
],
"lines": {p_Lines}
}
Add a Header with content type set to application/json. The parameters will auto populte based on defined payload inputs.
Add an example payload; This helps AI agent understand and map the fields as required.
All set; just save your progress, use the business object within the Oracle AI agent and ensure that you map the payload parameters correctly in the prompt.
