Misspent my youth on this today. We need to customize an electronic interface to create AP EFT files because Canada . I can’t believe this isn’t as common as dirt, but I haven’t been able to find an 80-Byte template or C# script.
Most of the data is already pulled into the payment_generic.cs
program, an I just need to reformat and use StreamWriter to create the file I need. But some info like the blanky BankAcct.CheckingAccount field is not, and I’m just about ready to scrap the whole gong show and use a datadirective on CheckHed instead of the EI.
It’s really just that I don’t know what I’m doing with visual studio. There’s a separate file called Payment_Generic.Queries.cs
that appears to have what I need to get Bank Account info:
Expression<Func<ErpContext, string, string, BankAcct>> expression = (ctx, company_ex, bankAcctID_ex) => (from row in ctx.BankAcct
where row.Company == company_ex &&
row.BankAcctID == bankAcctID_ex
select row).FirstOrDefault();
but I don’t know how to (call? invoke? use? convince?) it.
If this were a BPM I’d just use
var thing = (from ba in Db.BankAcct where blah blah select ba).FirstOrDefault();
And then get my info, but I don’t knw how to do this in an EI.
Sorry to always ask the thick ones but anyone mind pointing me in the right direction?
Many thanks!