SalesforceLabs / EnhancedLightningGrid

Component that allows you to sort and filter data within the Lightning Experience. Use as a replacement for a Related List, or create a new grid that shows results from a custom query.
BSD 3-Clause "New" or "Revised" License
136 stars 96 forks source link

Cant configure for WorkOrders #52

Open Muni72 opened 3 years ago

Muni72 commented 3 years ago

Does anyone know why WorkOrders dont work with this component?

when trying to add it directly on the lightning page, I keep getting the error: 6 17:34:18:704 Error: sdgDataProviderRelationship:GetSDGFieldsFromFieldSet Could not access fields listed in the field set - are restrictions on the package enabled?

Even when trying to create the sortable grid via the app it allows me to create the grid but returns this error when I try to add the fields: Unable to resolve API Name: WorkType__c from WorkOrder

image

anyone have an idea how to resolve? p.s. am a system admin & the one who installed the package so permissions should all be there (alsoadded the permission set to my user just incase)

bodwa commented 2 years ago

Same issue here.

@Muni72 - Did you find a solution for this ?

denford commented 2 years ago

@bodwa @Muni72 - not sure if it's still helpful for you, but I downloaded the source and pushed it into a scratch org, and the issue is that one of the classes (https://github.com/SalesforceLabs/EnhancedLightningGrid/blob/master/classes/sdgPathParser.cls-meta.xml) is API version 34.0. WorkOrder may not have existed then. I manually updated it and pushed the source into an org and it does work. I notice there's also a PR here to update the API versions, but it hasn't been merged in yet.