CA Service Management

 View Only
  • 1.  problem use createAttachment

    Posted Apr 22, 2021 09:37 PM
    Hi good day

    My problem is that I don't know where to get the "Handle repository" to be able to attach a file and my code is in c #.
    I am calling the method createAttachment

    my code:

    wsUSD.createAttachment(sid,"","cr:xxxx";"comment","c:\archivo.txt")

    Do I need to add something else to upload the file?

    thanks



  • 2.  RE: problem use createAttachment

    Posted Apr 23, 2021 01:34 AM
    Hi,

    try it like this:

    wsUSD.createAttachment(sid, "doc_rep:1002", "cr:xxxx", "", "C:\archivo.txt);​


    doc_rep:1002 is a default value.