The following sample illustrates an object structure containing a system object from Site A with a local ID of 111. The object contains a first name, last name, and three addresses. Following the sample, there are several ePath examples that refer to various elements of this object structure along with a description of the data in the sample object structure referred by each ePath.
Enterprise
SystemObject - A 111
Person
FirstName
LastName
-Address
AddressType = Home
Street = 800 Royal Oaks Dr.
City = Monrovia
State = CA
PostalCode = 91016
-Address
AddressType = Office
Street = 181 2nd Ave..
City = Monrovia
State = CA
PostalCode = 91016
-Address
AddressType = Billing
Street = 100 Grand Avenue
City = El Segundo
State = CA
PostalCode = 90245
|
Person.Address.City – Equivalent to Person.Address[0].City.
Person.FirstName – Uses Person as the context, and is equivalent to Enterprise.SystemObject[@SystemCode=A, @Lid= 111].Person.FirstName with Enterprise as the context.
Person.Address[@AddressType=Home].City – Returns a single ObjectField reference to “Monrovia” (the City field of the home address).
Person.Address[City=Monrovia,State=CA].Street – Returns a list of ObjectField references: “800 Royal Oaks Dr.”, “181 2nd Ave.” (the street fields for both addresses where the city is Monrovia and the state is CA). Note that a reference to the Billing address is not returned.
Person.Address[*].Street – Returns a list of ObjectField references: “800 Royal Oaks Dr.”, “181 2nd Ave..”, “100 Grand Avenue”. Note that all references to Street are returned.
Person.Address[2].* – Addresses the second address object as an ObjectNode instead of an ObjectField.