Questions tagged [architecture]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
1answer
32 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, ...
0
votes
0answers
15 views

SFDC Architecture for a Signed Sales Quote to become the “Contract” on an Account

I have the following business scenario that I need to turn into a salesforce process: A manufacturer currently has territory-specific pricebooks. When they meet a new distributor, they send the full ...
0
votes
0answers
24 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 ...
0
votes
0answers
16 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 ...
0
votes
1answer
53 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 ...
0
votes
0answers
28 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 ...
0
votes
0answers
29 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 ...
1
vote
0answers
20 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 ...
0
votes
1answer
37 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 ...
0
votes
1answer
22 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. ...
0
votes
1answer
98 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 ...
0
votes
0answers
28 views

What would I need to build a custom softphone solution?

As the title suggest, I am looking to build a custom softphone solution for Skype for Business using their UCWA API. Going by the documentation, I see that I'd need to register an app in Azure ...
0
votes
0answers
66 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 ...
0
votes
0answers
27 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 ...
0
votes
0answers
14 views

Modeling Post Sales Customer Milestones in Salesforce

I am looking to track the major post sales milestones that exist in the customers lifecycle. I’m doing this, I am realizing that every milestone is going to key stages for accomplishing that ...
6
votes
1answer
599 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
44 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 ...
1
vote
1answer
49 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
301 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
188 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, ...
9
votes
2answers
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 ...
0
votes
1answer
105 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
689 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
305 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
86 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
123 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
82 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
411 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 ...
19
votes
4answers
5k 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 ...
12
votes
1answer
2k 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
227 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
42 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
40 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
91 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  ...
13
votes
5answers
2k 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
1k 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
785 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
56 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 ...
3
votes
1answer
4k 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
140 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
846 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
49 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
703 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
372 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
390 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 ...
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
156 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
642 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 ...