Skip to content

Does not process a callback when it creates a new organization user #5

@markotom

Description

@markotom

When I try to create a new user with role H1 (organization user) the callback is not fired:

vtiger.doCreate('Users', {
  user_name        : "johndoe",
  user_password    : "jnajsbchbweui",
  confirm_password : "jnajsbchbweui",
  last_name        : "Doe",
  first_name       : "John",
  roleid           : "H1", // This is the organization role id
  email1           : "john@doe.com"
}, function (err, user) {
  // Returns nothing because callback not run
  console.log("Error:", err);
  console.log("User:", user);
});

If I try with the same code changing roleid to "H2" (CEO user), the callback is fired correctly without error and with new user object. Do you know why this happens?

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions