We have 2 schemas.
The first schema, named "NMS Group Users", is for our users and their related divisions with two ObjectTypes, "Users" and "Divisions". User objects have an attribute named "WorkerDivision" which is an Object reference to the "Divisions" ObjectType. We have enabled "Allow others to select objects from this schema" in the Schema settings.
The second schema, named "DEVITSD", is for our Applications and Hardware. We have created an attribute named "availableDivisions" on the "Applications" ObjectType that is a multi-select Object reference to the "Divisions" ObjectType that exists in the Users schema.
I believe we should be able to traverse connected schemas if we enable "Allow others to select objects from this schema"
Problem Statement: Generate an AQL on our custom field that will display only those Applications that have "availableDivisions" attribute that matches the "reporter" (workerName) attribute of "workerDivision" for the ticket.
I think the Object schema for the custom field should be "DEVITSD", since this is where the Applications are listed.
The Filter scope we have attempted:
object HAVING inboundReferences(
objectType = "Divisions" AND
"Key" = (ObjectType = "Users" AND "workerName" = {{reporter}})."workerDivision"."Key"
)
The logic is that we would look at the reporter, match it to the Worker record, then pull the key for the Division that is assigned. We would then use that key to identify the Division that would be used to filter the Application list based on Division of the reporter.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.