Non-Agent-API and Custom Fields

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Non-Agent-API and Custom Fields

Postby DarthGamer » Wed Jul 24, 2013 8:47 am

Greetings,

When creating a List from the Non-Agent-API, there's no option to create custom fields. The same with the update_list command. And when trying to add a lead with the field custom_leads = Y it throws that the list can't find the custom fields.

Is there a way to create the custom fields on a list through the Non-Agent-API?

We are trying to integrate our CRM to Vicidial, but it would defeat the purpose if each time a new list needs to be uploaded, it has to be created and configured manually from the Vicidial admin.

Thank you in advance.

This is the version info:
VERSION: 2.7-401a
BUILD: 130508-2256
DarthGamer
 
Posts: 15
Joined: Wed Jul 24, 2013 8:40 am

Re: Non-Agent-API and Custom Fields

Postby hiadviser » Thu Jul 25, 2013 1:22 am

If I am understanding your question right, you have custom fields coming through the API. Those fields need to be created in both systems, Vici and your CRM. Then with your coding you can get and assign the right variables. You can't create a field with the non agent API, but as long as it's created in Vici it will populate accordingly.
ViciDial VERSION: 2.14-583a | BUILD: 161226-2224 | Asterisk 11.22.0-vici | Cluster Setp - 3 Web, 1 DB| No Digium/Sangoma Hardware | No Extra Software | HP ProLiant DL360 G6, 48GB RAM, 16 x Intel Xeon X5550 2.67GHz, 480GB SSD
hiadviser
 
Posts: 71
Joined: Wed Dec 05, 2012 9:29 am

Re: Non-Agent-API and Custom Fields

Postby mflorell » Thu Jul 25, 2013 6:24 am

creating custom fields through the non-agent-API is not currently a feature. You can only do this through the admin webpages.
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: Non-Agent-API and Custom Fields

Postby DarthGamer » Fri Jul 26, 2013 2:53 am

I was hoping that wasn't the case. It would be a good addition to the API to be able to create custom fields.
DarthGamer
 
Posts: 15
Joined: Wed Jul 24, 2013 8:40 am

Re: Non-Agent-API and Custom Fields

Postby mflorell » Fri Jul 26, 2013 6:01 am

Managing custom list fields is very complex, and would not be a simple addition to the non-agent API. Also, no customer has requested this functionality, so we haven't even thought about adding it.
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: Non-Agent-API and Custom Fields

Postby williamconley » Tue Jul 30, 2013 8:42 pm

That being said ... it would be possible to "copy" the custom fields from an existing list into a newly created list. That api function could be created without quite so much hubbub. bub.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)


Return to Support

Who is online

Users browsing this forum: Google [Bot] and 123 guests