Comment
Tomko
Tera Expert

Hi Mahesh -

I responded on your other thread.  Specific to FTP, you're probably better off using a scheduled import (calling it from a script will allow you to make it more robust than a standard scheduled import).  

That aside, while IntegrationHub is really nice, you CAN do the same things using old-fashioned Business Rules.  Below is some of the code I wrote when I needed to build an integration with Salesforce, to push CSM Case Tasks back and forth.  The snippet is from a client-callable script include I wrote (we're using oAuth, which is what the token stuff is all about):

var token = getSFToken("createCase");

            var r = new sn_ws.RESTMessageV2('SkyTouch Salesforce', 'CreateCaseFromCaseTask');
            r.setRequestHeader("Authorization", token);
            r.setStringParameterNoEscape('serverDomain', sfDomain);
            r.setStringParameterNoEscape('ApiVersion', sfApiVersion);
            r.setStringParameterNoEscape('propAccountID', sfAcctID);
            r.setStringParameterNoEscape('ownerID', owner);
            r.setStringParameterNoEscape('shortDescription', shortDescription);
            r.setStringParameterNoEscape('description', description);
            r.setStringParameterNoEscape('priority', priority);
            r.setStringParameterNoEscape('TaskNumber', current.number);
            r.setStringParameterNoEscape('URL', urlVal);
            r.setStringParameterNoEscape('AssignDate', sfDateTime());
            r.setStringParameterNoEscape('recordTypeID', sfRecordTypeID);
            r.setStringParameterNoEscape('SysID', current.sys_id);
            r.setStringParameterNoEscape('nowTime', sfDateTime());
            r.setStringParameterNoEscape('createdBy', current.opened_by.getDisplayValue());
            r.setStringParameterNoEscape('caseNumber', current.parent.number);

            var response = r.execute();
            var responseBody = response.getBody();
            var httpStatus = response.getStatusCode();