Web Hook Integration

Posted by anu31221@gmail.com on 29-Jul-2014 08:15

Need some help to integrate with webhook integration software like Mailchimp

Wanted to create email to lead through web hook

Question:

Whats will be post URL

What all parameter I need to pass

e.g here is the Portal form https://www.rollbase.com/prod1/portal/portal.jsp?c=100109106&p=100118790&g=100118802&d=100118792#

I need to create simillar data from email to Web Hook to Rollbase

All Replies

Posted by Orchid Corpin on 29-Jul-2014 10:20

Hi Anu,

Here are some sample REST API code to create Rollbase record from another app integration.

First we need to identify where we can embed this code to your third party app to make this work.

<script>

var sessionId='';

function RESTLogin() {

var login = "www.rollbase.com/.../login ROLLBASE USERNAME>&password=<PASSWORD>";

$.post( login, function() {

}).done(function(data) {

sessionId = $( data ).find( "sessionId" ).text();

//Call create record to Rollbase

createRecord();

});

}

function createRecord() {

//REST API - CREATE record

createURL = "www.rollbase.com/.../create2 OBJECT INTEGRATION NAME>&useIds=false&FIELD1=field1_value&FIELD2=field1_value";

$.post( createURL, function() {

}).done(function() {

//Do something here

});

}

RESTLogin();

</script>

Hope this will help.

Regards,

Orchid

Posted by pvorobie on 29-Jul-2014 10:48

It is not a good idea to use REST server from UI pages (although technically possible).

Posted by romain.pennes@foederis.fr on 29-Jul-2014 11:09

Hello,

I'm not familiar with "web hooking".

I found that it is about altering or adding functionalities to a website for which you can't access the back-end, by using custom client-side JavaScript using browser extensions for instance.

Is this right?

If yes, I believe, you can achieve this with Rollbase by indeed calling their REST api like Orchid said. You may even only have to call "createRecord" function, since you can pass it login and password parameters.

Cheers,

Romain.

Posted by anu31221@gmail.com on 30-Jul-2014 16:03

How to manually portal from <action form from outside rollback . My requirement is lead is generated in other system. Email comes to a email id. Using zapier integrate the email system to roll base through webhook.

How can we call form action and parameter from zapier as webhook

Also, is it possible to post from PHP?   

Here is the action form wanted to submit from PHP. My portal URL:https://www.rollbase.com/prod1/portal/portal.jsp?c=100109106&p=100118790&g=100118802

<form action='https://www.rollbase.com/prod1/servlet/Portal' method='post' name='theForm' enctype='multipart/form-data' onSubmit='rbf_disableAllButtons()'>
<input type='hidden' name='formId' value='50'>
<input type='hidden' name='act' value='objCreate'>
<input type='hidden' name='c' value='100109106'>
<input type='hidden' name='p' value='100118790'>
<input type='hidden' name='d' value='100118792'>
<input type='hidden' name='g' value='100118802'>
<input type='hidden' name='objDefId' value='100111639'>
<table width='100%' border='0' cellspacing='0' cellpadding='0'>

Posted by anu31221@gmail.com on 30-Jul-2014 20:34

Portal URL:www.rollbase.com/.../portal.jsp

Also, is it possible to post form action  from PHP?

<form action='www.rollbase.com/.../Portal& method='post' name='theForm' enctype='multipart/form-data' onSubmit='rbf_disableAllButtons()'>

<input type='hidden' name='formId' value='50'>

<input type='hidden' name='act' value='objCreate'>

<input type='hidden' name='c' value='100109106'>

<input type='hidden' name='p' value='100118790'>

<input type='hidden' name='d' value='100118792'>

<input type='hidden' name='g' value='100118802'>

<input type='hidden' name='objDefId' value='100111639'>

<table width='100%' border='0' cellspacing='0' cellpadding='0'>

Posted by Orchid Corpin on 04-Aug-2014 14:18

Hi Anu,

It is possible to create integration to Rollbase using PHP, you can use the code generator in the Application Setup section and select the object(s) you want to include in the integration.

For more details please see "Using SOAP or REST to Integrate with Rollbase" in the documentation, Page 366

Another post url that may help, see create2 and createRecord methods (Page 719)

RB User guide: documentation.progress.com/.../RB_User_Guide.pdf

Hope this may help.

Regards,

Orchid

This thread is closed