custom_fields_copy in NON-AGENT_API not copying fields

All installation and configuration problems and questions

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

custom_fields_copy in NON-AGENT_API not copying fields

Postby Marco Zink » Wed Mar 17, 2021 1:04 am

Hello everyone:

I have a ViciBox v.9.0.2 200415-1712 with VERSION: 2.14-787a BUILD: 210211-1145.

I'm working with the NON-AGENT API trying to use the add_list function. It seems the custom_fields_copy option is not actually working, when I run a request it show as success but the fields are not copied:

Code: Select all
localhost:~ # curl -k "https://localhost/vicidial/non_agent_api.php?source=lead_loder&function=add_list&&custom_fields_copy=10001&user=apiuser&pass=apipass&list_id=2021031630112&list_name=202103111&campaign_id=desk30"
SUCCESS: add_list LIST HAS BEEN ADDED - apiuser|2021031630112|202103111|desk30


Source list fields:
Image

Destination list fields:
Image

I've made sure that permissions are set correctly for the apiuser.

Thanks in advance.
MZ
Marco Zink
 
Posts: 14
Joined: Fri Apr 24, 2015 2:09 pm

Re: custom_fields_copy in NON-AGENT_API not copying fields

Postby carpenox » Wed Mar 17, 2021 8:04 am

you forgot to add custom_copy_method to your string. Also did you enable the 'custom_fields_copy' option on the apiuser?
Alma Linux 9.3 | SVN Version: 3822 | DB Schema Version: 1711 | Asterisk 18.18.1
www.dialer.one -:- 1-833-DIALER-1 -:- https://linktr.ee/CyburDial -:- WhatsApp: +19549477572 -:- Skype: live:carpenox_3 | Discord: https://discord.gg/DVktk6smbh
carpenox
 
Posts: 2247
Joined: Wed Apr 08, 2020 2:02 am
Location: St Petersburg, FL

Re: custom_fields_copy in NON-AGENT_API not copying fields

Postby Marco Zink » Wed Mar 17, 2021 4:17 pm

Thank you carpenox,

As per the documentation that parameter is optional and would use APPEND as default, either way I tried using it with APPEND and REPLACE unsuccessfully.

The apiuser has the 'Modify Custom Fields' permission enabled (since there is no custom_fields_copy)
Marco Zink
 
Posts: 14
Joined: Fri Apr 24, 2015 2:09 pm

Re: custom_fields_copy in NON-AGENT_API not copying fields

Postby carpenox » Wed Mar 17, 2021 4:28 pm

oops, mistype, lol. sorry about that, i will give that function a try and see what happens when i give it a go and report back, you can message me on skype if u want, maybe i can help you figure it out
Alma Linux 9.3 | SVN Version: 3822 | DB Schema Version: 1711 | Asterisk 18.18.1
www.dialer.one -:- 1-833-DIALER-1 -:- https://linktr.ee/CyburDial -:- WhatsApp: +19549477572 -:- Skype: live:carpenox_3 | Discord: https://discord.gg/DVktk6smbh
carpenox
 
Posts: 2247
Joined: Wed Apr 08, 2020 2:02 am
Location: St Petersburg, FL


Return to Support

Who is online

Users browsing this forum: No registered users and 58 guests