Answer the question
In order to leave comments, you need to log in
How to pass parameters for an incoming webhook to Bitrix24 using Javascript?
I want to send leads/deals from Google spreadsheets to Bitrix24.
A quick start is described here .
In general, this can be broken down into 3 steps, as described here :
Answer the question
In order to leave comments, you need to log in
function myFunction() {
let url = " https://*************/rest/7/*******/crm.lead.add.json/ "
// let data = { 'TITLE': 'Testing lead'}
let data = {
'fields':{'TITLE': 'Testing lead'}
}
let options = {
'method': 'post',
'contentType': 'application/json',
'payload': JSON.stringify(data)
};
UrlFetchApp.fetch(url, options)
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question