Skip to main content

#Salesforce Developer486 personnes en discutent

Hi Everyone,

I have an Experience Cloud site where the users are using the Customer Community Plus license.

I have a requirement to create a new Customer Community Plus user from an LWC/Apex component. As part of the user creation process, I need to select the appropriate Customer Community Plus Profile.

To populate the Profile selection, I need to fetch the available Profiles from the org using Apex.

I tried the following SOQL:

List<Profile> profiles = [

SELECT Id, Name

FROM Profile

];

However, when this code executes in the context of a Customer Community Plus user, I receive the following error:

sObject type 'Profile' is not supported

I also understand that Experience Cloud users have restrictions on accessing certain standard objects.

My questions are:

  1. Is there any way to grant a Customer Community Plus user access to the Profile sObject through a Profile, Permission Set, or any other Salesforce configuration?
  2. If direct access to the Profile object is not supported for Customer Community Plus users, what is the recommended Salesforce approach for retrieving the appropriate Customer Community Plus Profile when creating another user?
  3. Is there any supported Apex/API approach to retrieve the available Customer Community Plus Profiles without directly querying the Profile object?

My requirement is specifically:

Existing Customer Community Plus user → LWC/Apex → Create a new Customer Community Plus user → Select the appropriate Customer Community Plus Profile

Any guidance or recommended approach would be greatly appreciated.

Thanks! 

 

#Salesforce Developer  #LWC  #Profiles  #Experience Cloud

0/9000

I'm working on a Salesforce Experience Cloud site and struggling with image quality and file formats. When I upload PNG or JPG logos they look pixelated on certain screen sizes and the file sizes are slowing down page load times.  

 

I've been using AI Vectorizer Tools

to convert my PNG logos to SVG before uploading and it's made a noticeable difference in sharpness — but I'm still figuring out the best overall workflow for image assets in Salesforce.  

 

Has anyone found a reliable process for this? Specifically looking for advice on: 

  • Best file format for logos on Experience Cloud (SVG vs PNG vs JPG)
  • How to optimise image size without losing quality
  • Any other tools the community recommends alongside conversion tools

 

Would love to hear what others are doing. Thanks in advance. 

  

 

#Salesforce Developer

0/9000

With Winter '27 developer console has been replaced by Web Console. That's all fine & dandy.  

 

My problem is that my practice has been to schedule batch processes to run as another user -- essentially a service user that doesn't change with staffing changes.  I would log in as that user, open developer console and run a "{class_name}.scheduleMe();"  method that would add the job to the apex job schedule. 

 

It appears that when logged in as another user and launching the new Web Console I can no longer use Execute Anonymous. (I *can* create a script and run execute anonymous if I have NOT logged in as someone else.)  The user I'm logging in as has the same authority as myself. 

 

 

#Salesforce Developer

5 réponses
0/9000

Hi Trailblazers, 

 

In an Apex implementation, I need to group and process records dynamically and I’m evaluating nested collection approaches such as:

List<List<String>> groupedData;

and

Map<String, List<String>> groupedData;

For record grouping, Map<Key, List<T>> seems more practical, but I’d like to understand:

  • When would List<List<T>> be a better choice in a real-time project?
  • Are there any performance or governor-limit considerations?
  • What approach do you generally prefer when grouping SOQL results?

Would appreciate any real-world examples or best practices.

Thanks !!.  

 

#Apex  #Salesforce Developer  #Trailhead  #TrailblazerCommunity

2 réponses
  1. 20 août, 12:51

    Hi Deepak - for grouping, Map<Key, List<T>> is almost always the right call. List<List<T>> is rarely right for grouping because you lose the key (no O(1) lookup - you would have to scan to find a group). 

     

    When to prefer each: 

    - Map<Key, List<T>>: anytime you group BY something, e.g. Map<Id, List<Contact>> keyed by AccountId. O(1) lookup, keys auto-dedup, and it is the bulkification backbone in triggers. 

    - List<List<T>>: only when there is no meaningful key and the split is positional - fixed-size chunks for a callout that takes N records per request, or partitioning work across async jobs. You just iterate the sublists, never look up by key. 

     

    Governor / performance: 

    - The limit that actually bites is HEAP (6 MB sync / 12 MB async), driven by how many records you hold in memory, not the collection shape. Map's key overhead is negligible. 

    - Map's real win is avoiding nested loops: correlating two lists via a Map is O(n); scanning a List<List<>> to find a group re-introduces O(n-squared). That is the real consideration. 

    - Neither changes SOQL/DML limits - those depend on bulkifying, which you do either way. 

     

    Pattern I use for grouping SOQL results: 

    Map<Id, List<Contact>> byAcct = new Map<Id, List<Contact>>(); 

    for (Contact c : [SELECT Id, AccountId FROM Contact]) { 

      if (!byAcct.containsKey(c.AccountId)) byAcct.put(c.AccountId, new List<Contact>()); 

      byAcct.get(c.AccountId).add(c); 

     

    Two more: for a true parent-child group, a subquery like [SELECT Id, (SELECT Id FROM Contacts) FROM Account] groups it at the query level - often cleaner. And for two dimensions, Map<Key1, Map<Key2, List<T>>> stays keyed and O(1). 

     

    Net: default to Map<Key, List<T>> for grouping; reach for List<List<T>> only for keyless chunking. 

     

    If this helps, please mark it as the Best Answer so it helps the next person - thanks :)

0/9000

Hi All, 

 

Has anyone done integrating Marketo with Salesforce using the API Only Integration user profile?  

We have a lot of our integrations using this special integration user profile/license and we make a permission set which requires all the objects/fields/system permissions and assign to this integration user.  I am wondering if anyone has tried this integration user for Marketo.  

 

Appreciate your thoughts, 

Thanks! 

 

#Salesforce Developer  #Salesforce Admin  #Integration  #TrailblazerCommunity  #Trailhead  #Salesforce

2 réponses
  1. Aujourd’hui, à 04:59

    Hi @Himanshu Shekhar

    ,  

     

    Thanks for your response.  

      

    As per the Marketo documentation, whatever objects/fields/system permissions required, we can achieve by creating a permission set and assign that to the integration user.  So, access issue won't be a problem I suppose. I am wondering if anyone knows why Marketo insists the integration user needs to have a FULL Salesforce license? Is there any specific reason behind it? 

0/9000

After the org was upgraded to Winter ’27, the AIAgentAPIV1

action started throwing errors in the flow. If I reselect the action, it no longer allows me to configure any parameters. 

 

AIAgentAPIV1 No Longer Works in Salesforce Flow in Winter '27

 

 

image.png

 

 

 

 

#Agentforce  #Salesforce Developer  #Salesforce Admin  #Flow  #Invocable Actions

2 réponses
  1. Aujourd’hui, à 01:20

    Thanks @Abhishek R

     

    The documentation is correct, but the action configuration screen in Flow looks strange. There’s nowhere to set these required parameters.

0/9000
Using the Barcode Scanner API in Salesforce, is there a way to enable Torch for scanning during night time?

There doesn't seem to be an option for it in BarcodeScannerOptions.

I tried using an iframe to start video recording and enable the torch, but when starting the Barcode Scanner API, it seems to turn it off again automatically, before scanning.

A code sample of the API

 

const scanningOptions = {

barcodeTypes: [ scanner.barcodeTypes.EAN_13 ],

instructionText: 'Scan barcode',

successText: 'Scanning complete.'

};

const result = await scanner.beginCapture( scanningOptions );

4 réponses
  1. 30 mars 2025, 17:56

    Currently, the Barcode Scanner API in LWC (Lightning Web Components) does not provide a built-in option to enable the torch (flashlight) during scanning. While this feature would be useful for scanning in low-light conditions, the API automatically manages the camera settings, and any external torch activation is typically overridden when the scanner starts.

    Some developers have attempted workarounds by using the device's camera through WebRTC to enable the torch before launching the scanner. However, this approach is not always reliable because the scanner API may reset the camera settings when activated. As of now, Salesforce has not officially provided a way to keep the torch on while scanning.

    If torch functionality is essential for your use case, you may consider submitting a feature request to Salesforce Support for future updates. Just like how customers look for flexibility in dairy queen menu prices canada, users of the Barcode Scanner API are also looking for more control over scanning conditions.

0/9000

⛰️🛡️ New Hands-on Workshop for Premier & Signature Developers: Secure the Code: Find and Fix Vulnerabilities (DEX003) 

 

Insecure custom code is one of the leading causes of data breaches. In this 90-minute instructor-led workshop, you'll step into the role of a security-focused developer to audit and remediate critical vulnerabilities in Lightning components and Apex classes through a series of challenges.  

This hands-on workshop teaches developers how to prevent script injection, encrypt data securely, manage secrets, and control record access. You'll also learn to identify authentication flaws and data exposure risks. this practical workshop is for developers working with custom code at any stage: 

  • Build new code — learn to bake in secure patterns from the start, so vulnerabilities never make it to production
  • Review existing code — sharpen your eye for spotting injection flaws, insecure data handling, and access control gaps in code you didn't write
  • Maintain and harden production orgs — Use the Developer Console or VS Code to apply Salesforce platform security best practices that protect applications from evolving threats

Sessions are live and available! :calendar:

  • Wed Sep 2 — 3:30pm CET/Paris
  • Tues Sep 8 — 3:30pm ET/New York
  • Mon Sep 21 — 9am IST/Kolkata
  • Mon Oct 19 — 9am ET/New York
  • Check the session listings for additional workshops across regions :tada:

Interested in the Admin version of this security workshop? Check out upcoming sessions for ADX012

 

👉 Premier and Signature customersRegister today on Trailhead Academy — Course code: DEX003

 

#Salesforce Developer #Slack Developers

3 commentaires
  1. 28 août, 12:27

    Hi, unforutntely this session is for premier and signature customers only. Sorry

0/9000

Missing Developer Console from Salesforce Org? 

Don't worry! Winter ‘27 shipped a brand new feature Web Console and made that the default IDE entry point. It’s not a replacement that removes anything it’s Salesforce’s newer. 

 

Nothing’s lost though. Enable Dev Console back is one toggle: 

1 Setup → search “Web Console”  

2) Open Web Console Settings ⚙️ 

3) Flip “Enable Developer Console” to Active 🟢 

4) Refresh 🔄 — both consoles now sit side by side 

 

#Trailhead Challenges

 

 

#Salesforce Developer

0/9000