My issue I have a usecase where from my source system I am populating email in Hubspot okay.
So what’s happening is when my source system had diff email then Hubspot contact’s email becomes secondary email and the old hubspot email becomes hubspot secondary email , if both are same then we dont want to do anything.
My issue when I am using as mentioned in API and docs then I am getting an error `hs_additional_emails` is a `Read only property can’t be updated from Hubspot UI api-client calls or by code too`
and i can’t see in community or anywhere when we can updarte this field through workflow automation so i am blocked in this.
Note : Neither API works or automation so how to fix this.
So suggest something.
Hey there! Have you tried using the Add a secondary email address endpoint? — Jaycee
Hey, @bhatt_pb05146
I just tested that endpoint using Postman and was successful. Here’s what I did:
- I have a Contact — Linda, with only a Primary Email address
-
Using Postman, I made a PUT request to the Add a secondary email address endpoint
Request
https://api.hubapi.com/contacts/v1/secondary-email/851/email/linda2@bobsburgers.com
Response
{
"portalId": 22245342,
"vid": 851,
"secondaryEmails": [
"linda2@bobsburgers.com"
]
}
-
And we can verify in-app that the secondary email address was updated successfully
Have fun testing! — Jaycee
Really appreciate your efforts and time Jaycee
but my concern was we don’t have support for this operation in hubspot v3 version there it keep on saying no update possible for Read Only property , so asked for help on that , then I thought to update some random property via API so I can setup an workflow through that I could update this additional email but that also not working.
Hey there! No worries. You are correct, there is not a v3 version of the Update a secondary email address endpoint.
Please note that our legacy endpoints are stable and supported unless explicitly flagged for depreciation or removal. You can check out our Breaking Changes documentation to better understand how we handle those updates. Additionally, I recommend subscribing to the Developer Changelog as it is the source of truth for updates and additional to our developer offerings.
Have a fantastic weekend! — Jaycee
@Jaycee_Lewis in above docs it is Hubspot api version v1 mentioned I cant find anything concreate for v3 and also by any change can you confirm that additional email in hubspot internal field name is `hs_additional_emails` right ?
Thanks again I will check the API way and at last just last thing there is no automation workflow support there through which i can update additional email via some other property right ?
Just comment on this then I will close this issue .
Thanks for the help and appreciate your efforts
You are very welcome — Jaycee