Calculating which inspection assignment group to use

You can use an assignment group formula to calculate which inspection assignment group Infor Operations and Regulations will use to automatically assign inspectors based on information recorded in a license, such as its location. For example, you could write a formula that adds a Food assignment group to any health inspections for food service businesses. When an inspection is added to a food service license, Infor Operations and Regulations looks for the specific assignment area value defined in the assignment group, such as a postal code or parcel ID. If found, Infor Operations and Regulations assigns the group's inspector to the inspection.

You specify an assignment group formula for an inspection type when you define the inspection type. You must specify an assignment group formula for an inspection type if you want Infor Operations and Regulations to automatically assign inspectors to inspections of that type. You define assignment groups using Inspection Assignment Group. You then create the assignments for those groups using Inspection Assignment.

Assignment group formulas use the oTradeLicense object (an instance of the Hansen.CDR.TradeLicense.iTradeLicense class) to set AssignmentGroup to a string value that is the exact name of the assignment group you want. For more information about this object and for sample code, click the Information tab in the Formula Editor.