# Formatting Workflow to fix Gmail emails

**URL:** <https://community.hubspot.com/t/formatting-workflow-to-fix-gmail-emails/119665>\
**Category:** Data Hub\
**Tags:** data-quality-automation\
**Created:** [November 1, 2024, 3:35pm UTC](https://community.hubspot.com/t/formatting-workflow-to-fix-gmail-emails/119665 "2024-11-01T15:35:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![RRezvanian](https://avatars.discourse-cdn.com/v4/letter/r/f05b48/32.png) [@RRezvanian](https://community.hubspot.com/u/RRezvanian)\
**Post date:** [November 1, 2024, 3:35pm UTC](https://community.hubspot.com/t/formatting-workflow-to-fix-gmail-emails/119665/1 "2024-11-01T15:35:50Z")

</div>

I created a workflow with custom code to fix misspelled gmail domains, so for example [jane@gmai.com](mailto:jane@gmai.com) would update to [jane@gmail.com](mailto:jane@gmail.com). I put the code into the workflow, tested a contact, and the test says it was a success, but the contact’s email never updated. What am I doing wrong?

---

<div class="post-metadata">

**Author:** ![PamCotton](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/pamcotton/32/47916_2.png) [@PamCotton](https://community.hubspot.com/u/PamCotton)\
**Post date:** [November 1, 2024, 9:31pm UTC](https://community.hubspot.com/t/formatting-workflow-to-fix-gmail-emails/119665/2 "2024-11-01T21:31:33Z")

</div>

Hey @RRezvanian, happy Friday!

It sounds like you’ve set up the workflow correctly, but the email field might not be [updating due to permissions](https://knowledge.hubspot.com/user-management/manage-user-permissions)or timing issues. Double-check that the workflow can edit the email property directly, as some properties have restricted edits. Also, ensure that the workflow is set to save the corrected email after the custom code runs, as sometimes additional steps or re-enrollment are needed for updates to apply. Let me know if you’d like to troubleshoot any specific part of the setup!

Kindly,

Pam
