Not able to write using AR_InvoiceHistoryInquiry_bus object

Hi,

I'm trying to use vbs script to insert an entry into the AR_InvoiceHistory table using AR_InvoiceHistoryInquiry_bus object but I'm getting the following error:

Can anybody please help.

Parents Reply
  • 0 in reply to Parag Vernekar

    Check the Primary Key of the table and you'll notice it has two fields: InvoiceNo and HeaderSeqNo.  You can try to concatenate them together for a single SetKey line, but sometimes it's a bit of guessing to know how to null pad the key properly.  SetKeyValue x2 plus the SetKey() is more reliable.

Children