# Adding only inserted contact to a different segment

**URL:** <https://forum.mautic.org/t/adding-only-inserted-contact-to-a-different-segment/27440>\
**Category:** Product Support\
**Created:** [March 21, 2023, 12:28pm UTC](https://forum.mautic.org/t/adding-only-inserted-contact-to-a-different-segment/27440 "2023-03-21T12:28:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![shashikant123](https://avatars.discourse-cdn.com/v4/letter/s/a587f6/32.png) [@shashikant123](https://forum.mautic.org/u/shashikant123)\
**Post date:** [March 21, 2023, 12:28pm UTC](https://forum.mautic.org/t/adding-only-inserted-contact-to-a-different-segment/27440/1 "2023-03-21T12:28:23Z")

</div>

Hi

while adding contact most of the contacts are already in the contact  
hence

is there a way that I can add only inserted contacts in to a different segment in a single command

Thanx in advance

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [March 21, 2023, 1:34pm UTC](https://forum.mautic.org/t/adding-only-inserted-contact-to-a-different-segment/27440/2 "2023-03-21T13:34:12Z")

</div>

Plz define 'Intersted"

- number of page views?
- certain page views?
- email opens?
- links clicked?
- number of visits?
- email recieved?

---

<div class="post-metadata">

**Author:** ![shashikant123](https://avatars.discourse-cdn.com/v4/letter/s/a587f6/32.png) [@shashikant123](https://forum.mautic.org/u/shashikant123)\
**Post date:** [March 21, 2023, 3:13pm UTC](https://forum.mautic.org/t/adding-only-inserted-contact-to-a-different-segment/27440/3 "2023-03-21T15:13:45Z")

</div>

i am talking about when we import contacts some records are [Inserted] and some records are [Updated]

some records are already there and so duplicate records are updated

so I want only those records which are inserted to put in a different segment and not updated records

---

<div class="post-metadata">

**Author:** ![asad786](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/asad786/32/8990_2.png) [@asad786](https://forum.mautic.org/u/asad786)\
**Post date:** [March 23, 2023, 7:20am UTC](https://forum.mautic.org/t/adding-only-inserted-contact-to-a-different-segment/27440/4 "2023-03-23T07:20:14Z")

</div>

You can make the email field a unique identifier, then contact will not duplicate and you can create segments with some filters and then when you run command to update segments, then contact will automatically come in segments.

---

<div class="post-metadata">

**Author:** ![shashikant123](https://avatars.discourse-cdn.com/v4/letter/s/a587f6/32.png) [@shashikant123](https://forum.mautic.org/u/shashikant123)\
**Post date:** [March 30, 2023, 8:20am UTC](https://forum.mautic.org/t/adding-only-inserted-contact-to-a-different-segment/27440/5 "2023-03-30T08:20:27Z")

</div>

big thanx brother…

sorry i read it late…

i will surely try this
