ACI API 25.3
ACI API Programming Guide

# aciObjectExecuteToString

Call the `aciObjectExecuteToString` function to run an ACI action to a string buffer, rather than to an ACI response object.

## Syntax

    aciError aciObjectExecuteToString(
       t_aciObject* pConnection,
       t_aciObject* pToExecute,
       char** pszResult,
       int* pnBufferLength,
       char** pszContentType);

## Arguments

Arguments | Type/Description
--- | ---
`pConnection` | `t_aciObject*` A pointer to an `ACI_CONNECTION` object.
`pToExecute` | `t_aciObject*` A pointer to an ACI object that contains the action.
`pszResult` | `char**` A pointer to the response string buffer.
`pnBufferLength` | `int*` A pointer to the length of the response string buffer.
`pszContentType` | `char**` A pointer to the string containing the value of the Content-type HTTP header field in the response.

## Discussion

This function opens the `pConnection` connection, runs the action that is contained in the `pToExecute` ACI object, and then closes the connection. You can call this function only for a `Connection` type ACI object.

The response string buffer contains the body of the response.

## Returns

An ACI error code.

Copyright 2025 Open Text
Version 25.3 | Last updated July 2025

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: Knowledge Discovery ACI API 25.3

Topic Title: aciObjectExecuteToString