# FlowLog

The FlowLog class provides a wrapper for passing log data from Flow or Process Builder.

## Properties

```apex
@InvocableVariable(Required=false Label='Category')
public String category;               // Log category (defaults to Flow)

@InvocableVariable(Required=false Label='Type')
public String type;                   // Log type

@InvocableVariable(Required=true Label='Area')
public String area;                   // Functional area

@InvocableVariable(Required=true Label='Summary')
public String summary;                // Log summary

@InvocableVariable(Required=false Label='Details')
public String details;                // Log details

@InvocableVariable(Required=true Label='Interview GUID')
public String interviewGUID;          // Flow interview identifier

@InvocableVariable(Required=false Label='Flow API Name')
public String flowApiName;            // Flow API name

@InvocableVariable(Required=false Label='Level')
public String level;                  // Log level (defaults to INFO)

@InvocableVariable(Required=false Label='Operation')
public String operation;              // Operation name

@InvocableVariable(Required=false Label='Additional Fields')
public String additionalFields;       // JSON string of additional custom fields

@InvocableVariable(Required=false Label='Transaction ID')
public String transactionId;          // Transaction identifier for log grouping

@InvocableVariable(Required=false Label='Stacktrace') 
public String stacktrace;             // Current stacktrace

@InvocableVariable(Required=false Label='Full Stacktrace')
public String fullStacktrace;         // Complete stacktrace including previous traces
```

## Field Reference

### Core Fields

| Field            | Required | Default | Description                                      |
| ---------------- | -------- | ------- | ------------------------------------------------ |
| category         | No       | Flow    | Category classification for the log              |
| type             | No       | -       | Technical classification of the log entry        |
| area             | Yes      | -       | Functional area the log relates to               |
| summary          | Yes      | -       | Brief description of the log entry               |
| details          | No       | -       | Detailed information about the log entry         |
| interviewGUID    | Yes      | -       | Flow interview identifier ($Flow\.InterviewGuid) |
| flowApiName      | No       | -       | API name of the Flow                             |
| level            | No       | INFO    | Log level for the entry                          |
| operation        | No       | -       | Name of the operation being performed            |
| additionalFields | No       | -       | JSON string of additional custom fields          |
| transactionId    | No       | -       | Transaction identifier for grouping related logs |
| stacktrace       | No       | -       | Current stacktrace information                   |
| fullStacktrace   | No       | -       | Complete stacktrace including previous traces    |

### Additional Fields Format

The additionalFields property accepts a JSON string mapping field API names to values:

```json
{
    "pharos__Summary__c": "Custom summary",
    "pharos__Details__c": "Custom details"
}
```

Note: If the JSON string fails to parse, an error message will be added to the log details.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://triton.pharos.ai/pharos-triton/methods-reference/apex-methods-reference/tritonflow/flowlog.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
