1. In the Query, select the Output tab
  2. From Available Fields, select Primary Constituency Information> Constituency Code
Note:  This field is only available in a Constituent, Individual, or Organization Query