Skip to Content
0

Custom Form Print To Queue Via ABSL --- 'Mandatory Parameter Binary Data is Missing'

Feb 02 at 04:54 PM

48

avatar image

Hi,

I've followed this guide and I'm getting the below error message when my action is called via a button click:

'Mandatory parameter binary data is missing'

Save After Execution is ticked on the action. My code is as follows:

import ABSL;
import BASIS.Global; //BinaryObject.
import AP.Common.GDT as gdt; //OutputRequestFormTemplateCode.
import DocumentServices.Global; //OutputManagementUtilities.

var pdf:BinaryObject;
var formTemplateCode:OutputRequestFormTemplateCode;
formTemplateCode.content = "<Solution ID>_PGS";
var userAccount:UserAccountID;

var formTemplateLanguage = "E";
pdf = OutputManagementUtilities.GetPDF(this, formTemplateCode, formTemplateLanguage);
pdf.fileName = "CustomerInvoice";
userAccount.content = "PRT_001";

var output = OutputManagementUtilities.CreatePrintQueueItem(userAccount, pdf.fileName, 1, pdf, "TESTQUEUE");
var x = 10;

The form template code is correct, as is the print user ID and the name of the print queue. The script file isn't mass-enabled. I've deployed the business configuration of the solution.

Any ideas?

Cheers,

Lewis

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Lewis Peters Feb 06 at 03:49 PM
0

Solved it --- as opposed to using the group code a la Preview buttons, use the actual form code!

Share
10 |10000 characters needed characters left characters exceeded