10-26-2012 04:10 AM - edited 10-26-2012 04:11 AM
Hi There,
I am developing a plugin in VB.NET which both pulls and pushes Contact data into ACT! and I have hit a stumbling block with one particular field - the Record Manager field.
Briefly put, my code does the following:
curContact = ActApp.ApplicationState.CurrentContact
with CurContact
strContactInfo = .ID.toString & vbTab & .FirstName & vbTab & .LastName & vbtab
strContactInfo = strContactInfo & .Fields("TBL_CONTACT.CREATEDATE", True)
...snip...
strContactInfo = strContactInfo & .Fields("TBL_CONTACT.MANAGEUSERID", True)
End With
As stated in the subject header, I am trying to get the Record Manager for the current contact. I can see from database access that the MANAGEUSERID field exists in the database. Using the Field Details report that comes with ACT! I can see other 'names' for this field, and (a more useful) one called MANAGEUSERID_NAME.
When using the plugin, no matter which field name I try, I get a message saying that the field doesn't exist.
Can anyone point me in the right direction for getting this information out of ACT! using the SDK?
Thanks
Steve
10-26-2012 05:54 AM
Ooopss! *blush*
I didn't read carefully did I! Doh!
to get the RecordMan, its simple you can use the Contact Property:
Contact c;
string name = c.RecordManager;
10-26-2012 04:13 AM
Hi Steve,
For the RecordManager field you have to use the Contact.SetRecordManager(User) method since it's not a "typical" field.
HTH
10-26-2012 05:47 AM
Hi There,
Thanks for this, but I don't want to set it (Yet!) I just want to read the current value. Is this possible?
Steve
10-26-2012 05:54 AM
Ooopss! *blush*
I didn't read carefully did I! Doh!
to get the RecordMan, its simple you can use the Contact Property:
Contact c;
string name = c.RecordManager;
10-26-2012 06:08 AM
Vivek, I could kiss you! :-) Thanks