LookupClassSections (V2)

The LookupClassSections activity is a lookup function that finds the Course Id for a class section based on a specified Course Name and Term Id. The activity includes a Search tool that returns Course Names and Course Codes. When you select a Course in the Search tool, the selected item is inserted into the Course Name field of the LookupClassSections activity and the Search tool is closed. You can use this lookup function during a course registration activity.

Use Case

A workflow detects when a student's status changes from any status to an enrolled status and automatically registers the student into an introductory course (Intro101). The LookupClassSections activity is used in the workflow to determine the Course Id (that is, the ClassSectionId of the StudentCourse) for the Intro101 course in the applicable term.

LookupClassSections

Properties

LookupClassSections Properties
Property Value Required Notes
Class Section List OutArgument
<ClassSectionEntity[]>
Yes The LookupClassSections activity returns an array of class sections associated with a course. Specify a course name in the Course Name field or click the Search button to find a course and select it.

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 Array of [T]. In the 'Select Types' window, select Browse for Types, and click OK. In the 'Browse and Select a .NET Type' window, navigate to Cmc.Nexus.Academics.Contracts > Cmc.Nexus.Academics.Entities, select ClassSectionEntity, and click OK.

Class Sections List variable type

See ClassSectionEntity Class in the Anthology Student Object Library.

Course Id InArgument<Int32> Yes The Course Id is a variable captured from an event.
DisplayName String No Specify a name for the activity or accept the default.
Term Id InArgument<Int32> No The Term Id is a variable captured from an event.

The Terms property is a collection. See ClassSectionEntity.Terms Property in the Anthology Student Object Library.

ValidationMessages OutArgument
<ValidationMessageCollection>
No Specify a variable that can be used to capture validation messages. For more information, see Capture Validation Errors.