Get a Transcript of an Interview Session
To get an interview session transcript, you can use the Interview.fetch() method to invoke an interview extension connection. (Alternatively, if you have an existing connection, that is, B2C Service, Oracle Fusion, Oracle Integration, connector framework or generic provider connection, you can instead have the interview transcript generated and attached when the interview is submitted.)
If the method is set to TRANSCRIPT, a session transcript is generated and sent via the nominated interview extension connection using a POST operation. For more information on the properties for this method, see Properties for the fetch method.
For example, a transcript call could look like:
interview.fetch({
connectionName: "my-interview-extension-connection",
method: "TRANSCRIPT",
transcriptVersion: "12.2.21",
additionalSessionData: ["attr1", "attr2", "rel1"]
}).then(function (response) {
//parse response
});
The transcript itself is in JSON format, which provides a list of questions asked and answers provided. Custom properties will also be included in the transcript where the transcriptVersion is at least 12.2.40. The transcript will also include the values of a set of attributes and relationships nominated in the interview.fetch() call. The interview extension connection can store this information in a database, send it to another application, use it to trigger some other process and return a response, or however else it is required.
As with other requests via the Interview.fetch() operation, the caller will be returned with whatever response was provided by the nominated interview extension connection.