Hi, I am trying to integrate google forms with creating a deal on hubspot. I am making the create deal API call in Apps Script of Google Forms, as mentioned below. It’s creating a deal with blank fields on the actual website. For example, Deal name is blank. Could you please help resolve this issue.
function myFunction() {
var headers = {
‘Authorization’ : ‘Bearer <API key>’,
‘Content-Type’ : ‘application/json’
};
var data = {
‘amount’: ‘1500.00’,
‘closedate’: ‘’,
‘dealname’: ‘#123457’,
‘dealstage’: ‘New Requirements Submitted’,
‘hubspot_owner_id’: ‘60099274’,
‘pipeline’: ‘default’
};
var params = {
‘method’ : ‘POST’,
‘headers’ : headers,
‘payload’ : JSON.stringify(data)
};
var response = UrlFetchApp.fetch(‘https://api.hubapi.com/crm/v3/objects/deals’, params);
var json = response.getContentText();
var data = JSON.parse(json);
}
Hi, @hashSAM
Thanks for reaching out! Hey, @weiliang_lee @Anton, do you have any experience here?
Thank you! — Jaycee
Thanks fo reaching back Jaycee. How can I get help on this matter?