4 votes

Integration between Salesforce and other systems using existing SAML

If you want to use SAML connection to call Salesforce web services from the SAML assertion take a peek into the SAML Assertion Flow for Accessing the Web Services API The SAML Assertion flows allow ...
user avatar
3 votes

Best Practice and Security Question: Send Salesforce record Id to external Systems

There is nothing insecure about sending the Salesforce Id out to another system to use as an identifier there. You can generate your own External Id that both systems will use if you prefer, but ...
user avatar
  • 143k
3 votes
Accepted

Using NPM in server side - Salesforce

You should be able to use Salesforce Functions to do this, but the program is still in Beta, meaning you have to sign up for it, and it likely won't be available in Production orgs for a while. Until ...
user avatar
  • 434k
3 votes
Accepted

JSON/APEX deserialization question

The "null" should be null, without quotes. The former is a string, the latter is the lack of a value, which is what you want, since the structure implies that you have the following ...
user avatar
  • 434k
3 votes

How one can get record change updates from Salesforce through the API?

CDC requires some setup, but you can do this with the Tooling API or Metadata API fairly trivially. However, CDC is more of a replication feature (e.g. you'll get all updates, not just those you're ...
user avatar
  • 434k
3 votes

Is there a way to parse Json in Flow

I'm late to answering this, but for anyone looking for a simple Apex flow action, here is a (limited) solution: Apex Class: global class ReadJson { @InvocableMethod(label = 'Read JSON') global ...
user avatar
3 votes
Accepted

Salesforce to an external Service callout using JWT

The use of JWTs that I'm familiar with don't encrypt the claims (they just provide the claims along with a relatively simple way to verify that the claims haven't been tampered with. I suppose that ...
user avatar
  • 48.5k
3 votes

Space Callouts in queueable apex in time

Salesforce doesn't provide us any real tools when it comes to waiting/rate limiting inside of an Apex class, and the delay between chained queueable calls is not configurable (and worse, it's non-...
user avatar
  • 48.5k
3 votes

Utilize the same user for both MC Connect integration and admin/dev activities

This is not the full answer - generally, there are things that I would be cautious of, like risking too many open sessions which could invalidate the one for the connector, but I have never been able ...
user avatar
2 votes
Accepted

"Disconnect Account" button not working in Google Chrome

Salesforce functionality impacted in Chrome 92 after recent change to cross-origin iframe JavaScript dialogs. As of Chrome version 92, customers may experience issues when working across the ...
user avatar
2 votes
Accepted

How to store information on Product stocks with variable number of warehouses

I think you've outlined all the possible solutions to storing data in Salesforce. Because of your requirements which include using standard reporting and automation, you can't consider all the ...
user avatar
2 votes

What is the OpenSSL version supported by Salesforce?

Salesforce does not publish information about which version of OpenSSL they use (or if they use an alternative). Even if they did, we have no way of choosing which version Salesforce uses. Salesforce ...
user avatar
  • 48.5k
2 votes

Error Making SOAP Calls "System.CalloutException: IO Exception: PKIX path validation failed: java.security.cert.CertPathValidatorException"

I have not faced this issue recently, but because you mentioned the change on root CA (root Certification Authority), I suggest you check the Salesforce article that explains about certificates. ...
user avatar
2 votes

Connecting 2 Sales Cloud Salesforce Organizations

Integration is a broad topic, and this site works best with single, narrowly-scoped issues. That said... If your orgs are relatively similar to one another in terms of customizations, then Salesforce ...
user avatar
  • 48.5k
2 votes
Accepted

Setting up a named credential for Salesforce REST Web Service

For a Salesforce to Salesforce connection, use Per user or Named principal with OAuth 2.0 or JWT. The Identity Type "Per user" allows each user in your org to authenticate with a user in the ...
user avatar
  • 434k
2 votes

How to get the number of objects I received in JSON response?

You can just discover the size by parsing: List<Object> parsedData = (List<Object>)JSON.deserializeUntyped(jsonBody); System.debug(parsedData.size()); // Should output 2
user avatar
  • 434k
2 votes
Accepted

Asynchronously call-in to a Managed Package

I would engineer this to leverage a Connected App, using a server-to-server authentication flow. Salesforce supports OAuth 2 JWT flow for this purpose. The Connected App should not be packaged (I know ...
user avatar
  • 27.6k
2 votes

Schedule Batch Apex to run batch one after another in hours gap

You can call one batch after another within the finish() method; you can also use the System.scheduleBatch() method if you want to wait an hour (or any arbitrary number of minutes) after the last ...
user avatar
  • 434k
2 votes

Why Places field on account object is not getting updated in the UI after making callout from trigger using future method?

Because you're not performing DML in your @future method. @future methods (and all ways of executing code asynchronously) are run in an entirely separate transaction from the transaction that your ...
user avatar
  • 48.5k
2 votes

Delete Mass records

You can able to delete the custom object records by using Truncating feature without using apex code. If you do not see Truncate button in the custom object, go to Setup | Customize | User Interface |...
user avatar
1 vote

Do violate salesforce contract if integration user create cases via API instead of a customer from a custom portal?

Yes - you can use an integration user to create cases via the Rest Api. I don't see how you would be violating any usage restriction. You just have to be mindful of the amount of Api calls your ...
user avatar
  • 19.3k
1 vote

unable to upsert Account with different owner in same transaction

Since ownership changes can cause expensive recalculations, this restriction keeps that calculation down to a reasonable time frame. You will need to break up your updates such that the constraint is ...
user avatar
  • 434k
1 vote
Accepted

Why is getAddressDetails() sending the return last?

Yes, what you're seeing is the expected results. When you call asynchronous code, the code runs at some point later, after the main execution. We can demonstrate this with something like: function a() ...
user avatar
  • 434k
1 vote

How remove multiple spaces from old contacts?

For existing Contacts with repeated spaces, you have no choice but to go through the existing data. If you have fewer than 50 million Contacts You can write a batch job that queries the Contacts in ...
user avatar
  • 62.5k
1 vote
Accepted

Append SubKey to DE via Email Lookup

As EazyE states, Journey Builder API Entry Source is where you already need the subscriberkey. The only thing you can do is to set up an API layer and check if that is an option for the vendor. If yes,...
user avatar
1 vote
Accepted

Multi Business unit creates a duplicate lead in salesforce

This is working as intended. The reason is that BU2 cannot see the Lead that was created by BU1, as Marketing Data Sharing (MDS) is preventing BU2 from seeing the Lead from BU1. For a Cross Business ...
user avatar
1 vote

Syncing Files between orgs (e.g. via Salesforce Connect's Cross-Org Adapter?)

I'd suggest using MuleSoft or Heroku, if you are willing to customize heavily. Sometimes, out of the box solutions, that Salesforce provides end up having a lot of limitations creating more roadblocks....
user avatar
  • 11
1 vote
Accepted

error in node JS and SF integration via jsforce using JWT

I am doing something similar but I am doing this instead of using the initialize method: const loginRes = await sfApi.loginToSf(); //JWT Login conn = new jsforce.Connection({ version:'50....
user avatar
1 vote

How can I consume a SQL database to create / update records in salesforce using apex?

There are a number of approaches available. One is to expose the SQL data as an External Object where the data can then be queried using Apex's SOQL calls. Too big a subject to document in an answer ...
user avatar
  • 130k
1 vote

Error Making SOAP Calls "System.CalloutException: IO Exception: PKIX path validation failed: java.security.cert.CertPathValidatorException"

The certificate chain this external endpoint is using is broken (which they would need to fix, it's not something we can take care of on the Salesforce side), or they're using a root CA that doesn't ...
user avatar
  • 48.5k

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