Hi everyone,
I'm developing a 3rd-party app integrated with IFS for managing leave requests.
I need to expose an action that returns multiple calculated values (total leave entitlement, used leave, and remaining leave) based on CompanyId and EmployeeNo.
The logic works fine in SQL — here’s the simplified query I’m trying to use inside the action implementation:
SELECT
         NVL(ccntr_integration_utility_api.Get_Total_Leave_Entitlement(:CompanyId, :EmployeeNo), 0),
         NVL(ccntr_integration_utility_api.Get_Total_Leave_Used(:CompanyId, :EmployeeNo), 0),
         NVL(ccntr_integration_utility_api.Get_Remaining_Leave(:CompanyId, :EmployeeNo), 0)
      INTO
         :TotalEntitlement, :TotalUsed, :Remaining
      FROM dual;I couldn’t find any working example of an action returning a complex type (structure) in the documentation or community.
Thanks in advance for any guidance!
