Activity Forums Salesforce® Discussions One account record have one contact record,so when i'm creating the second record for same account it will show error message "you can't create more than one

  • One account record have one contact record,so when i'm creating the second record for same account it will show error message "you can't create more than one

    Posted by Uday on July 24, 2017 at 5:31 am

    One account record have one contact record,so when i'm creating the second record for same account it will show
    error message "you can't create more than one record for same account record".How to write trigger code.

    Sudhir replied 7 years, 3 months ago 2 Members · 3 Replies
  • 3 Replies
  • Sudhir

    Member
    July 24, 2017 at 8:16 am

    WHY DO YOU WANT TO USE TRIGGER IF YOU CAN ACHIEVE THIS USING A WORKFLOW FIELD UPDATE ON A TEXT FIELD.

    Any specific reason.

  • Uday

    Member
    July 24, 2017 at 9:00 am

    Hi sudhir

    Workflow is used for field update,but here i'm creating  new record.

  • Sudhir

    Member
    July 24, 2017 at 7:23 pm

    So you wanted to have 1-to-1 relationship between Account & Contact.?

    Just think a bit more, it can be achieved using wf field update.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos