Migration of Uipath Apps from legacy to VB

I have few UiPath Apps which are built in legacy way, and I want to migrate it to VB. While I am doing that, all the Lookup() functions are showing error - “Expression Expected”. Please find a snapshot as below.

How can I fix these lookup() function errors? How to write VB expression to Legacy equivalent of something like this -

Lookup(LastOneReportUpdate,[LastOneReportUpdate.RecordNumber,“=”,1]).LastOneReportUpdate.MileStoneGlossary

Hi @pavitra

Can you please try this?

Lookup(LastOneReportUpdate, “RecordNumber”, 1, “MileStoneGlossary”)

Thank you! But I am seeing this error.

Too few type arguments to ‘Lookup(Of TKey, TElement)’.

‘LastOneReportUpdate’ is a class type and cannot be used as an expression.

What is data type of LastOneReportUpdate

Did you try asking the autopilot in the bottom right for help? Either to fix it or describing what you need fresh? It can be pretty hit or miss but when it hits it hits.

LastOneReportUpdate - is an Entity and MileStoneGlossary - is a ‘file’ datatype

Hi @pavitra,

Use Query builder

Apps - Displaying the value of an entity field in a label