New answers tagged

4 votes
Accepted

How to distinguish lookup and master-detail in APEX

getRelationshipOrder will be null for a lookup relationship, but will be 0 or 1 for a master-detail relationship. Edit: I second-guessed myself, as I was mobile, but I have confirmed that ...
user avatar
  • 429k
3 votes

Can I chain Bulk API jobs?

If you are writing your own script, you can certainly chain them however you wish to. Here is a simple Node.js script showing how to achieve this, const jsforce = require('jsforce'); const sfbulk = ...
user avatar
0 votes
Accepted

Cross Object SOQL Query

Relationships between the object are as below ObjectB - No Parent ObjectA - Parent ObjectB ObjectC - Parent OjbectA As per salesforce soql limitations. In each specified relationship, only one ...
user avatar
  • 1,048
0 votes

How to Query Child records of the lookup record in a single query

You can only go 1 level deep when querying child records. You can also go 5 levels up when querying fields from lookup relations. But you cannot go up then down, so you need to split those queries up ...
user avatar
  • 2,552
0 votes

why do I see controlled by parent sharing setting for contact?

As per salesforce standard functionality, we have an option for contact as controlled by parent sharing and its working as designed but this option is not available for custom objects when they have ...
user avatar

Top 50 recent answers are included