Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Used to call the function

  1. obj id - Integer
  2. TAttachmentFile TVendor

Returns

Returns the following

 



Code Block
languagec#
titleUpload Attachment
            IItemServiceservice service = new IItemServiceservice();
            service.BasicSecurityValue = new BasicSecurity() { Username = "ws.dev", Password = "Code2make" };
            var invoice = new TVendorInvoice()
            {
                Amount = 1000,
                CurrencyCode = "ISK",
                InvoiceDate = DateTime.Now,
                InvoiceNumber = "SK-1235",
                Reference = "DK985",
                Vendor = "default",
                InvoiceType = TComboBox_DebCred._cbCredit
            };
            string filename = "2017-05-25-F13F35C6-DE84-4E05-986B-D5F0FE4188DD.pdf";
            service.UploadVendorInvoiceAttachment(invoice.ID, new TAttachmentFile() { Name = filename, Data = System.IO.File.ReadAllBytes(@"C:\temp\"+ filename) });


 

Content by Label
showLabelsfalse
max5
spacesDEV
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel in ("re-new","token","refresh") and type = "page" and space = "DEV"
labelsRefresh re-new Token

...