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!N5"
},
"tArg" :
{
"op" : "Unknown",
"key" :
{
"key" : ""
},
"del" :
{
"its" :
{
"it" :
[
{
"key" : "4"
},
{
"key" : "3"
}
]
}
}
}
}
}
{
"SetRdsElementsResult" :
{
"id" :
{
"id" : "S1!M!S!N5"
},
"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
};
//Delete elements
var tResult = somClient.SetRdsElements(tSet);
return tResult;
}
See also: