Top

Error inviting a contact to a bubble

Comentarios

3 comentarios

  • Vincent BAILLEAU

    Hi Valeri,

    Could you give us more information on your environment.

    Thank you

    Regards

    Vincent

    -1
    Acciones de comentarios Permalink
  • Valeri VINNIKOV

    Hi Vincent,

    my environment Sandbox and Node.JS SDK. SDK version: 1.52.0

    I noticed that this code creates two bubbles with the same name.

    function createBubble()
    {
    let withHistory = true; // Allow newcomers to have access to the bubble messages since the creation of the bubble
    let bubbleName = "New bubble"
    let bubbleDescription = "Test bubble";
    let newBubble = rainbowSDK.bubbles.createBubble(bubbleName, bubbleDescription, withHistory).then(function(bubble) {
    console.log("New bubble created");
    }).catch(function(err) {
    console.log("Error creating new bubble: " + err.msg);
    });
    }
     
    it is strange
     
    Thanks
    Best regards
    Valeri
    0
    Acciones de comentarios Permalink
  • Valeri VINNIKOV

    Hi Vincent,

    Finally i solved the problem. It was my mistake, of course. In that line newBubble was undefined. I should have been used bubble instead of newBubble.

     rainbowSDK.bubbles.inviteContactToBubble(contact, newBubble, false, true, " test reason").then(function(bubbleUpdated) {

     

    it worked

     rainbowSDK.bubbles.inviteContactToBubble(contact, bubble, false, true, " test reason").then(function(bubbleUpdated) {

     

    Best regards

    Valeri

    0
    Acciones de comentarios Permalink

Iniciar sesión para dejar un comentario.

  • Pregunte a la Comunidad

    ¿Necesitas ayuda? Haz tus preguntas en la Comunidad para obtener respuestas de otros usuarios de Rainbow.

    Enviar un mensaje.