08-09-2016 07:06 AM - edited 03-14-2019 04:23 PM
Hi All,
Is there is any API's for uploading contacts in outbound compaign? We need to upload contacts automatically to the outbound campaign for every 5 mins. Is it Possible?
Kindly Suggest Me a Way
Thanks in Advance
Solved! Go to Solution.
08-10-2016 03:04 PM
Yes! But, as with a lot of things, there's limits you need to be aware of, and documentation you need to read.
Documentation:
https://developer.cisco.com/site/uccxapi/overview/
Example:
Add Contact to Campaign #11
POST https://UCCXSERVER/adminapi/campaign/11/contacts
Content Body:
<?xml version="1.0" encoding="UTF-8"?>
<campaignContacts>
<campaign name="Recall_Outbound">
<refURL>https://UCCXSERVER/adminapi/campaign/11</refURL>
</campaign>
<csvdata>
account number, first name, last name, phone1, dial time
54321, John, Smith, 916125551212, 20:45
</csvdata>
</campaignContacts>
08-10-2016 03:04 PM
Yes! But, as with a lot of things, there's limits you need to be aware of, and documentation you need to read.
Documentation:
https://developer.cisco.com/site/uccxapi/overview/
Example:
Add Contact to Campaign #11
POST https://UCCXSERVER/adminapi/campaign/11/contacts
Content Body:
<?xml version="1.0" encoding="UTF-8"?>
<campaignContacts>
<campaign name="Recall_Outbound">
<refURL>https://UCCXSERVER/adminapi/campaign/11</refURL>
</campaign>
<csvdata>
account number, first name, last name, phone1, dial time
54321, John, Smith, 916125551212, 20:45
</csvdata>
</campaignContacts>
08-10-2016 10:54 PM
hi Anthony,
Thanks Anthony thats made a trick.... awesome.......... Thanks a lot
12-16-2016 10:26 AM
I am having the same problem. But can't figure out in Postman how to get this to work. Keep getting a 400 Bad Request error.
So in my Body in Postman I am putting
<campaign name="Recall IVR Predictive">
<refURL>https://wd-ccx-pub-westderm.com/adminapi/campaign/2</refURL>
</campaign>
<csvdata>
account number, first name, last name, phone1, dial time
54321, John, Smith, 16125551212, 20:45
</csvdata>
Have also tried
<csvdata>
account number, first name, last name, phone1, dial time
54321, John, Smith, 16125551212, 20:45
</csvdata>
Still get 400 Bad Request - The request could not be understood by the server due to malformed syntax
Does anyone know how I need to put the info in the body??
Giving me the below doesn't help as I know allot of the below is automatically sent.
<?xml version="1.0" encoding="UTF-8"?>
<campaignContacts>
<campaign name="Recall_Outbound">
<refURL>https://UCCXSERVER/adminapi/campaign/11</refURL>
</campaign>
<csvdata>
account number, first name, last name, phone1, dial time
54321, John, Smith, 916125551212, 20:45
</csvdata>
</campaignContacts>
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide