Community
Showing results for 
Search instead for 
Do you mean 
Reply

Act for Web - Current Contact

Tuned Listener
Posts: 7
Country: New_Zealand

Act for Web - Current Contact

In Act for Web, how can i get and update the current contact details?

Can you give me some code samples?

 

Thanks.

Employee
Posts: 1,163
Country: USA

Re: Act for Web - Current Contact

This is sort of round-about, but it'll get you an array with only the current contact in it. We unfortunately don't have a current contact property:

 

Guid ID = new Guid(ACTSessionManager.CurrentContactID);
ContactList c = this.afw.Contacts.GetContactsByID(nullnew Guid[1] { ID });
Matthew Wood
Act! SDK Support
Community Moderator
Tuned Listener
Posts: 7
Country: New_Zealand

Re: Act for Web - Current Contact

Is there a way to update the current contact fields on act for web using plug-in?

Employee
Posts: 1,163
Country: USA

Re: Act for Web - Current Contact

Update as in force the current contact to update, or do you mean to change the values of fields for the current contact?

Matthew Wood
Act! SDK Support
Community Moderator
Tuned Listener
Posts: 7
Country: New_Zealand

Re: Act for Web - Current Contact

change the values of fields for the current contact.