Skip to main content

Questions tagged [bestpractice]

Referring to the use of recognized community and platform best practices. May relate to all areas of lifecycle and all development and administration activities.

0 votes
0 answers
57 views

I have a custom metadata table that stores different combinations of field values, including picklist values that contain special characters like quotes (", ') and semicolons (;). Current Setup ...
jkdev's user avatar
  • 1
0 votes
1 answer
196 views

I'm looking for a general approach or best practices for building a Rest Resource class/classes, so it could be easily expandable in the future. Or maybe you have an example of something a bit more ...
Mo_'s user avatar
  • 25
0 votes
0 answers
48 views

we have customers that own one or more assets. Each asset is a large machine that is individually configured. In our B2B commerce shop, customers should be able to order spare parts and consumption ...
Christoph's user avatar
  • 1,032
9 votes
1 answer
2k views

Unlike other Agent frameworks like OpenAI assistants which have a single instruction field per Agent, Agentforce is different. And difficult. It has many place where natural language "prompt"...
Robert Sösemann's user avatar
0 votes
2 answers
116 views

I am doing an update an opportunity from a event, in the trigger I have this List<Opportunity> opportunitiesToUpdate = new List<Opportunity>(); for(Event anEvent : events) { if(String....
Muhammad Bajwa's user avatar
1 vote
0 answers
81 views

I have a class with the following methods: public virtual Map<String, List<SObject>> mapBySpecifiedStringField(List<SObject> homogeneousSObjectList, SObjectField idField) { ...
Brian Kessler's user avatar
1 vote
3 answers
304 views

I'm wondering if there's any benefit to adding an if statement to check if data changed prior to modifying in a before trigger (assuming I'd always want that specific value). The example below is ...
msing's user avatar
  • 53
0 votes
0 answers
39 views

I have the following SOQL: public List<B25__Resource__c> getByIds(Set<Id> resourceIds) { return [ SELECT Id, B25__Parent__c, ...
Brian Kessler's user avatar
1 vote
1 answer
538 views

I'm wondering what is the best practice in a situation where I have a conditional query - do I use an if/else to create my query string and use dynamic query in one place, or use static query and ...
msing's user avatar
  • 53
0 votes
0 answers
200 views

Currently, we have a hierarchy with parent and child campaigns. Right now, all campaign members are housed in child campaigns. I have a campaign that isn't relevant to any existing parent campaigns, ...
svd582's user avatar
  • 3
-1 votes
1 answer
174 views

Can I call a method in another class with the same method name but with different cases. For example a method testMethod() is in classA. And itsl is called as ClassA.TestMethod() in ClassB. Will it ...
BeginnerBuddy's user avatar
0 votes
1 answer
178 views

I have a requirement to integrate with a 3rd party application for Account data (Account creation). The idea is that Salesforce will be the primary source of truth and the other application will be ...
Minz's user avatar
  • 111
1 vote
0 answers
80 views

I have this test: it('handles errors from getDummyApiUsers', async () => { // Arrange const mockError = new Error('Simulated error from getDummyApiUsers'); ...
Brian Kessler's user avatar
2 votes
1 answer
2k views

In Salesforce, I want to consume a web API which I can successfully call from my command line like: curl --location 'https://dummyapi.io/data/v1/user?limit=10' \ --header 'app-id: SomeApiKey' In ...
Brian Kessler's user avatar
0 votes
0 answers
156 views

I'm wondering if anyone has suggestions or best practices for campaign naming conventions when it comes to evergreen campaigns or campaigns that run beyond a single fiscal year. Currently, my company'...
svd582's user avatar
  • 3

15 30 50 per page
1
2 3 4 5
29