Collection.SetUniqueFields

August 10, 2015

Description

Sets the Unique Fields on the Collection. WARNING: This operation will delete any duplicates in the collection based on the new unique fields being set.

Required parameters

CollectionID, Fields (comma-separated list of field names to be set as unique)

Returns

A message detailing whether the command executed successfully and also the number of duplicate items removed.

Example request url

https://api.mozenda.com/rest?WebServiceKey=3FE7221C-9097-4B64-AED6-0950F675F377&Service=Mozenda10&Operation=Collection.SetUniqueFields&Fields=Col1,Col2,Col3&CollectionID=1052

Example response

<?xml version="1.0" encoding="utf-8" ?>
<CollectionSetUniqueFieldsResponse 
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <Result>Success</Result> 
  <DuplicateItemsRemoved>0</DuplicateItemsRemoved>
</CollectionSetUniqueFieldsResponse>

Need more information?

We'd love to hear from you.

100% Privacy. You are that important to us. Privacy Policy