cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1677
Views
0
Helpful
3
Replies

Automatic Contacts import in UCCX

moses.ezra
Level 1
Level 1

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

1 Accepted Solution

Accepted Solutions

Anthony Holloway
Cisco Employee
Cisco Employee

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>

View solution in original post

3 Replies 3

Anthony Holloway
Cisco Employee
Cisco Employee

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>

hi Anthony,

Thanks Anthony thats made a trick.... awesome.......... Thanks a lot

carla
Level 4
Level 4

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>