LightningFlowComponents
LightningFlowComponents copied to clipboard
Add a mechanism for selecting sharing model
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.
Which class or component are you referring to?
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.