简体   繁体   English

通过Quickbooks API检索员工的电子邮件地址

[英]Retrieving employee email addresses via Quickbooks API

I'm trying to create a list of employees and their email addresses using the Quickbooks API. 我正在尝试使用Quickbooks API创建员工及其电子邮件地址的列表。 I'm using the following API call: 我正在使用以下API调用:

https://qb.sbfinance.intuit.com/v3/company/123/query?query=SELECT * FROM Employee

This returns a lot of great information, but not the email address. 这将返回很多有用的信息,但不会返回电子邮件地址。 According to the docs , it should be returned as PrimaryEmailAddr . 根据文档 ,应将其作为PrimaryEmailAddr返回。 Any ideas? 有任何想法吗?

UPDATE UPDATE

It turns out that if you create a user in QuickBooks and attach that user to an existing employee, the email address used by the user does not automatically propagate to the employee record. 事实证明,如果您在QuickBooks中创建用户并将该用户附加到现有员工,则该用户使用的电子邮件地址不会自动传播到员工记录。 So, my new question is this: is there any way to get the email addresses of users that are associated with a company (regardless of whether or not they are employees)? 因此,我的新问题是:有没有办法获取与公司关联的用户的电子邮件地址(无论他们是否为员工)?

What you are saying is if you invite some users(who are employees) to your company file using some email and that email address should come up when you query for employee entity. 您的意思是,如果您使用一些电子邮件邀请一些用户(是雇员)来公司文件,并且在查询雇员实体时该电子邮件地址应该出现。 This use case is not supported. 不支持该用例。 You need to explicitly mention the email address while creating an employee record, then only it will be retrieved on Read call. 创建员工记录时,您需要明确提及电子邮件地址,然后只有在“阅读”通话中可以检索到该电子邮件地址。 There is no API to find the users associated with one company file. 没有API可以找到与一个公司文件关联的用户。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM