Solved

Change primary email address without creating a new contact

  • 25 May 2023
  • 3 replies
  • 165 views

Userlevel 2
Badge +7

I have about 2500 contacts with a primary email address that has changed.
How can I change the primary email address without creating a new contact.
I tried just import a csv where only the primary email was changed and it created a lot of new contacts.
Any suggestion is welcome.

icon

Best answer by Daniel Söderlund 25 May 2023, 11:54

View original

3 replies

Userlevel 2
Badge +7

@zachary.king and @Daniel Söderlund , Thank you for your answers. It looks like I have to ask the help of more advanced IT people. I, as a manager, am not capable of writing anything that even looks like a script. 😁

Thank you very much for this solution.

Userlevel 7
Badge +16

Hello @EricRoeland, @Daniel Söderlund hit it right on the head. The Freshservice API is going to be your best friend here. I use a python script often to pull requester data and dump into a csv file. It wouldn’t take much to add in a POST request that changes the primary_email address of those requesters.

Userlevel 7
Badge +13

Hello, 

You need to use API Service Desk API for Developers | Freshservice
And use a script that filter on the old adress to get the ID and then use the update endpoint to change the e-mail.  Keep in mind that there is a limit on how many API calls you can do per minute. 

Reply