Get Order Creator information

Where is the creator of the order and what is the relation between the creator and employee?

@Doaa_Ahmed the creator is the owner . the user who created this document

is the owner an employee ?
if yes why I couldn’t find it after retrieve all employees

@Doaa_Ahmed the owner is a user first . this user can be an employee .
employee and users are linked with the field ‘user_id’ in the employee doc . to check if an employee is linked to the specific user . open the user list add a new filter (‘user_id’ equal to the owner) .

2 Likes

thanks for your replay ^^
one last question how can I retrieve all users in the system in other words which doc type represents the user so I can write it in my service
Like in employee
https://testttttttt.frappe.cloud/api/resource/Employee
in user
https://testtttttt.frappee.cloud/api/resource/???

Try:
https://testtttttt.frappee.cloud/api/resource/User

1 Like