Page 1 of 1

custom_fields_copy in NON-AGENT_API not copying fields

PostPosted: Wed Mar 17, 2021 1:04 am
by Marco Zink
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

Re: custom_fields_copy in NON-AGENT_API not copying fields

PostPosted: Wed Mar 17, 2021 8:04 am
by carpenox
you forgot to add custom_copy_method to your string. Also did you enable the 'custom_fields_copy' option on the apiuser?

Re: custom_fields_copy in NON-AGENT_API not copying fields

PostPosted: Wed Mar 17, 2021 4:17 pm
by Marco Zink
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)

Re: custom_fields_copy in NON-AGENT_API not copying fields

PostPosted: Wed Mar 17, 2021 4:28 pm
by carpenox
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