Skip to main content
38 votes
Accepted

Estimate effort of a Salesforce-to-Salesforce project

What does end-user see? Sender: List View > Forward To Connections > 'External Sharing' related list Receiver: yellow nag on record detail How to enable S2S feature? Log into a sandbox first ...
Matt and Neil's user avatar
33 votes
Accepted

How to create mock class for multiple Callouts in single class

Here is perhaps the simplest form of a mock that deals with multiple requests. It is declared as an inner class of the test class so the idea is that it handles all the cases that the outer test ...
Keith C's user avatar
  • 136k
29 votes

How to create mock class for multiple Callouts in single class

This need is covered in Testing Apex Callouts using HttpCalloutMock. Specifically, see the Testing multiple HTTP callouts section. Here's the example they use: public class MultiRequestMock ...
Adrian Larson's user avatar
  • 150k
21 votes
Accepted

Apex Rest Vs Platform Events for Inbound SF integration which one to choose?

UPDATE I have also discussed this topic with some more detail on on my blog here. Based on your requirements where: External System will push data in Salesforce. My recommendation is to ...
Jayant Das's user avatar
  • 30.6k
20 votes
Accepted

Where to Store Token Auth?

Your assessments are pretty close, but you've got some glaring errors I'd like to bring up. Custom Settings / No Encryption? You can encrypt the token using the Crypto class if you need to. Just ...
sfdcfox's user avatar
  • 495k
13 votes
Accepted

Trying to use Salesforce Integration User License, unable to access Accounts, etc. objects

Apparently that permission set license is a necessary but not a sufficient condition. What I did: create a permission set (not a permission set license), which gives access to the Account, Contact, ...
Sander de Jong's user avatar
12 votes
Accepted

Is SOAP API becoming obsolete?

This statement is simply stating that a particular version of the API is only guaranteed to be supported for three years. In other words, salesforce guarantees version compatibility for three years. ...
sfdcfox's user avatar
  • 495k
12 votes

Salesforce Integration User License, unable to assign Permission Set allowing Accounts, Leads, Contacts CRUD

The issue is having the License field blank. If License is blank the user cannot be assigned to the PS. To choose the correct license, if license is selected as Salesforce Integration under User ...
payamf1's user avatar
  • 367
9 votes
Accepted

How to further limit OAuth API scope access

This might not be what you're looking for, but I felt like I should float the idea out there anyways. One good restrictive OAuth Scope is: Provide access to custom applications (visualforce). With ...
martin's user avatar
  • 12.7k
9 votes

Publish and/or subscribe to Platform Events between separate Orgs?

Response from Jay Hurst (Salesforce PM): Subscribing and publishing between orgs is not something that is natively supported today. We have discussed it, but it is not on the short term roadmap. You ...
Daniel Ballinger's user avatar
9 votes

Shared API User

This is a pretty common approach on small instances (and some large ones too). I usually name the user "Integration User"; some orgs call it "System" or something like that. It's ...
David Reed's user avatar
  • 93.2k
8 votes

How many concurrent login allowed for API user?

I think the limiting technical factor will be the Concurrent API Request Limit. For Dev and Sandbox orgs the current limit is 5. For production and Sandbox orgs the limit is 25. Note that this limit ...
Daniel Ballinger's user avatar
8 votes
Accepted

IP Address of my Salesforce Instance

I've used the below in execute anonymous before - just out of interest mind. I've never checked but the ip is liable to change so I'm not sure how much help this will be in the long run. HttpRequest ...
Girbot's user avatar
  • 5,490
8 votes

How to know which API Calling?

You cannot see the apex code coming from a manage package. Check the namespace column when you open class list:
Raul's user avatar
  • 18.8k
8 votes
Accepted

Is it posible to Limit salesforce Outbound IP

Every pod has just a handful of IP addresses assigned to them. For example, if you were on na1, you could expect the IP address to normally be 96.43.146.204 or 96.43.146.80 (as of the time of this ...
sfdcfox's user avatar
  • 495k
8 votes
Accepted

Getting Error : "access_token": "SESSION_ID_REMOVED"

You can't see a direct Session ID in the debug logs for security reasons. See Session_ID_Remove Issue in API callouts in Salesforce. However, it should still be possible to use it for call outs. If ...
Daniel Ballinger's user avatar
8 votes
Accepted

sObject type 'Pricebook2__c' is not supported

It's hard to tell what data you're even working with, but the standard object name is simply Pricebook2 (no underscores). If you are trying to insert a record looking up to this object (such as ...
Adrian Larson's user avatar
  • 150k
8 votes

Estimate effort of a Salesforce-to-Salesforce project

Great answer by @mattandneil! Disclaimer: I have not used S2S before but I spent 10 minutes skimming the docs and came to the conclusion it is not an enterprise grade product and I wouldn’t be ...
codemonkey's user avatar
7 votes
Accepted

How many concurrent login allowed for API user?

There's a limit of 3,600 logins per hour per user, but there's no technical limit to how many sessions you could theoretically be juggling at once. However, tying many clients to a single login makes ...
sfdcfox's user avatar
  • 495k
7 votes

Where to Store Token Auth?

It might be too much work, but you could put all the code that needs to call the external service with the token into a managed package. Then just expose global methods as required from the managed ...
Daniel Ballinger's user avatar
7 votes
Accepted

Datetime to Date to String

If you want to specify a particular format (not just the default for your locale), leave it as Datetime. That type has a format method signature which accepts a String. You can supply any supported ...
Adrian Larson's user avatar
  • 150k
7 votes
Accepted

System.JSONException: For input string

public Integer learningRate; //0 In your JSON, it appears as a Decimal value. Change the code as follows: public Decimal learningRate; //0.0
sfdcfox's user avatar
  • 495k
7 votes

Pricing Details For Einstein APIs?

From the Rate Limits documentation: Einstein Vision provides two tiers of usage: free and paid. Each tier gives you a specific number of prediction calls. These limits apply only to predictions. A ...
Daniel Ballinger's user avatar
7 votes
Accepted

Salesforce Platform Events Pricing

They are free if you have a sufficiently high enough subscription. From the related help topic: Available in: Performance, Unlimited, Enterprise, and Developer Editions
sfdcfox's user avatar
  • 495k
7 votes
Accepted

Global actions not visible on page layout

There were two things related to the problem, try Solution-1 and if you still don't see the actions then Solution-2 should do it (as was the case with me). 1 - Add "New Task/Event/Email" ...
Mahmood's user avatar
  • 5,954
7 votes

Is Salesforce to Salesforce outdated? If so, what is the best way to connect client orgs to hub org?

This classifies as a broad question and is primarily opinion based. I will still try to provide some information in this direction. I haven't really heard of that Salesforce to Salesforce (S2S) is ...
Jayant Das's user avatar
  • 30.6k
7 votes

How to pass @httppost parameters in apex integration?

The only thing you need to do is retrieving body of the post request, this can be done like in the example below: @HttpPost global static void processPost() { Map<String, Object> ...
Mariia Illarionova's user avatar
7 votes
Accepted

Pre-install Script for package

You can only run Salesforce components of any type after installation. If you really want this sort of pre-install check, set a password to prohibit installs, and then set up a public site where the ...
sfdcfox's user avatar
  • 495k
6 votes

API unable to query Custom Object inspite of required permission

Have you recently registered a namespace prefix in the Org your are running the SOQL query against? If so, you will need to add the prefix to all custom object and field names. E.g. SELECT ...
Daniel Ballinger's user avatar
6 votes
Accepted

Exporting the data analytics from salesforce marketing cloud

Yes, very much and there are multiple ways you can extract tracking data out of SFMC - Using Query Activities Query Activity Using Tracking Extracts Tracking Extract Using API SOAP API For SMS ...
Maneesh's user avatar
  • 2,176

Only top scored, non community-wiki answers of a minimum length are eligible