LightningFlowComponents icon indicating copy to clipboard operation
LightningFlowComponents copied to clipboard

Add a mechanism for selecting sharing model

Open SimonJensen-Sikich opened this issue 1 year ago • 2 comments

Using flows in communities we often run them in system mode, so that we can derive data that the current user does not have sharing access to, but the data is still required for backend business processes. In my current scenario I'm pulling in related information about the internal team to notify (IN a list of account junction objects based on the current user's contact's account essentially) however the community user does not have access to any of that information.

It should be possible to have a Sharing inherited from wrapper class and have the innermost class inherit it from the caller.

As it is I wound up changing the controller class to without sharing and then everything works like the magic it is.

SimonJensen-Sikich avatar Jul 11 '22 18:07 SimonJensen-Sikich

Which class or component are you referring to?

alexed1 avatar Jul 17 '22 03:07 alexed1

Oh I'm sorry, I didn't realize it wasnt tied to the page, I meant the GetRecordsIn apex class, the 'get records in collection' component.

SimonJensen-Sikich avatar Jul 18 '22 13:07 SimonJensen-Sikich