You need to sign in to do that
Don't have an account?

Why is my query not retrieving value of Account ID in PrintAnything?
Hi,
I am using the basic version of PrintAnything. For some reason, the following SOQL query is returning zero records.
Select a.Name From Account a where a.Id='{!Account.Id}'
but when I hard-code the id as follows, it works:
Select a.Name
From Account a where a.Id='0013000000Gbf4MAAR'
From Account a where a.Id='0013000000Gbf4MAAR'
Appreciate all help to figure out why a.Id='{!Account.Id}' is not working in the query for PrintAnything.
Regards,
Ambili
Ambili
Message Edited by krisc on 05-08-2008 07:54 AM
Try to setup your query like:
select a.Name from Account a where a.Id = '{Parameter.accountId}'
On the button, where the report is started (assumed it is on a Account layout), add the parameter:
{!URLFOR(
$SControl.PRINTANY__PrintAnythingDriver,
Event.Id,
[packageId="NameOfYourPackage", accountId=Account.Id])
}
Regards,
Ambili