SaveObject(OdId tObject)
tObject. Changed object moniker.
The SaveObject operation saves changes of the repository object.
This operation is used to save the changes made using various Set* operations. To execute the operation, in the tObject parameter specify the moniker of the object that is opened for edit and contains any changes. The operation does not return any result.
Below is the example of saving object changes. The request contains object moniker. The response contains whether changes are saved successfully.
{
"SaveObject" :
{
"tObject" :
{
"id" : "FNDKOLJACBNNFOAEDCEENEKPOGMMOOGEBLEIHFKEJOFOFMNJ!M!S!PEBKNNPLACBNNFOAEFJIHENGMLLEEFMNEGKDLLLINOAOGLEBE"
}
}
}
{
"SaveObjectResult" : "1"
}
//public static SaveObjectResult SaveObject(string moniker)
public static bool SaveObject(string moniker)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
var tSave = new SaveObject()
{
tObject = new OdId()
{
id = moniker
}
};
//Save object changes
var result = somClient.SaveObject(tSave);
return result;
}
See also: