Below is the example of using the SetRdsElements operation to delete elements from an MDM dictionary. The request contains keys of the elements to be deleted. The response contains the number of deleted elements.
{ "SetRdsElements" : { "tRds" : { "id" : "S1!M!S!N3" }, "tArg" : { "op" : "Unknown", "key" : { "key" : "" }, "del" : { "its" : { "it" : [ { "key" : "564" }, { "key" : "563" } ] } } } } }
{ "SetRdsElementsResult" : { "id" : { "id" : "S1!M!S!N3" }, "key" : { "key" : "" }, "del" : { "count" : "2" } } }
public static SetRdsElementsResult DeleteRDSElements(RdsId moniker, ElKey[] elements) { var somClient = new SomPortTypeClient(); //Proxy object for operation execution //Operation execution parameters var tSet = new SetRdsElements() { tArg = new SetRdsElementsArg() { key = new ElKey() { key = string.Empty }, del = new RdsDeleteElementsArg() { its = elements } }, tRds = moniker }; //Remove elements var tResult = somClient.SetRdsElements(tSet); return tResult; }
See also: