A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

Questions tagged [architecture]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3
votes
1answer
46 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-...
3
votes
1answer
38 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 ...
0
votes
0answers
20 views

Solution for storing joint attributes in Contact record

I am looking for some advice here to solution the below requirements. I have contacts who will support multiple groups every time there is some changes in the group members last name. For example: ...
1
vote
1answer
37 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.
3
votes
0answers
45 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
0
votes
1answer
51 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, ...
6
votes
2answers
467 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 ...
0
votes
1answer
19 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 ...
1
vote
1answer
96 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 ...
3
votes
2answers
189 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 ...
4
votes
1answer
57 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 ...
1
vote
1answer
61 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? ...
0
votes
2answers
36 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. ...
0
votes
1answer
155 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 ...
14
votes
4answers
2k 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 ...
9
votes
1answer
1k 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 ...
1
vote
2answers
114 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 ...
0
votes
1answer
34 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 ...
0
votes
1answer
32 views

Exporting ContentVersion to ESB [closed]

We are currently designing an integration for exporting 20-50 Salesforce Files to an external system through our ESB. Our current plan is to send the record information and associated ContentVersion ...
-1
votes
1answer
73 views

Refactor SFDC data model? [closed]

I recently joinged a 400+ SF users  company as architect. I observed previous implementation were not as per best practices and lead to bad data quality and Insights. I have been asked by business to  ...
11
votes
5answers
1k views

Any Platform Event Library or Best Practices out there?

I'm coming to a point where my software does to many things at the same time, so I decided to switch to Platform Events to decouple everything. I don't handle external events, I'm only planning to use ...
3
votes
1answer
944 views

Inner Classes/Interfaces

the guide says that one difference between Java and Apex is: Inner classes and interfaces can only be declared one level deep inside an outer class. Considering I know in Java what is an Inner class,...
-1
votes
2answers
453 views

Separation of Concerns? [closed]

I would learn more about SoC in Salesforce but I have a question. Are these concepts really used during the projects or are only "theoretical and academic concepts" never used in real life for ...
0
votes
1answer
45 views

How to get a runtime list of all fields of a given sObject?

So, using this I can get populated fields and values for a given sObject: How to get the Runtime-Type of an Object dynamically (for Primitive Data Types and SObjects) ...and I have this working in ...
2
votes
1answer
3k views

Salesforce Marketing Cloud Architecture

I have tried searching for an SFMC architecture diagram to understand how to links and interacts withe the normal SFDC platform. All I could find is this: Security, Privacy and Architecture of the ...
0
votes
0answers
106 views

How to work around data skew problem?

We have a custom object that is a detail of Account. Every account may end up with tens of thousands of records of this object type. We have the business need to actually have those records under the ...
3
votes
1answer
768 views

Skinny Tables - Salesforce

I read through some documents, and learned that Salesforce internally maintains metadata tables, pivot tables and large data tables, and salesforce kernel then performs queries on these tables to ...
0
votes
1answer
45 views

How can I be a Technical Architect from fresh? [closed]

I would like to ask if anyone can advise me the path to be a Salesforce Developer. Where should I start? What Certification should I start up? How can I get learning materials and free hands-on ...
7
votes
2answers
597 views

Service methods in Lightning Components

What's the best practice for sharing a service method between lightning components? Let's say I have a function getUrlParam(paramName) that gets the value from a url parameter. I have many lightning ...
1
vote
2answers
202 views

Optimal way to link User to custom Object

We have Department as a custom object and want to store Department for our Users. I have come up against a brick's wall since Salesforce doesn't allow to store lookup on User object. Please upvote ...
6
votes
1answer
2k views

Salesforce and microservices

For apps that harness microservices architecture, say I have custom objects 'libraries', 'categories', 'books', and I wish to keep each custom objects into different physical databases (Database per ...
6
votes
1answer
332 views

event propagation breaks with API v40 - FundExplorer Demo app

Szenario We want to refactor a dynamic created list by using only one click event listener on the surrounding <ul>-tag rather having one on each <li>-tag as recommended by Christophe ...
2
votes
1answer
347 views

Ownership skew in very large data volumes

I have a question with regards to ownership skew in an implementation with several millions of records. Having read all the recommendations and related posts in this forum and in other sites, I am ...
1
vote
1answer
47 views

salesforce field mapping

I have a table (Detail) in SQL and creating a custom object in Salesforce (Detail__c). Below are the fields in SQL Detail Table: Will they be a picklist? But how can I relate Detail_Acc_no, ...
1
vote
0answers
46 views

Are community licenses necessary?

I'm trying to understand the Salesforce's licensing model in widespread integration scenario: the client needs to expose some Salesforce functionalities to final customers eg. case submission, profile ...
1
vote
1answer
121 views

Use Case: Sharing For Record Visibility (no Roles)

Does anyone have any advice on my thoughts that we not use (barely) any Roles, and share records solely using Sharing Rules? Originally we looked at having each Division of the company in a Role, ...
0
votes
1answer
542 views

Salesforce and AWS RDS

I have a question around archival from Salesforce. The data needs to be archived from Salesforce to AWS RDS-Postgres on a regular basis, every 12 hours. I searched online and found a couple of results ...
4
votes
1answer
757 views

Design Question: Any way around the “System.AsyncException: Future method cannot be called from a future or batch method” error in this situation?

Goal: Attempt to Authenticate then execute authenticated API request with minimal code in a componentized/modularized fashion. The Players: Helper_Outbound_API_Request: Standardized Flow which ...
3
votes
1answer
414 views

Can flow commit changes prior to invoking a method?

I'm trying to get some advanced architecture setup for my company, but I'm running into an issue with my design; looking for help. I'm attempting to execute an API call from Flow, but I'm getting the ...
20
votes
2answers
2k views

Dealing with auto-batching of triggers

I've recently been trying to come to terms with the oddities of the auto-"batching" of triggers. What I'm referring to is how when dealing with more than 200 records in a trigger execution, ...
8
votes
2answers
224 views

Useful books to master Salesforce

I'm considering buying some books to improve my Salesforce skills. I found this article on the Salesforce developer platform. The three first books of the list "Books by Community Authors" seem to ...
3
votes
2answers
627 views

Patterns of Enterprise Application Architecture (PEAA) for Apex

When I was first introduced to Salesforce our company was medium size, with many straightforward Trigger based business processes. Since then we have merged into a large company with many strategic ...
3
votes
1answer
6k views

Sandboxes - Full versus Partial Copy - Same Except Storage

I cannot find anything that clearly states this fact, and it's important in my dealings with a consultant's co-worker who is being difficult. Full Sandbox Partial Copy Sandbox The different between ...
1
vote
1answer
262 views

Budget data model best practice [closed]

Our requirment is to be add a budget module in Salesforce on the opportunity, that would have years and items. A best description for that is like this excel table: Our current approach is to have 2 ...
0
votes
1answer
45 views

Understanding the execution [closed]

Whats the execution flow when Salesforce record is inserted and by the way I am not looking for SF documentation but logical explanation of why something is executed in the order mentioned in sf ...
2
votes
2answers
154 views

Split Account fields across multiple Visualforce Tabs…Possible?…Been-There-Done-That?

Our Account Page layout is getting out of hand. The "Long Scroll" is not a great user experience. We've implemented a child object containing 75 fields, but all the object's data has a 1:1 ...
2
votes
0answers
419 views

Using microservices to create a trigger framework [closed]

I recently heard about a trigger framework that's based on the microservices architecture. I have searched around and nothing useful has come up. Does anybody have any resources to share? I can ...
5
votes
1answer
5k views

One Process Builder vs Multiple per single Object

I've read somewhere about an idea of implementing all Process Builders that are executing on a single object within a single Process Builder, instead of using multiple ones (IMO this is a similar ...
0
votes
0answers
26 views

Need help with architecting a solution for product add ons

We are looking to build Add on products for our company. we want to have options of adding on additional products on existing products as we dont want to creating new products for combination of ...
6
votes
4answers
2k views

removeEventListener for DOM event in helper has no effect

I am building a simple Slider component. When a user clicks on the thumb he should be able to start dragging the thumb along the track. So at that point I am registering a mousemove event handler in ...