pegros / PEG_MISC

Small package of standalone LWC components for the App Builder, addressing simple Use Cases in a very easy to configure approach.
MIT License
4 stars 3 forks source link

[bug] sfpegRelatedListKpisCmp - error message on KPI on ActivitiesHistories related list #5

Open eloscarfr opened 1 year ago

eloscarfr commented 1 year ago

Describe the bug When selecting "ActivityHistories" for a Related List, there following error message when component is displayed by a non administrator user. _"There is an implementation restriction on ActivityHistories. When you query this relationship, security evaluation is implemented for users who don't have administrator permissions, and you must specify a LIMIT with a maximum of 500"__

To Reproduce Steps to reproduce the behavior:

  1. Go to 'Lightning App Builder'
  2. Add component "sfpegRelatedListKpisCmp"
  3. Select "ActivityHistories" for a "Related list"
  4. Save
  5. Logon as a non admin user
  6. Display the lightning page (for a record)

Expected behavior The KPI should be displayed without error message.

Screenshots

Capture d’écran 2022-12-14 à 21 49 04

Desktop (please complete the following information):

pegros commented 1 year ago

Good catch @eloscarfr ... I shall have a look at it ASAP.