Skip to main content

#Developer Forums토론 중인 항목 1개

LIMIT_EXCEEDED, limit exceeded: []

 

Wanted to post this to save someone the potential of many hours of research.  A few months ago we started to receive an error of LIMIT_EXCEEDED, limit exceeded: [] in our logs.  This was happening when an automated process was attempting to upgrade a profile on users.

 

All of our accounts are owned by a single user.  Let's say 'Integration User.'

 

The process that was receiving the LIMIT_EXCEEDED, limit exceeded: [] error when assigning a role based profile to users.

 

There is a Salesforce limit that dictates one account owner cannot be associated to more than 50K role based users.  The number of users associated to the owner user of 'Integration User' was well over the 50K limit.

 

This limit is a bit obscure so it took a while to figure this out. https://help.salesforce.com/s/articleView?id=sf.networks_person_accounts_limitation.htm&type=5

 

The solution was to upgrade the 'Integration User' to a power user.

 

To upgrade the owner user open Workbench. 

 

The URL would be this:

 

/services/data/v58.0/sobjects/PersonAccountOwnerPowerUser

 

The payload would include the Owner Id that you need to upgrade. 

 

{

"UserId": "005t0000003dFctAAE",

"PortalType":"CustomerPortal",

"DeveloperName" :" Power_User",

"MasterLabel": " Power_User"

}

 

#Developer Forums

댓글 6개
0/9000
sanket mahajan 님이 #Tableau Cloud에 질문했습니다

We are currently using the Tableau Cloud Metadata API (GraphQL) to retrieve workbook, dashboard, and sheet-level metadata.

We are facing the following issues and would like clarification 

 

1. Metadata update delay

 

Changes in Tableau Cloud (e.g., new workbook/dashboard) are not immediately reflected in Metadata API (GraphQL) responses.

  • Is this expected behavior?
  • Are there known delays/limitations?
  • If yes, please share official documentation/reference.

2. Dashboard → sheets mapping

 

We need to fetch sheets (ID, name) within a dashboard.

  • Is Metadata API the recommended approach?
  • If not, what is the reliable alternative?

3. Expected latency

  •  What is the typical time taken for the Metadata API to reflect recent changes made in Tableau Cloud? 
  • Can this delay be reduced or controlled?

#Tableau Cloud  #Trailhead Developer Org  #Developer Forums

답변 2개
  1. 4월 25일 오전 10:03

    Hi,

    Thanks for your response.

    In our case, we are observing higher delays in metadata updates on our Tableau Cloud site: 

     

    https://prod-useast-a.online.tableau.com

    •  Metadata updates are taking 24–48 hours
    •  In some cases, new workbooks are not reflected even after 5 days
    •  In some rare cases, certain workbooks are not returned at all in the Metadata API response

    Could you please suggest if the next step is to raise a case with Tableau Support, or is there anything we should verify from our side first?

0/9000

Hello people, 

 

In have created a website which allows you to paste in code and generate a flowchart to understand the meaning behind the code. It allows you to make edits, add or hide elements, and download the flowchart as either SVG or PNG image for free. Please try it out and give your opinions 

 

Visit -

https://sanity-suite.vercel.app/

Hello people, In have created a website which allows you to paste in code and generate a flowchart to understand the meaning behind the code.

 

Screenshot 2026-03-07 at 8.50.25 PM.png

 

Screenshot 2026-03-07 at 8.51.03 PM.png

 

Screenshot 2026-03-07 at 8.52.00 PM.png

 

Screenshot 2026-03-07 at 8.52.11 PM.png

 

#Developer Forums  #Salesforce Developer

댓글 2개
  1. 4월 15일 오후 7:44

    Please no one paste your company's code into this. Use for fun / personal only.

0/9000

Last week I volunteered to help out a friend’s company by doing some pro bono admin work. The issue is Authenticator. I was in their system a few years ago. We changed my personal email in the system and set me up as an admin but when I try to change my password I don’t see the company listed in Authenticator. So I can’t change my password and can’t find where to input  the 2 word phrase spit out by Authenticator. Granted I haven’t work in the platform in 2 years but I haven’t experienced this problem before. 

 

#Developer Forums

0/9000

In the LWC I'm building, I can't get the column headers to center. Below is the CSS file I have in my LWC component folder. 

.slds-th__action {

justify-content: center;

}

and the markup

<template>

<lightning-card>

<template if:true={accountList}>

<lightning-datatable

class="slds-table_col-bordered"

key-field="id"

data={accountList}

columns={columns}

hide-checkbox-column>

</lightning-datatable>

</template>

</lightning-card>

</template>

I know that this  should work because when I go into the chrome dev tools and put that style attribute in, the column headers align. But it is ignoring my CSS class for some reason. I've also tried adding !important at the end and have tried adding .THIS to the CSS class but neither make any difference.

답변 2개
  1. 2025년 12월 23일 오후 6:18

    Ran into the same problem and the only way I could do it was to import a static resource in the LWC: 

     

    Create a file with the ".css" extension with the following css and upload it as a static resource: 

    .custom-data-table .slds-th__action {

        justify-content: center;

    The ".custom-data-table" is not necessary but targets only the table you want. 

    If you don't add this, it will align the header of every table, even the standard ones.  

    I wrapped the data table in a div with the "custom-data-table" class in my case. 

    Ran into the same problem and the only way I could do it was to import a static resource in the LWC: Create a file with the

     

    Then import it into your JS: 

    Js: 

    import { loadStyle } from 'lightning/platformResourceLoader'; 

    import datatableHeaderCenter from '@salesforce/resourceUrl/datatableHeaderCenter'; 

     

    export default class CustomDataTable extends LightningElement { 

     

        connectedCallback() {

            loadStyle(this, datatableHeaderCenter)

                .then(() => {

                    console.log('CSS loaded successfully');

                })

                .catch(error => {

                    console.error('Error loading CSS', error);

                });

        } 

     

    HTML: 

        <div class="custom-data-table">

                <lightning-datatable

                    key-field="id"

                    data={data}

                    columns={columns}

                    onsave={handleSave}

                    oncancel={handleCancel}

                    draft-values={draftValues}

                    hide-checkbox-column="true"

                    >

                </lightning-datatable>

        </div>

0/9000

I'm receiving an error while trying to view a experience community page as a logged in Portal User that embeds an Omnistudio Flex Card that is built on the Omnistudio Standard Runtime Designer "Failed to process response from Apex class Exception: INVALID_TYPE: sObject type 'ApexClass' is not supported.:

".   

 

The data source of the Flex card is Apex Remote. This works fine when previewed by admin using test params but fails with authorized Portal Users. The same happens when a remote action is called from an Omnistudio Omniscript form for authorized portal users.  

 

On checking the logs in the developer tools from the browser, I saw the params are passed to the data source input, but the apex call is failed, so the flex card loads with blank data.  

 

The Portal User is a Customer Community Login Plus licensed, and has all the Omni related object permissions (Read), sharing settings (Public Read Only), Apex Class permissions, Field Permissions for Omni related Objects and Omnistudio Experience Cloud User Permission Set assigned. 

 

If any of you faced and resolved this issue before, kindly help. 

Failed to process response from Apex class Exception: INVALID_TYPE: sObject type 'ApexClass' is not supported.:

 

#Salesforce Developer #Salesforce Developers #Developer Forums #Omnistudio 

답변 2개
  1. 2025년 10월 23일 오전 5:54

    ContentDocument document = [SELECT Title FROM ContentDocument WHERE Id IN (SELECT ContentDocumentId FROM ContentVersion WHERE Id = :cvId)]; 

     

            String fileName = document.Title; 

     

            System.debug('file Name '+ fileName); 

     

    // Prepare the metadata for the file, including the name and parent folder ID 

     

    String metadata = JSON.serialize(new Map<String, Object>{ 

     

        'name' => fileName, 

     

        'parents' => new List<String>{folderId} 

     

    }); 

     

    String boundary = '-------314159265358979323846'; 

     

    String delimiter = '\r\n--' + boundary + '\r\n'; 

     

    String close_delim = '\r\n--' + boundary + '--'; 

     

    String contentType = 'application/pdf'; // Adjust this based on your file type 

     

    // Combine the metadata and file content into a single request body 

     

    String requestBody = delimiter + 

     

        'Content-Type: application/json\r\n\r\n' + 

     

        metadata + '\r\n' + 

     

        delimiter + 

     

        'Content-Type: ' + contentType + '\r\n' +  

     

        'Content-Transfer-Encoding: base64\r\n\r\n' + 

     

        EncodingUtil.base64Encode(cv.VersionData) + 

     

        close_delim; 

     

    // Prepare the HttpRequest 

     

    HttpRequest req = new HttpRequest(); 

     

    req.setHeader('Authorization', 'Bearer ' + accessToken); 

     

    req.setHeader('Content-Type', 'multipart/related; boundary="' + boundary + '"'); 

     

    req.setMethod('POST'); 

     

    req.setEndpoint('

    https://www.googleapis.com/upload/drive/v3/files?uploadType=multipart

    '); 

     

    req.setHeader('Content-Length', String.valueOf(requestBody.length())); 

     

    req.setBody(requestBody); 

     

    // Send the request 

     

    Http http = new Http(); 

     

    HttpResponse response = http.send(req); 

     

    System.debug(response.getBody()

0/9000

No Salesforce CRM Content User Licenses Available

 

There are no Salesforce CRM Content User Licenses available. If you wish to add Salesforce CRM Content User Licenses, please

submit a case. A salesforce.com

representative will contact you. 

 

Click here to return to the previous page. 

please provide me the solution as soon as possible 

 

#Developer Forums  #Trailhead Developer Org

댓글 1개
  1. 2025년 9월 17일 오전 5:28

    This message means all of your Salesforce CRM Content User licenses are already in use. To fix it, you have two options:

    1. Reassign an existing license – Go to Setup → Users and remove the Content User license from someone who doesn’t need it, then assign it to the new user.
    2. Purchase additional licenses – Open a Salesforce support case or contact your Salesforce account executive to add more CRM Content User licenses.

    There’s no way to bypass this—Salesforce requires an available license for each active Content User.

0/9000
sanskruti gudadhe 님이 #Salesforce Developer에 질문했습니다

Hi,

 

Can you help me in creating a flow. I want to create a flow which counts the total number of activities in the contact. 

 

I have created last activity date flow. Is it possible if I can create total activity flow in that only?

 

Thanks

 

#Salesforce Developer  #Salesforce Developers  #Salesfoce Developer  #Developer Forums

답변 3개
  1. 2025년 7월 19일 오전 6:23

     Yes, you can add a total activity counter to your existing flow. Just update it to increment a custom field each time a new activity is logged. Let me know if you need help setting it up! 

0/9000

Does Salesforce Support Org Chart? I need to create our company's org chart in detail. Please assist.

 

#Developer Forums  #Data Management  #TrailblazerCommunity  #Salesforce Admin

댓글 3개
  1. 2025년 7월 22일 오후 10:35

    Yes, you can. Use Get Records to fetch all related activities, count them, and store in a number variable. You can add this as a subflow or parallel path in your existing flow.

0/9000

This is my code for uploading a file in Google Drive folder-

I have a folder Id. 

Currently, the folder and file is created but the file is being created outside of the folder. The file should be created in the folder.

Also file name is created 'Untitled' despite setting the FileName.

 

ContentDocument document = [SELECT Title FROM ContentDocument WHERE Id IN (SELECT ContentDocumentId FROM ContentVersion WHERE Id = :cvId)];

String fileName = document.Title;

System.debug('file Name '+ fileName);

// Prepare request to Google Drive to upload file to folder

String url = 'https://www.googleapis.com/upload/drive/v2/files?uploadType=media&parents=' + folderId;

String authorizationHeader = 'Bearer ' + accessToken;

HttpRequest req1 = new HttpRequest();

req1.setHeader('Authorization', authorizationHeader);

req1.setHeader('Content-Type', 'application/pdf'); // Adjust content type as needed

req1.setheader('Content-Type','image/'+'PNG');

req1.setMethod('POST');

req1.setEndpoint(url);

req1.setHeader('Content-Disposition', 'attachment; filename="' + fileName + '"');

req1.setBodyAsBlob(cv.VersionData);

req1.setHeader('Content-Length', String.valueOf(cv.VersionData.size()));

// Send request to Google Drive

Http h1 = new Http();

HttpResponse resp1 = h1.send(req1);

 

#Developer Forums  #Apex  #Integration

답변 3개
  1. 2024년 2월 28일 오전 11:13

    @Raffus kn

    • To upload a file with specific metadata (like name and parents), you should use a multipart upload, which combines file metadata and the file data in a single request. This approach allows you to specify the file name and parent folder ID in the metadata part of the request.

    ContentDocument document = [SELECT Title FROM ContentDocument WHERE Id IN (SELECT ContentDocumentId FROM ContentVersion WHERE Id = :cvId)];

    String fileName = document.Title;

    System.debug('file Name '+ fileName);

    // Prepare the metadata for the file, including the name and parent folder ID

    String metadata = JSON.serialize(new Map<String, Object>{

    'name' => fileName,

    'parents' => new List<String>{folderId}

    });

    String boundary = '-------314159265358979323846';

    String delimiter = '\r\n--' + boundary + '\r\n';

    String close_delim = '\r\n--' + boundary + '--';

    String contentType = 'application/pdf'; // Adjust this based on your file type

    // Combine the metadata and file content into a single request body

    String requestBody = delimiter +

    'Content-Type: application/json\r\n\r\n' +

    metadata + '\r\n' +

    delimiter +

    'Content-Type: ' + contentType + '\r\n' +

    'Content-Transfer-Encoding: base64\r\n\r\n' +

    EncodingUtil.base64Encode(cv.VersionData) +

    close_delim;

    // Prepare the HttpRequest

    HttpRequest req = new HttpRequest();

    req.setHeader('Authorization', 'Bearer ' + accessToken);

    req.setHeader('Content-Type', 'multipart/related; boundary="' + boundary + '"');

    req.setMethod('POST');

    req.setEndpoint('https://www.googleapis.com/upload/drive/v3/files?uploadType=multipart');

    req.setHeader('Content-Length', String.valueOf(requestBody.length()));

    req.setBody(requestBody);

    // Send the request

    Http http = new Http();

    HttpResponse response = http.send(req);

    System.debug(response.getBody());

    replace application/pdf with the correct MIME type of your file and adjust the metadata as necessary.

0/9000