Start a new topic

How do I retrieve Prospect Status?

How do I retrieve the Prospect Status for the imported record, during the AfterConstituentOpen subroutine?  I have attempted many combinations of code, to no avail.  I need to know what the prospect status value is, in order to determine whether or not I need to cancel the row.  Thank you in advance for any instructions.

Hmm, strange that oRec.Prospect does not bring up a CProspect object.

Did you try oRec.Prospect.Fields(4)?

From the RE documentation 4 = status

PROSPECT_fld_CLASSIFICATION 3
PROSPECT_fld_CONSTIT_ID 2
PROSPECT_fld_ID 1
PROSPECT_fld_RESEARCHPOINTURL 5
PROSPECT_fld_STATUS 4
The Fields option is not available for oRec.Prospect. Am I supposed to be initializing something else, or declaring a new class, etc.?
Does it cause an error or are you just not seeing it pop up as an option?

Try to just put it in even if it doesn't show up automatically. I am thinking that it might just be a problem with the API documentation but that the objects actually do link to each other.
Thank you, using the index of 4 instead of the field name of STATUS, worked.
Login or Signup to post a comment