cancel
Showing results for 
Search instead for 
Did you mean: 

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

former_member183363
Active Contributor
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member183363
Active Contributor
0 Kudos

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

Answers (0)