Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using .update on the custom_attributes with a False value, that update is skipped upon save #185

Open
davidemerritt opened this issue Apr 12, 2018 · 0 comments

Comments

@davidemerritt
Copy link

davidemerritt commented Apr 12, 2018

attributes_dict = {'is_active': False}

This code failed to update on save with a False value within the dictionary.

user = intercom_client.users.find(email=user_email)
user.custom_attributes.update(attributes_dict)
intercom_client.users.save(user)

while this did work

user = intercom_client.users.find(email=user_email)
user.custom_attributes.update(attributes_dict)
for key, val in attributes_dict.iteritems():
  user.custom_attributes[key] = val
intercom_client.users.save(user)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant