Community
Showing results for 
Search instead for 
Do you mean 
Reply

Getting the Record Manager from ACT SDK

Accepted Solution Solved
New Member
Posts: 6
Country: United_Kingdom
Accepted Solution

Getting the Record Manager from ACT SDK

[ Edited ]

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

 


Accepted Solutions
Solution
Accepted by topic author steve.garton
‎09-25-2015 03:20 AM
Bronze Elite Contributor
Posts: 2,115
Country: United_Kingdom

Re: Getting the Record Manager from ACT SDK

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;

Vivek Gargav
Caldere Associates Ltd.
www.caldere.com
vgargav@caldere.com
My Blog

View solution in original post


All Replies
Bronze Elite Contributor
Posts: 2,115
Country: United_Kingdom

Re: Getting the Record Manager from ACT SDK

Hi Steve,

 

For the RecordManager field you have to use the Contact.SetRecordManager(User) method since it's not a "typical" field.

 

HTH

Vivek Gargav
Caldere Associates Ltd.
www.caldere.com
vgargav@caldere.com
My Blog
New Member
Posts: 6
Country: United_Kingdom

Re: Getting the Record Manager from ACT SDK

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

Solution
Accepted by topic author steve.garton
‎09-25-2015 03:20 AM
Bronze Elite Contributor
Posts: 2,115
Country: United_Kingdom

Re: Getting the Record Manager from ACT SDK

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;

Vivek Gargav
Caldere Associates Ltd.
www.caldere.com
vgargav@caldere.com
My Blog
New Member
Posts: 6
Country: United_Kingdom

Re: Getting the Record Manager from ACT SDK

Vivek, I could kiss you! :-) Thanks