- Joined
- Jan 28, 2017
- Messages
- 8
- Reaction score
- 2
Hi,
i still have some issues with getting the called name from 3cx phonebook using the c# code and execute c# code cfd component.
I'm using the following code:

I get the following error when i upload the cfd zip file to 3cx:
I would like to get the caller first and last name to use it in email notifications, voicemail email notifications and database insert that is configured in the rest of cfd process.
Please provide some help.
thank you.
i still have some issues with getting the called name from 3cx phonebook using the c# code and execute c# code cfd component.
I'm using the following code:
C#:
PhonebookEntry Contact = PhoneSystem.Root.GetTenant().FindContacts(strANI,6) as PhonebookEntry;
return Contact.Firstname + " " + Contact.Lastname;
I get the following error when i upload the cfd zip file to 3cx:
Code:
:[37573..37587)E: (813,12)-(813,26): Error CS0246: The type or namespace name 'PhonebookEntry' could not be found (are you missing a using directive or an assembly reference?)
PhonebookEntry Contact = PhoneSystem.Root.GetTenant().FindContacts(strANI,6) as PhonebookEntry;
^^^^^^^^^^^^^^
:[37653..37667)E: (813,92)-(813,106): Error CS0246: The type or namespace name 'PhonebookEntry' could not be found (are you missing a using directive or an assembly reference?)
PhonebookEntry Contact = PhoneSystem.Root.GetTenant().FindContacts(strANI,6) as PhonebookEntry;
I would like to get the caller first and last name to use it in email notifications, voicemail email notifications and database insert that is configured in the rest of cfd process.
Please provide some help.
thank you.