Activity Forums Salesforce® Discussions Can we create a master-detail relationship in this case?

  • Can we create a master-detail relationship in this case?

    Posted by Shweta on October 16, 2020 at 2:32 pm

    A custom object contains some records, now my requirement is to create a field in this object with a master-detail relationship. Can we create a master-detail relationship in this case?

    Anuj replied 4 years, 2 months ago 2 Members · 1 Reply
  • 1 Reply
  • Anuj

    Member
    October 19, 2020 at 12:36 pm

    No, directly we cannot create master-detail relationship if custom object contains existing records.Following are the steps to create master-detail relationship when records are available in custom object.
    First create field with lookup relationship.
    And then associate look field with parent record for every record.
    Next change the data type of the field from look up to Master detail.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos