Description
The ANSWER function fetches specific answer field values for a company's reporting data from the Novata API. This function allows you to retrieve answer data, context, metric information, and visibility settings for a specific company, reporting period, report, and metric combination.
Syntax
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
companyId |
String | Required | Unique identifier for the company. |
reportingPeriod |
String | Required | Reporting period (e.g., "2024", "2023-Q4"). |
report |
String | Required | Report name or identifier. |
metricId |
String | Required | Unique identifier for the metric. |
fieldName |
String | Required | The name of the answer field you want to retrieve (see available fields below). |
Available Field Names
You can use any of the following field names as the last parameter:
Answer Data
answer
context_for_answer
Metric Information
metric_name
metric_reference
metric_input_type
metric_unit_desc
metric_unit_suffix
custom_metric
Metric Status & Visibility
metric_visible
metric_visible_reason
metric_enr
metric_enr_reason
Examples
Example 1: Get Answer Value
Example 2: Get Context for Answer
Example 3: Get Metric Name
Example 4: Get Metric Reference
Example 5: Get Metric Input Type
Example 6: Get Metric Unit Description
Example 7: Check if Metric is Visible
Example 8: Check ENR Status
Example 9: Get ENR Reason
Example 10: Check if Custom Metric
Important Notes
- All five parameters are required. The function will return an error if any is missing.
- The
companyIdandmetricIdmust be valid identifiers from the Novata system. - The
reportingPeriodshould match the format used in your Novata reports (e.g., "2024", "2023-Q4"). - The
reportparameter should match the exact report name as it appears in Novata. - Field names are case-sensitive. Use the exact field names listed above.
- If the answer doesn't exist for the specified combination, the function will return an error or empty value.
- Make sure you're logged into the Novata Excel Add-in before using this function.
Related Functions
NOV.FUND - Retrieve fund attributes
NOV.COMP - Retrieve company attributes
NOV.METRIC - Retrieve metric information
NOV.REPORT - Retrieve report information