URL view criteria involving lookup fields

URL view criteria involving lookup fields

I have a view that contains a lookup. The lookup refers to an ID in another table(form).

I'm trying to open the view with criteria which only displays records where the lookup has a certain value (an ID):

E.g.

openUrl("...#View:MyView?MyLookupField=1234567890);

The functionality based url criteria seem to work fine for non-lookup fields. Can anyone confirm if this works at all with lookup fields? If so, what is the trick to work.

Thank you