Open topic with navigation

# 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.

© 2018 Micro Focus or one of its affiliates | Send documentation feedback to Micro Focus Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a web mail client, and send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm