Closed Stephen-J-Russell closed 5 months ago
Hi @Stephen-J-Russell - the best place for support is generally the DLRS Community at https://trailhead.salesforce.com/trailblazer-community/groups/0F9300000009O5pCAE?tab=discussion, but I can try to help you here as well.
For the fields in which you're storing your aggregate result, are you marking them as Read-Only on the page layout or in the User Profiles?
Hi,
Thank you for your response - sorry I was 'in the wrong place'. I am using the Field Level Security for Profile, setting it to Read Only but everyone can edit the field.
Regards,
Stephen
Stephen Russell Salesforce Administrator (Normal Working Days Mon - Wed inc.) Mobile: +44 7950 187 862
[A screenshot of a video game Description automatically generated with low confidence]https://www.d3o.com/partner-support/products/d3o-trx-knee-pads/ D3O is a registered trademark. This E-mail message, including any attachments, is intended only for the person or entity to which it is addressed, and contains confidential information. If you are not the intended recipient, any review, retransmission, disclosure, copying, modification or other use of this E-mail message or attachments is strictly forbidden. If you have received this E-mail message in error, please contact the author and delete the message and any attachments from your computer. You are further advised that the views and opinions expressed in this E-mail message and any attachments are the author's own.
From: Stephen Dickson @.> Sent: 26 April 2022 15:55 To: SFDO-Community/declarative-lookup-rollup-summaries @.> Cc: Stephen Russell @.>; Mention @.> Subject: EXTERNAL: Re: [SFDO-Community/declarative-lookup-rollup-summaries] Read Only (Issue #1185)
Hi @Stephen-J-Russellhttps://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FStephen-J-Russell&data=05%7C01%7Cstephen%40d3o.com%7C676f0def3d5f43cdf9a308da2794cea4%7Cb624d5a8d6e840d08378ccec1470e2de%7C1%7C0%7C637865817946139498%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=jDQh3aby%2BtjHtYgEniEJObefIi2cGVCe%2FzwDjUlLl0g%3D&reserved=0 - the best place for support is generally the DLRS Community at https://trailhead.salesforce.com/trailblazer-community/groups/0F9300000009O5pCAE?tab=discussionhttps://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftrailhead.salesforce.com%2Ftrailblazer-community%2Fgroups%2F0F9300000009O5pCAE%3Ftab%3Ddiscussion&data=05%7C01%7Cstephen%40d3o.com%7C676f0def3d5f43cdf9a308da2794cea4%7Cb624d5a8d6e840d08378ccec1470e2de%7C1%7C0%7C637865817946139498%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=yOKpDfzNo3BBYpcitALhBIiwCU9%2F%2B9xJN9mKw1jq1i8%3D&reserved=0, but I can try to help you here as well.
For the fields in which you're storing your aggregate result, are you marking them as Read-Only on the page layout or in the User Profiles?
- Reply to this email directly, view it on GitHubhttps://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FSFDO-Community%2Fdeclarative-lookup-rollup-summaries%2Fissues%2F1185%23issuecomment-1109900009&data=05%7C01%7Cstephen%40d3o.com%7C676f0def3d5f43cdf9a308da2794cea4%7Cb624d5a8d6e840d08378ccec1470e2de%7C1%7C0%7C637865817946139498%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=jqSOfNVjBlQyGahizhGycPNNKoKSdhRqH7DS1r1oZGk%3D&reserved=0, or unsubscribehttps://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAY4YUKTZB5HOTJEG547VJVTVG77WBANCNFSM5ULSRFZQ&data=05%7C01%7Cstephen%40d3o.com%7C676f0def3d5f43cdf9a308da2794cea4%7Cb624d5a8d6e840d08378ccec1470e2de%7C1%7C0%7C637865817946295725%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=nPLtoFLehLG%2FsqdxlR%2BjC7yDaHQuNT0FRCI4e3X7eow%3D&reserved=0. You are receiving this because you were mentioned.Message ID: @.***>
@Stephen-J-Russell can you provide some details. Are you talking about the field that is the result field on the parent object, or the field that actually lives on the DLRS configuration object?
DLRS is setup to write to the Parent's field no matter the user's permissions. It can be setup to respect sharing settings if desired.
If DLRS refused to update the parent depending on a user's settings then the field would fall out of sync with the actual data.
If you'd like to avoid users being able to cause writes to a parent's field then you'll need to use the Scheduled or Scheduled Full Calculate modes instead of Realtime and the Scheduled Apex should. be run as a user with the proper access.
If there is something else happening and I've totally missed the mark please feel free to clarify for me and we can go from there.
I have my Aggregate Result Fields set to Read Only yet it seems all users are able to edit these fields. Can you help by telling me what I am doing wrong?