FIELD
FIELD:
path: { fieldPath } # required
undeterminedIf: # optional
isEmpty: { message } # optional
noAccessDelegate: # optional
path: { fieldPath } # required
currentStateMessage: { message } # required
Description
The FIELD
operation allows you to access the value of a specific field within your input object. You specify the field using a path, which can traverse relationships (lookups) to access fields on
related objects.
The FIELD
operation is primarily intended for use within extract definition files or for rapid development and testing. In production-ready policy logic, FIELD
should be avoided in favor of the EXTRACT
operation, which provides a stable and reusable abstraction layer.
Parameters
-
path
(string, required):- Specifies the path to the field you want to access.
- The path is a string that can include:
- Field names within the input object (e.g.,
CA10__status__c
). - Relationship names to traverse lookups, followed by field names on the related object (e.g.,
CA10__account__r.CA10__accountId__c
). Relationship names typically end with__r
.
- Field names within the input object (e.g.,
- Example paths:
CA10__status__c
CA10__policyDocument__c
CA10__vpc__r.CA10__isDefault__c
CA10__securityGroup__r.CA10__account__r.CA10__accountId__c
-
undeterminedIf
(object, optional):- Allows you to define conditions under which the
FIELD
operation should return anUNDETERMINED
status instead of a value. This is useful for handling scenarios where a field might be empty or inaccessible due to permissions. - Properties:
isEmpty
(string, optional):- If provided, and the field value at the specified
path
is considered empty byIS_EMPTY
operation, the operation will returnUNDETERMINED
status. - The string value is used as the
currentStateMessage
in the condition when the field is empty andUNDETERMINED
is returned.
- If provided, and the field value at the specified
noAccessDelegate
(object, optional):- Used as a temporary workaround until a dedicated "NO_ACCESS" check is available.
- It checks if a delegate field is empty. If the delegate field is empty, it implies potential access issues to the primary field.
- Primary field and delegate field can match.
- Properties:
path
(string, required): The path to the delegate field to check for emptiness.currentStateMessage
(string, required): ThecurrentStateMessage
to return if the delegate field is empty andUNDETERMINED
status is returned.
- Allows you to define conditions under which the
Return Type
Depending on the type of the field:
Salesforce Field Type | Return Type |
---|---|
ID , Lookup , MasterDetail | Text |
Text , TextArea , EncryptedText | Text |
LongTextArea , RichTextArea | Text |
URL , Email , Phone | Text |
Time | Text |
Picklist | Text |
Number , Percent , Currency , Summary | Number |
Checkbox | Boolean |
DateTime | DateTime |
Date | DateTime |
Examples
-
Accessing field value:
FIELD:
path: CA10__multiRegionTrail__c -
Using
undeterminedIf
withisEmpty
FIELD:
path: CA10__accountId__c
undeterminedIf:
isEmpty: "Account ID can not be empty. Possibly corrupted data." -
Using
undeterminedIf
withnoAccessDelegate
:FIELD:
path: "CA10__versioningMfaDeleteEnabled__c"
undeterminedIf:
noAccessDelegate:
path: "CA10__versioningStatus__c"
currentStateMessage: "Unable to determine versioning status. Possible permission issue with s3:GetBucketVersioning"