Application Studio erp-baq Where using GUID column

Trying (for way too long) to have this filtered erp-baq to work. The below returns “undefined” in my View.Field. PerConLnk.LinkSysRowID contains the GUID value I want to pass.

Hardcoding a value returns the same result. Ex: CustCnt_SysRowID =‘78E3ACDB-C1AB-4C20-A09E-50E702F970C6’

However all these work just fine:

CustCnt_CustNum=4937
CustCnt_Name=‘My Employee’
CustCnt_PerConID={PerConLnk.PerConID}
CustCnt_Name=‘{PerConLnk.CustContactName}’

Pretty sure it is a syntax thing but cannot figure the right one. Please help! Using 2025.2

thanks,

Try without the quotes around {PerConLink.LinkSysRowID}

Thanks for the quick reply. Unfortunately, getting undefined

If you use the browser you can open up the developer tools, go to the Console section, then enable debug mode (for most browsers the keybind is ctrl + alt + 8), and that will show exactly what events are processed as you use the menu and what values get passed and what it is trying to send.

Are you displaying the SysRowID column in the BAQ itself?

I am

select
[CustCnt].[Inactive] as [CustCnt_Inactive],
[CustCnt].[Company] as [CustCnt_Company],
[CustCnt].[PerConID] as [CustCnt_PerConID],
[CustCnt].[CustNum] as [CustCnt_CustNum],
[CustCnt].[ShipToNum] as [CustCnt_ShipToNum],
[CustCnt].[ConNum] as [CustCnt_ConNum],
[CustCnt].[Name] as [CustCnt_Name],
[CustCnt].[SysRowID] as [CustCnt_SysRowID]
from Erp.CustCnt as CustCnt
order by CustCnt.Inactive Desc

Closest I got is using this: CustCnt_SysRowID = ‘{PerConLnk.LinkSysRowID}’

DevTools returns (CustCnt_SysRowID = N78e3acdb-c1ab-4c20-a09e-50e702f970c6)

How to get rid or handle that N in front?

Yeah I think that’s becasue Epicor tries to be helpful an d the data type of the column it assumes is a number.

THis is super hacky, but if you make a Calculated field in the baq and just do nvarchar(36)

   LOWER(CONVERT(nvarchar(36), CustCnt.SysRowID))

and then filter on Calculated_SysRowID then it will probably work as single quoted.

That worked! Thanks everybody

**Epicor software development
software development GIF

More like
Brilliant Kid Sticks Metal Tool Into Electrical Outlet on Make a GIF