Adds a property set row to a document or a folder in the specified path.
Visual Basic (declaration) |
---|
Public Function AddPropertySetRow( _ |
C# (declaration) |
---|
public XmlNode AddPropertySetRow( |
Visual Basic Example |
---|
Public Sub AddPropertySetRow() Const IRAuthenticationTicket As String = "sid-XXXXXXXXXXXX" Const ServiceURL As String="http://docsrv/inforouter/srv.asmx" Const TargetIRPath As String = "/Human Resources/Letters/1234-1234-AB-Reference.PDF" Dim IR_OBJ As InfoRouter.srv Dim xml_response As System.Xml.XmlNode Try IR_OBJ = New InfoRouter.srv IR_OBJ.Url = ServiceURL Dim xmlPset As String = "<Propertysets>" + _ "<propertyset Name=""LETTER"">" + _ "<propertyrow LetterType=""Reference"" FromWhom=""Joe Doe"" Subject=""Subject 1 - Lorem Dolor Sit amet.."" />" + _ "<propertyrow LetterType=""Business"" FromWhom=""Marry Smith"" Subject=""Subject 2 - Lorem Dolor Sit amet.."" />" + _ "</propertyset>" + _ "</Propertysets>" xml_response = IR_OBJ.AddPropertySetRow(AuthenticationTicket, TargetIRPath, xmlPset) 'check response xml if any error occured. If xml_response.Attributes("success").Value = "true" Then Console.WriteLine("Propertyset has been added") Else Console.WriteLine("server response:" + xml_response.Attributes("error").Value) End If xml_response = Nothing Return Catch ex As Exception Console.WriteLine("error:" & ex.Message) Finally xml_response = Nothing IR_OBJ = Nothing End Try End Sub |