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

Contact's company always returns nil #79

Closed
mplaczek opened this issue Jun 30, 2015 · 2 comments
Closed

Contact's company always returns nil #79

mplaczek opened this issue Jun 30, 2015 · 2 comments

Comments

@mplaczek
Copy link

Hi, I'm having trouble extracting the company info from my contacts. At the moment I iterate thought the Contacts list and pass a contact to a method to extract the first and last name and concatenate these into a string that is returned. However for entries that have no first and last name I'm trying to return the company instead.
However, contacts[i].company always returns nil

@belkevich
Copy link
Contributor

Hi
Do you include APContactFieldCompany in field mask?

@mplaczek
Copy link
Author

Thank you, that works. Apologies, I did not realise that data would not be returned by default.

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

2 participants