Skip to main content

Questions tagged [architecture]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
73 views

How do I solve this kind of circular dependencies?

In our project, we are trying to divide the different functionalities into separate unlocked packages. While trying to divide the metadata into different packages we've encountered this case of ...
Jucamola's user avatar
0 votes
0 answers
33 views

How to proper handle governor limits inside a platform event handler?

In a platform event trigger handler that needs to insert a list of SObjects that comes from the event payload. We can do a wrapper try catch to protect of all errors and log in a custom object, we can ...
Elias Pinheiro's user avatar
1 vote
1 answer
147 views

Enterprise Architecture, Domain layer - handling multiple records

I'm developing a project using fflib's Enterprise Architecture patterns, based on their example app (https://github.com/apex-enterprise-patterns/fflib-apex-common-samplecode). I am a bit confused ...
mmm321321's user avatar
  • 659
0 votes
0 answers
223 views

Declarative solutions vs APEX programming - recommended way to choose the right tool

Salesforce recommends to use firstly declarative solutions over the programmic ones. But if there is something it cannot be done declaratively, then there is need to switch/use the programmic way. But ...
Łukasz Franczyk's user avatar
-1 votes
1 answer
78 views

Are Aura Components, Lightning Web Components and Visualforce pages based on MVC architecture paradigm?

This may sound at first sight as a question which has been answered many times, but it has always been related to a specific thing and I've heard people have different opinions on this topic. Also, I ...
DevelBase2's user avatar
0 votes
0 answers
46 views

Does early adoption of adding "Aura local ID's" to element attributes make for more Automation friendly, Lightning components?

My company is migrating to Salesforce and the automation team wants the ability to use Java Selenium baked in. Will the system-wide inclusion of Aura Local IDs (as related to Component ID's Link) ...
Shannon Higgins's user avatar
2 votes
1 answer
623 views

Managing the Domain Layer

Apologies in advance if this question is too opinion based. I am trying to lead us to a more defined separation of concerns in our Salesforce development. Currently, it is not much of a consideration ...
Brooks Johnson's user avatar
1 vote
1 answer
2k views

What is the purpose of Concurrent API limit?

As per the Salesforce Documentation, the Concurrent API limit is a limit for concurrent inbound requests (calls) with a duration of 20 seconds or longer and it differs based on the org type: ...
DevelBase2's user avatar
-1 votes
3 answers
151 views

How to update accounts & contacts from public forms without destroying existing data

We have Form Assembly forms publicly available on the internet which are working well. Within these forms, we collect a lot of data about our clients (350+fields). We want to bring that data into ...
Jay's user avatar
  • 676
0 votes
2 answers
369 views

SalesForce Workbench Architecture

We are performing a security review of the WorkBench tool before allowing external consultants access to our Salesforce organization for viewing the structure and relationships to develop reports. I ...
Mike Rainnie's user avatar
1 vote
2 answers
146 views

Are declarative tools built to scale?

In a context of a company that aim to expand its activities, is it a good idea to build an architecture by including declarative tools such as processes and flows? Are declarative tools used in large ...
Jojosfdc's user avatar
  • 467
0 votes
1 answer
819 views

Sorting ContentVersion based on Related objects like Account, Contact

I want to build a photo gallery where I can sort Images based on accounts, contacts or any other object. But not able to do so due to Data model of ContentVersion/documents. I can't sort ...
Manjot Singh's user avatar
  • 3,526
0 votes
1 answer
377 views

How to model multiple relations between the same objects in salesforce

I'm trying to create ERD diagrams according to the salesforce guidelines. I'm wondering how to tackle objects that have multiple relationships with each other. For example contact and account. Contact ...
ThaNoob's user avatar
  • 159
0 votes
2 answers
452 views

Space Callouts in queueable apex in time

I have a requirement where I need to send a custom object to an external system. The records are usually created in bulk so I have a queueable apex class called from a trigger that loops through the ...
joaquin iñurrategui's user avatar
2 votes
1 answer
711 views

Best Practices - Changing Standard Object names

I'm a SF architect for my company and set standards and conventions for my admin and development team. Our company is a large enterprise that is made up of a number of acquistions, close to 20 in ...
Rockdocta's user avatar
  • 154
1 vote
1 answer
392 views

Owner Data Skew Prevention for smaller orgs

We have a small org with ~50 users in the B2C space. Their business model includes importing large lists of records (~500 per day) and working on them. We can minimize lookup skew by not using lookup ...
JimG's user avatar
  • 743
3 votes
3 answers
2k views

Salesforce file storage off loading to AWS S3 to save file storage space in Salesforce

Background : Our users are uploading large contract files to account and we use Email2Case for case management, customer respond with a lot of documents. This is eating up our file storage limit in ...
Danny's user avatar
  • 167
5 votes
2 answers
2k views

Design Considerations - When to use a custom object vs standard object

I am creating a salesforce unlocked package that I want to get out on the app exchange. The package is for a company that wants to insert and update records with product usage data. They want to send ...
Matthew Metros's user avatar
4 votes
1 answer
1k views

Do additional Permission Sets reduce Salesforce Performance?

I have hundreds of different functionalities setup in Salesforce each with its own Permissions Set for various privleges (FLS, Class access etc), given to various roles across the business. I wish to ...
TheArchitecta's user avatar
3 votes
2 answers
2k views

Why the Service layer is usually implemented with Static methods?

After reading some books about the Service Layer I realized all the methods implemented in this layer are static. What's the reason to do that? https://trailhead.salesforce.com/content/learn/modules/...
lopez.regalado.fj's user avatar
7 votes
2 answers
2k views

FFLib Selectors with SOQL For Loops

I'm considering implementation of FFLib, or at least parts of it, throughout our enterprise. Right now I'm focusing on the Selector and Query classes to consolidate our SOQL into a Selector Layer. I'm ...
Morgan Marchese's user avatar
2 votes
1 answer
357 views

config vs code for matching/duplicate checking

If I'm inserting records, it's really easy to query to see if another record already exists with the same values in a before trigger. Code like this has worked for me: private static Map<String, ...
Tyler Zika's user avatar
  • 2,892
0 votes
0 answers
409 views

Sending 'Back-in-Stock' triggered emails only to first 'x' group of people for each product

We have “Notify me” button on our website to alert users when the stock is back. When the stock is back, the API call happens from external system to Marketing Cloud to send triggered emails (Email ...
user0151's user avatar
0 votes
0 answers
67 views

Scaling shared fields across objects

Sorry if this is too vague/general of a question. The org I'm working in has a relationship between its objects of: Custom Object (lookup) -> Lead Custom Object (lookup) -> Account The data flow ...
Tyler Zika's user avatar
  • 2,892
0 votes
1 answer
430 views

Pattern to integrate million record if BULK option not available

This is in reference to Integration with a System having millions of records. However, due to certain limitation we do not want BULK API needs to be implemented . Although there are other options like ...
stuart Johnson's user avatar
0 votes
0 answers
67 views

Need Architecture options for pulling data from Salesforce, to retrieve datasets

My perspective is traditional RDBMS (Oracle), and retrieving data with a reporting tool like Business Objects or straight SQL Nothing too fancy, just dump to Excel. But JOINing a lotta tables. We're ...
WmPeck1958's user avatar
0 votes
0 answers
44 views

Migrate from Package base development to Org base development style

Please help me if you have any knowledge regarding the 2 development models right now that Salesforce offered : Org base development model and package development model. Right now 2 of our developers ...
An Le's user avatar
  • 13
1 vote
0 answers
44 views

Heroku & Salesforce - Database question for multiple environments [closed]

Along with our production org, we have 3 full sync sandboxes, Mule APIs and Heroku. We are in the process of setting up an app, which is really just going to hold a postgreSQL database that is written ...
SBB's user avatar
  • 173
0 votes
1 answer
64 views

Best practice: Architecture for accounts with many locations 10k+

I'm facing an architectural design where a company could have more than 10k locations, and I would like to save the location data, according to this link it's a good practice to use a hierarchical ...
PeterPa1va's user avatar
0 votes
1 answer
51 views

Architecture quest - what is the efficient way to track an opportunity amount being used and reallocate the unused balance [closed]

To all the sf experts out here, trying yo get your inputs for a use case that i’m trying to incorporate. Use case: We have a currency field called “Amount Owed” on opportunity which holds an $ value. ...
SMorse's user avatar
  • 39
1 vote
1 answer
649 views

Handling a combination of async callouts, schedulable jobs, and queueable jobs

The current requirements for my system is as follows: When a certain change is saved on the Account object, I need to create an Order object and make a callout to Service A. Service A finishes ...
Douglas's user avatar
  • 45
0 votes
0 answers
124 views

LWC Folder Structure: Import AND render components from other lwc directories [duplicate]

Trying to reorganize folder structure as all components are currently under 1 lwc folder. Came across this post LWC Folder Structure It answers the first problem of overcrowding unrelated components ...
T. Young's user avatar
0 votes
0 answers
84 views

Data Model Architecture - More Fields or New Object

I am reassessing an existing data model in use in my org and looking to ensure it's following best practices. The custom object is called a ticket. If the ticket record meets certain criteria, it is ...
S.B.'s user avatar
  • 2,111
7 votes
1 answer
2k views

Does Lookup Skew affect only master-detail relationships or also lookup ones?

I've been encountering and reading a lot about data skew issues, particularly lookup skew, and I've noticed that most information I've found doesn't explicitly indicate whether this affects master-...
jonathanwiesel's user avatar
3 votes
1 answer
66 views

Using Salesforce as Single Source of Truth [closed]

From a software architecture perspective, are there major issues with using Salesforce as an application's single source of truth (as opposed to a traditional relational database like Postgres)? It ...
Stud Sterkel's user avatar
1 vote
1 answer
278 views

Is it possible to check the time taken by a Salesforce Record to load when we we view/open the record?

Can i find the time taken by my record page to load in Salesforce Dev Console.
Vishal Sharma's user avatar
3 votes
1 answer
669 views

Force.com Architecture Whitepaper

Are there any other technical resources besides this whitepaper that describes how things work under the hood at SFDC? The Force.com Multitenant Architecture PDF version
Atlas Can's user avatar
  • 1,877
1 vote
2 answers
2k views

Is having multiple triggers per object still a bad thing, considering a trigger per application?

I started working with Salesforce in 2015, and since then I've been told by mentors and the Salesforce community on the Internet that having multiple triggers for a single object is bad practice, ...
Renato Oliveira's user avatar
10 votes
2 answers
2k views

lwc dataservice architecture best practices

While developing lwc components and lightning apps I always run into this design dilemma: When I have two children components that uses the same set of source data but in different forms what is the ...
bluecat's user avatar
  • 674
0 votes
1 answer
189 views

Updating Person Accounts when new campaign is created [closed]

I am not sure what the best way to do this is but I am trying to update a field to find out when a person account has entered a campaign for the first time. We are using campaigns that are coming over ...
SoleHack's user avatar
  • 115
1 vote
1 answer
4k views

generate unique number for each record

I need to generate a unique 7 digit number for each contact record. This generated number is a "Customer Id" that makes it easy for customers to reference their account. I have two solutions, but I ...
Tyler Zika's user avatar
  • 2,892
4 votes
2 answers
577 views

Enterprise Layers and Naming Conventions

I have been thinking and reading about Apex Enterprise patterns and how I can make my own code more reusable. https://andyinthecloud.com/author/andrewmarkfawcett/ This got me thinking about naming ...
Brooks Johnson's user avatar
4 votes
1 answer
137 views

Testing an approval process - should I create metadata just to test?

I have an Apex test that is testing if a record is in an approval process. To test, I have to submit a record for approval - but there is no guarantee that there will be an approval process set up in ...
scousins's user avatar
1 vote
1 answer
338 views

Duplicate contacts in Multi-Org architecture

In a Multi-Org scenario in Marketing Cloud when 'All contacts' and 'All subscribers' are shared between all the BUs, is it possible that different contacts from different Orgs have the same ContactID? ...
fromero's user avatar
  • 1,041
0 votes
2 answers
2k views

What is the best way to relate product to Account?

Here is the use case. We have a bunch of subscription products that we sell. There is relatively no sales process involved. They come in sign up for the product and they are converted into accounts. ...
Prady's user avatar
  • 12.3k
0 votes
1 answer
910 views

Multi-Org clarification

I am a little confused about the multi-org architecture. Two quick questions that I would like to be clarified: Is the All Contact list shared with all of the Business Units or are separated (even if ...
fromero's user avatar
  • 1,041
20 votes
4 answers
7k views

Lightning Framework vs Standard Client Side Frameworks (i.e. React) // Which to chose when, and why?

Disclaimer Keep it objective! This one can get a little opinionated, please try to keep your answer specific to the facts a developer should be considering when choosing between two viable options ...
Ralph Callaway's user avatar
14 votes
1 answer
5k views

Schedule and Run a Report as an specific User from Apex

Background What we are trying to accomplish is to run daily some specific reports as an specific user. So far From a lightning component we are allowing the user to select a reports list. Once the ...
Martin Borthiry's user avatar
1 vote
2 answers
525 views

How to properly decouple database layer from service layer in Apex?

I came to Salesforce from the world of Java and have been working with Apex and Salesforce for a year now. I am constantly trying to implement Java (and OOP in general) programming practices in my ...
Maxim Sorokin's user avatar
0 votes
1 answer
56 views

Salesforce community pages url authorization

I am novice to salesforce, i have following usecase in my project developed using salesforce with vlocity. 1, restrict community users accessing URLs to community pages based on a flag (flag is ...
Viswa's user avatar
  • 101