How do you reference a field inside a Custom Data Type (CDT) from a rule or interface, such as accessing dealershipName on a vehicle CDT?

Prepare for the Appian Associate Developer Exam with our interactive quiz. Boost your knowledge with multiple choice questions and detailed explanations. Ace your test with confidence!

Multiple Choice

How do you reference a field inside a Custom Data Type (CDT) from a rule or interface, such as accessing dealershipName on a vehicle CDT?

Explanation:
Accessing fields of a CDT is done directly with dot notation on the CDT variable. When you have a CDT instance like vehicle, you read its fields by appending the field name after a dot, for example pv!vehicle.dealershipName. This works whether the CDT comes from a rule input, a process variable, or a local variable, and it works for nested fields by chaining dots (pv!vehicle.dealershipName, or pv!vehicle.dealership.name if the subfield is itself a CDT). There’s no need to flatten the CDT or convert it to text to access its fields. Direct dot notation is the standard, straightforward way to reference CDT fields.

Accessing fields of a CDT is done directly with dot notation on the CDT variable. When you have a CDT instance like vehicle, you read its fields by appending the field name after a dot, for example pv!vehicle.dealershipName. This works whether the CDT comes from a rule input, a process variable, or a local variable, and it works for nested fields by chaining dots (pv!vehicle.dealershipName, or pv!vehicle.dealership.name if the subfield is itself a CDT).

There’s no need to flatten the CDT or convert it to text to access its fields. Direct dot notation is the standard, straightforward way to reference CDT fields.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy