Announcement

Collapse
No announcement yet.

Get contact id after create new

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Get contact id after create new

    Hi!

    Can you tell me how to get last contact id inserted by method (storeEntity($entity))?

    This is my code but it's ok if only my account is admin:

    --------------------------------------------------------------------------

    // set field value for contact entity $contactEntity

    $contactId = $this->storeEntity($contactEntity);

    --------------------------------------------------------------------------

    Thanks and best regards.

  • #2
    $id = $contactEntity->id

    Comment


    • #3
      Thanks you!

      Comment

      Working...
      X