Hi, for some reason I'm unable to post text on community it say an error occurred while saving the post. So I'm adding a screenshot of my complete scenario. Do have a look and help me on this.
*This post is locked for comments
Try taking a look at .parmAllJournals() on the outputContract variable.
Here's a little method you can add to SalesFormLetter, then pass it the "outputContract" variable and inspect with the debugger.
This code is incomplete and doesn't do any error checking, etc.
private void processOuputContract(FormletterOutputContract _formLetterOutputContract) { Set allJournals = Set::create(SysOperationHelper::base64Decode(_formLetterOutputContract.parmAllJournals())); SetEnumerator se = allJournals.getEnumerator(); CustInvoiceJour custInvoiceJour; // Add error checking and whatever logic all throughout this method while (se.moveNext()) { custInvoiceJour = se.current(); } }
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156