function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
RufussRufuss 

Using Print Anything

Apologies if this post is in the wrong place, but I figure the issue is in how I am writing my s-control.

I am trying to use the Print Anything app from a custom object, and from the provided support docs cannot get the custom button to launch the app.

My custom object is 'Booking', so API name 'Booking__c'.

My button code is

{URLFOR($SControl.PRINTANY_PrintAnythingDriver,
{!Booking__c.Id},
[packageId="BookingInvoice", debug="1")]}


All it delivers is a broken URL message.  Where am I going wrong?  Any feedback gratefully received!
BritishBoyinDCBritishBoyinDC
Haven't used the 'print anything' s-control, but pretty sure that the final two brackets are the wrong way round...I think they should be:

{URLFOR($SControl.PRINTANY_PrintAnythingDriver,
{!Booking__c.Id},
[packageId="BookingInvoice", debug="1"])}

SL TanSL Tan
Dear Rufuss
Perhaps you should code as below by keeping to the Event.Id even though you are placing your button in your Booking Object - hope this helps.
SL
 
 
{!URLFOR(
$SControl.PRINTANY__PrintAnythingDriver,
Event.Id,
[packageId="BookingInvoice" , debug="1"])
}