I am writing a C# app to bring in Journal Entries. I have two issues; I am getting no value for nGetNextJournalNo and I get an invalid key error when attempting to set the SourceJournal+EntryNo key, even though I am setting entryno to a string. I have also tried hard-coding the key instead of trying to get the next number and still got an invalid error.
gl_bus is GL_GeneralJournal_bus
gl_svc is GL_SourceJournal_svc
gl_bus.InvokeMethod("nSetKeyValue", "SourceJournal$", "AP");
gl_svc.InvokeMethod("nGetNextJournalNo", "AP", journalEntryNo);
gl_bus.InvokeMethod("nSetKeyValue", "EntryNo$", journalEntryNo);
gl_bus.InvokeMethod("nSetKey");