79751086

Date: 2025-08-30 11:00:15
Score: 8
Natty: 4
Report link

I'm part of the "Team Digitale" at a high school and we’ve encountered the same issue after the deprecation of ContactsApp.

I just read the discussion in the link you shared (issuetracker.google.com/issues/199768096). Using GAM7, I wrote this to move (not copy) otherContact to My Contacts, and it seems to work. After that, you can delete it with People.deleteContact().

function move_to_my_contact(contact) {
  var new_rn = contact.resourceName.replace("otherContacts", "people"); 
  People.People.updateContact({
    "resourceName": new_rn, 
    "etag": contact.etag, 
    "memberships": [
      {
        "contactGroupMembership": {
          "contactGroupResourceName": "contactGroups/myContacts"
        }
      }
    ]
  },
  new_rn,
  { updatePersonFields: "memberships" });
}

Did you manage to solve the issue on your own? If so, could you let me know if you found a better solution?

Thank you!

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • RegEx Blacklisted phrase (2.5): could you let me know
  • RegEx Blacklisted phrase (3): Did you manage to solve the
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Andrea Dalla Guarda