Skip to main content
added 129 characters in body
Source Link
sfdcfox
  • 501.7k
  • 21
  • 473
  • 828

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 getRelationshipOrder is only populated for master-detail relationships, and null otherwise.

Edit2: Some standard "master-detail" relationships also return null, so you may need a "white-list" of known false negatives.

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 getRelationshipOrder is only populated for master-detail relationships, and null otherwise.

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 getRelationshipOrder is only populated for master-detail relationships, and null otherwise.

Edit2: Some standard "master-detail" relationships also return null, so you may need a "white-list" of known false negatives.

added 179 characters in body
Source Link
sfdcfox
  • 501.7k
  • 21
  • 473
  • 828

getRelationshipOrder will be 0null 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 getRelationshipOrder is only populated for master-detail relationships, and null otherwise.

getRelationshipOrder will be 0 for a lookup relationship, but will be 1 for a master-detail relationship.

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 getRelationshipOrder is only populated for master-detail relationships, and null otherwise.

Source Link
sfdcfox
  • 501.7k
  • 21
  • 473
  • 828

getRelationshipOrder will be 0 for a lookup relationship, but will be 1 for a master-detail relationship.