You need to sign in to do that
Don't have an account?
3421
I have a process builder which invokes the Apex class. This Apex sends out an email to the Contact. The attachment of the Email is a VF page which gets the list of line items.
The issue here is that I would like to capture the record id of the record invoked by Process Builder and pass it on all the way to the VF page.
Any sample code or ideas would greatly help
Can Process Builder get the id of record that triggered the process
I have a process builder which invokes the Apex class. This Apex sends out an email to the Contact. The attachment of the Email is a VF page which gets the list of line items.
The issue here is that I would like to capture the record id of the record invoked by Process Builder and pass it on all the way to the VF page.
Any sample code or ideas would greatly help
you can use send(List<Id> listOfRecordId)
then i am sure it will show you in process builder.
All Answers
from the apex class, you can pass it further.
Let me know if it helps you..
Is there somethign I am missing here. I have a full copy sandbox in EE
Make sure you have @InvocableMethod(label='Get Account Names' in the class. Label is what appears in process builder.
you can use send(List<Id> listOfRecordId)
then i am sure it will show you in process builder.
But this did not work. I know that currentpage dosent work since the page is not getting invoked directly
and from your process builder controller , you can pass the id like this
Apart from this, whatever you are doing looks fine to me.
pdf.setRedirect(true);
when you do pdf.getContent() , it automatically hits the page and its controller gets executed.