question

cdcilley avatar image
cdcilley asked Jeffrey Blattman answered

Employee method getCustomId() does not work

Working in the Sandbox with a dev kit (API 17 version).

I successfully followed the getcurrentemployee example over on GitHub. I can get the employee "get" information - Nickname, Id, etc.

However, I set a "Custom ID" in my sandbox merchant account. The call to employee.getCustomId() returns an empty string. How can I get the Custom ID?

Additional info - a call to "employee.hasCustomId()" returns true. The length() of the result of employee.getCustomId() is 0.
DevKitEmployees
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Jeffrey Blattman avatar image
Jeffrey Blattman answered
Our device doesn't sync the employee custom ID. This is a bug. I'll submit an internal issue to have it fixed. I can't promise when you'll see a fix. Your workaround is to use the REST API to directly fetch the employee from the server.
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community