Solved

Inivite members to Pipefy

  • 20 April 2023
  • 4 replies
  • 134 views

Userlevel 3
Badge

Hey guys, I am starting with GraphiQL and trying to create a query for inviteMembers for an organization, however, I am not being able to identify what is wrong here. Could you please clarify?

I used this topic here, but didn’t work: 

 

mutation {
inviteMembers(input: {
emails:[
{email:"teste@teste.com" role_name:"member"},
{email:"teste1@teste.com", role_name:"member"},
{email:"teste@teste.com", role_name:"member"}
]
organization_id: 12345
message: "please join my organization - Postman"}) {
clientMutationId
errors {index, message}
}
}

 

icon

Best answer by Lais Laudari 20 April 2023, 21:33

View original

4 replies

Userlevel 3
Badge

Error: 

{

    "data": {

        "inviteMembers": {

            "clientMutationId": null,

            "errors": [

                {

                    "index": null,

                    "message": "[\"teste@teste.com\"]"

                }

            ]

        }

    },

    "errors": [

        {

            "message": "Something went wrong",

            "locations": [

                {

                    "line": 17,

                    "column": 25

                }

            ],

            "path": [

                "inviteMembers",

                "errors",

                0,

                "index"

            ],

            "code": 30000,

            "type": "ExecutionError"

        }

    ]

}

 

Userlevel 3
Badge

Doing a troubleshooting the problem is in the role_name: "member", the role_name: "admin" worked, what would be the correct value for "member"?

Userlevel 3
Badge

Oi Juliana, boa tarde!

 

Estava com dificuldades para fazer uma chamada via API para convidar emails para o Pipefy!

 

A documentação dessa parte está errada em todos os lugares, gostaria de pedir para que seja validado as documentações novamente:

 

URL: https://developers.pipefy.com/changelog/new-graphql-api-update-user-management-mutations

 

inviteMembers > On organizations

 

mutation {

inviteMembers(input: {organization_id: 13,emails: { email: "email@email.com", role_name: "admin"}){

clientMutationId

}

}

 

URL: https://developers.pipefy.com/reference/users

 

User Mutations > Organization-level Mutations > Invite Members

 

mutation {

inviteMembers(input: {

organization_id: 1234,

emails: [{email: "email@email.com", role_name: "member"}]}) {

clientMutationId

}

}

 

URL: https://api-docs.pipefy.com/reference/objects/Member/

 

Member information > role_name: String > The user role name Valid roles

 

1. Organization:

- admin: Team admin, can view/join all pipes and access/manage the team settings;

- normal: Team member, can view and join all public pipes;

- gest: Team guest, is free and can only create cards.

 

No nivel de Org não existe a role "member" e sim a "normal" em varias documentações está como "member".

 

Não existe a role chamada "gest", tentei "guest" e tambem não funcionou! Qual a correta?

 

Essa parte da documentação está bem ruim, levei horas para conseguir fazer a chamada correta.

Userlevel 7
Badge +9

Hi @natan-bueno!

You are trying to add members to an org so the values possible are: normal, admin, super_admin
Normal 
is equivalent to member when adding in an org, while in the pipe would be members.

 

 

Reply