javascript-api icon indicating copy to clipboard operation
javascript-api copied to clipboard

Add Note is not working

Open kapilkarda opened this issue 9 years ago • 2 comments

Hello

Please see the code _agile.create_contact({ "email": "[email protected]", "first_name": "Test", "last_name": "New", "tags":"tag1" }, { success: function add_note() {

        console.log("Done");

        _agile.add_note({
            "subject": "How to test",
            "description": "Running"
          }, { success: function(data){ 
                  console.log(data);
                  console.log("contact created");
              }, error: function(err){
                console.log("data1");
                console.log(err);
              }
          });

      }, error: function(data){

      }
  });

this is not working, Please help me in that.

Thanks

kapilkarda avatar Mar 03 '16 12:03 kapilkarda

Hi,

You can try below code link code.

https://gist.github.com/graut/6ec022cd8161195101ff

Note : To add note to contact you need to set email. I have set email after contact created but you can set at the top also.

graut avatar Mar 09 '16 04:03 graut

how can we update existing note ?

chathurangadw avatar Oct 16 '18 08:10 chathurangadw