LookupPerson

 This activity was not migrated to the new namespaces of the Anthology object model.

The LookupPerson activity is a function that captures the Person Id from an event and returns the Person.

Use this lookup function when you need to know the properties of a person in a workflow that has preceding activities containing the Person Id.

Note: This activity can be used to look up the Person properties for Students and Staff members.

LookupPerson

Properties

LookupPerson Properties
Property Value Required Notes
DisplayName String No Specify a name for the activity or accept the default.
Person OutArgument<Person> Yes The Person properties returned by the lookup function. This is a variable that can be used as input for subsequent activities in the workflow. Specify the variable's name, type, and scope (and default if applicable) in the Variables pane of the Designer window.

To identify the variable type, in the Variable type field of the Variables pane, select Browse for Types.... In the 'Browse and Select a .NET Type' window, navigate to Cmc.Nexus.Contracts > Cmc.Nexus, and select Person.

var type person

Note: For a Student, the LookupPerson activity returns a fully populated Person entity, whereas for a Staff member, a subset of fields is returned.

PersonId InArgument<Int32> Yes The Person Id captured from an event which can be derived from either a StudentId or a Staffid.

Note: If a preceding activity in a workflow returns an Id that is not a Person Id, insert a CVueIdToPersonIdActivity into the workflow before using this property.

To see how this activity can be used in a workflow, refer to Add or Update Extracurricular Activities