[SalesForce] Unable to get the record Id in flow

I am using a custom button in classic to open the flow page with url
/flow/runtime.apexp?flowDevName=Account_Handover&accountId={!Account.Id}

I need to get this accountId in my visual flow, so I have created accountId variable, if I don't enable the lightning skin from Process Automation Settings I get this account Id, but as soon as I enable the lightning skin in there (which I need to have in order to use custom lightning components in flow), I get the accountId as null.

Any suggestion/idea if I am missing something?

Best Answer

Assuming your flow name is "Account_Handover", you should replace the custom button url with the following:

/flow/Account_Handover?accountId={!Account.Id}

Also, make sure that an "accountId" variable (text, input and output) exists in your flow so that it can be assigned to it, and you can use it later in your flow.

Related Topic