I'm using the code below to add a new list to my account using the Java API. It appears the api ignores my listID and makes it's own unique ID.
Is there anyway to overide this functionality?
_contactListService = _factory.createContactListService();
ContactList newList = new ContactList();
newList.setId("9998" );
newList.setName("ListName");
newList.setStatus("ACTIVE");
_contactListService.addList( newList );
Solved! Go to Solution.
Hello,
Unfortunately it is not possible to create your own list ID. Our system will always assign a unique ID automatically to any new lists.
One easy way to get the ID which is assigned to the newly created list, would be to do the following:
_contactListService = _factory.createContactListService(); ContactList newList = new ContactList(); String listID; newList.setId("9998" ); newList.setName("ListName"); newList.setStatus("ACTIVE"); newList = _contactListService.addList( newList ); listID = newList.getId();
Hopefully this help!
Sincerely,
Hello,
Unfortunately it is not possible to create your own list ID. Our system will always assign a unique ID automatically to any new lists.
One easy way to get the ID which is assigned to the newly created list, would be to do the following:
_contactListService = _factory.createContactListService(); ContactList newList = new ContactList(); String listID; newList.setId("9998" ); newList.setName("ListName"); newList.setStatus("ACTIVE"); newList = _contactListService.addList( newList ); listID = newList.getId();
Hopefully this help!
Sincerely,
The holidays have come and gone. For many seasonal businesses, this means the rush of shoppers has decreased as well. Instead of turning off the lights and waiting for spring, make your email marketi...
See Article