by Variance InfoTech Pvt Ltd

Webhooks allow communication with third-party applications by sending instant web notifications every time an event occurs in your SuiteCRM. With the Webhooks Integration, you can configure HTTP URLs and associate them in workflow rules to automate the entire notification process.

Free 30 day trial
Try it Now

FORM Content Type

HTTP POST/PUT Request Data passed to Webhook URL Using FORM Content Type.

HTTP POST Request Data:-

auth_parameter%5Busername%5D=admin&auth_parameter%5Bpassword%5D=admin &field_parameter%5Bfirst_name%5D=John&field_parameter%5Blast_name%5D=Smith

HTTP PUT Request Data:-

auth_parameter%5Busername%5D=admin&auth_parameter%5Bpassword%5D=admin &field_parameter%5Bfirst_name%5D=John&field_parameter%5Blast_name%5D=William &field_parameter%5BresponseId%5D=123

For Testing Authentication & Add/Update Data on third-party application,

if(isset($_REQUEST['authentication']) && $_REQUEST['authentication'] == '1'){

    //code to be executed if condition is true;

    //return json encoded array
//For example, 
    if(success) {
         echo json_encode(array("msg"=>"Authentication Successfully");
    }else{
         echo json_encode(array("msg"=>"Authentication Failed"));
    }

}else{ For getting HTTP POST/PUT Request Data in Webhook URL , Use file_get_contents function in your Webhook URL file $data = file_get_contents("php://input"); parse_str($data, $fieldData); //Parses a query string into variables

    //code to be executed for add/update data on third-party application

    //return json encoded array
//For example, 
if(success){
    echo json_encode(array("code"=>"1","msg"=>"Record Added Successfully",'responseRecordId'=>’123’));
    }else{
        echo json_encode(array("code"=>"0","msg"=>"Record Not Added Successfully"));
    }

}

Saving Comment Saving Comment...