Skip to main content

#NPSP Admins4 utenti parlano di questo argomento

Kathy Moua ha fatto una domanda in #Grants Management

Our internal users are using Notes to add comments to a funding request. We would like to keep these notes internal and prevent portal users from viewing them. 

 

The communityFileList component is managed by Grants Management. Is there a way to configure the component so that Notes are not displayed to portal users? 

 

How to hide Notes from communityFileList componenet

 

 

 

#Grants Management  #Grants Administration & Evaluation  #NPSP Admins  #NPSP

3 risposte
  1. 24 set, 19:04

    As far as I know, the managed communityFileList component in Grants Management does not expose a setting to exclude Notes, so the practical way to handle this is at the data/visibility level rather than in the component. 

     

    Some background that helps here: Lightning (enhanced) Notes are stored as Salesforce Files. Each note is a ContentNote/ContentDocument with FileType = 'SNOTE', and it is linked to the Funding Request through a ContentDocumentLink record, exactly like an uploaded file. That is why a file list component picks them up. Whether an external (portal) user can see a linked file or note is controlled by ContentDocumentLink.Visibility: 'AllUsers' means external users with access to the record can see it, 'InternalUsers' means only internal users can. 

     

    Options, from least to most effort: 

     

    1. Check the component and the note visibility first. In Experience Builder, open the page with the file list and review the component properties (some versions let you filter by file type or related record). Then on a test note, check its ContentDocumentLink Visibility (for example via Developer Console: SELECT Id, ContentDocument.FileType, Visibility FROM ContentDocumentLink WHERE LinkedEntityId = '<FundingRequestId>'). If notes show as AllUsers, that is the root cause. 

     

    2. Automatically make notes internal-only. A small before-insert Apex trigger on ContentDocumentLink can set Visibility = 'InternalUsers' when the linked record is a FundingRequest and the ContentDocument FileType is 'SNOTE'. Existing notes can be fixed with a one-off update of Visibility on their ContentDocumentLink records (Visibility is updatable). Test that the portal still shows the applicant's own uploaded files, which should remain AllUsers. 

     

    3. Use a different place for internal comments. If you want a clean separation, capture internal comments on a record/object that portal users have no access to (for example a custom Internal Review Note object or a long text field hidden from the portal profile via field-level security), or use internal-only Chatter posts. 

     

    4. If the managed component ignores visibility (for example because it runs in system context), replace it on the portal page with a small custom LWC or a Related List component that only shows files where FileType != 'SNOTE'. 

     

    Useful references: 

    File Visibility and Sharing in Experience Cloud Sites:

    https://help.salesforce.com/s/articleView?id=experience.networks_files_visibility_and_sharing.htm&type=5

     

    Work with Files in Your Experience Cloud Site:

    https://help.salesforce.com/s/articleView?id=experience.networks_files_in_communities.htm&type=5

     

    ContentDocumentLink object reference (Visibility field):

    https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_contentdocumentlink.htm

     

    Grants Management documentation:

    https://help.salesforce.com/s/articleView?id=sfdo.Grants_Management.htm&type=5

     

     

    Assumption: I could not find official documentation describing configurable properties of the managed communityFileList component, so I am assuming it respects ContentDocumentLink visibility and the portal user's access. Please validate the approach in a sandbox with a portal test user before rolling it out, and consider raising a case with Salesforce Support if the component shows internal-only notes regardless of visibility.

0/9000

I have an integration user connecting BetterUnite to Salesforce NPSP. The user record has the Salesforce API Integration

Permission Set License assigned, as well as a permission set "Standard Objects for API" that includes all the opportunity (donation) fields. 

When a donation comes over to Salesforce, it's created under the incorrect record type. 

Is there anywhere in the

Minimum Access - API Only Integrations

profile to mark a default record type? 

"Regular" profiles allow us to set a default record type in Object Settings. 

I just checked, and if I sort the record type IDs, the system is using the 1st one in alphabetical order -- which is NOT what I need. 

 

Thanks in advance for any suggestions! 

 

#NPSP Admins  #Salesforce Admin

1 risposta
  1. 31 lug, 19:55

    A little more digging and I found the solution... in a Linked-In article of all places! 

     

    The Challenge

    • Our integration user doesn’t store Record Type IDs (and they vary across environments/orgs).
    • For the Minimum Access - API Only Integrations Profile, Salesforce doesn’t expose all standard objects in the Record Type settings.
    • Without a default Record Type, inserts fail immediately.

    The Solution

    To fix this, you must assign a default Record Type to the integration user’s profile. This ensures Salesforce always has a valid Record Type before automation runs.

    Here are the steps that worked for me:

     

    1. Navigate to Setup → User Management Settings.
    2. Disable Enhanced Profile User Interface (this makes the Record Type settings visible).
    3. Go to Profiles and select Minimum Access - API Only Integrations.
    4. Scroll down to Record Type Settings.
    5. Click Edit next to the Case object.
    6. Move the relevant Record Types from Available → Selected.
    7. Choose a Default Record Type.
    8. Save changes.

    Credit to Heshan Kalhara on Linked-In!

0/9000

We have a Custom name for the Household {!{!FirstName}} {!LastName} Household - {!Account.BillingState} . However, when there is a change in the Address (people do move to different states), the name doesn't update. IS there around this, or should we just be updating it manually?

#NPSP #Householdnames #State #NPSPAdmins

Thanks,

Mia

2 risposte
0/9000