Activate and Run the Recipe

After you've configured the connections and other resources, you can activate and run the recipe.

  1. Activate the recipe. See Activate a Recipe or Accelerator.
  2. Run the recipe from an external application.
    1. In the Integrations section of the project workspace, click Actions Actions icon on the integration flow, then select Run.
    2. On the Configure and run page, click Endpoint metadata.
    3. In the panel that opens, copy the Endpoint URL value. This is the integration flow's endpoint URL.
    4. To create an Advanced Shipment Notice (ASN) from an external application, send a POST request to this endpoint URL along with the required payload.
    5. The recipe creates the Advanced Shipment Notice in Oracle Fusion Cloud SCM and provides the response.
  3. Test the recipe in Oracle Integration.
    1. In the Integrations section of the project workspace, click Actions Actions icon on the CREATE ASN to Oracle SCM integration flow, then select Run.
    2. On the Configure and run page, in the Request section, click the Body tab and enter the message as the request payload.

      Example of a request payload to create ASN:

      {
      "ReceiptSourceCode":"VENDOR",
      "ASNType":"ASN", // It will be hardcoded in case ASN
      "OrganizationCode":"001",
      "VendorName":"Advanced Corp", // Supplier Name
      "VendorSiteCode":"AC US1", // Supplier Site Code
      "ShipmentNumber": "ASN-12-0987661", // ASN Number to create.
      "ShippedDate": "2024-09-09",
      "lines":[
      {
      "ReceiptSourceCode":"VENDOR",
      "TransactionType":"SHIP",
      "AutoTransactCode":"SHIP",
      "SourceDocumentCode":"PO",
      "OrganizationCode":"001",
      "DocumentNumber":"US1641571", // Put a valid PO Number
      "DocumentLineNumber":2, // Enter the correct Line# against the ItemNumber entered
      in ItemNumber column.
      "ItemNumber":"AS65004", //Take correct item from PO item# column else ASN would
      not be created
      "Quantity":1,
      "UnitOfMeasure":"Ea",
      "SoldtoLegalEntity":"US1 Legal Entity"
      }
      ]
      }
      

      Success response if ASN is created:

      {
      "Status" : "SUCCESS",
      "ASNType" : "ASN",
      "ShipmentNumber" : "ASN-12-0987661",
      "CreatedBy" : "AAA.TTT",
      "CreationDate" : "2024-09-12T07:14:30.001+00:00"
      }

      Failure response if ASN is not created:

      {
      "Status" : "ERROR",
      "Error" : "RCV_INVALID_ROI_VALUE_NE",
      "ErrorMessage" : "You must enter a valid value in the LINE_NUM column. The current value
      is 2."
      }
  4. Monitor the running of the integration flow in Oracle Integration. See Monitor Integrations.
  5. Verify that the ASN is created in Oracle Fusion Cloud SCM.
    1. Log in to Oracle Fusion Cloud SCM.
    2. From the navigation menu on the left, expand Supply Chain Execution and click Inventory Management.
    3. On the page that displays, click the Search icon.
    4. From the opened drawer, choose Expected Shipment Line from the first drop-down list and then choose ASN from the second drop-down list.
    5. Enter the ASN number (ShipmentNumber) which is passed in the request payload. If the ASN is created successfully, it will show the ASN number against the Purchase Order (DocumentNumber) that is given in the request payload.