I want to Integrate with Salesforce CLM to validate CRN number for the user?

Prathamesh Chav
Tera Contributor

Hi Team,

 

I want to Integrate with Salesforce CLM to validate CRN number for the user?

 

Process I am following :-

1) Create Rest Message with endpoint table of CRN's

2) Create Get Method with endpoint with mentioning ${CRN}

3) Create variable name using back end name of CRN number which is "Apttus__FF_Agreement_Number__c"

4) test it and use the script if CRN number is present then it will return code 200

if not then show the error message and make the field empty while user entering the CRN number

 

but How do I get those API's for Step1 and 2

do salesforce CLM have api explorer application the way we have in servicenow?

and is my approach correct?

 

Thanks 

1 REPLY 1

Nishant8
Giga Sage

Hello @Prathamesh Chav , If I understand correctly then you wish to validate whether CRN number, keyed in, exists in salesforce or not. If so, then yes you can create Outbound Rest message with a Get Method that accepts your CRN number as query parameter. You can make use of RESTMessageV2 API in your script and should be able to thru. Sharing a sample script below, you can change it accordingly:

 

try {
var r = new sn_ws.RESTMessageV2('<outbound rest message>', '<your get method name>');
r.setStringParameterNoEscape('CRN', <keyed in value by user>);
var response = r.execute();
var responseBody = response.getBody();
var httpStatus = response.getStatusCode();
gs.info('result is :' + responseBody)
}
catch(ex) {
var message = ex.message;
}
 
P.S: if you have integration hub license then salesforce spoke is available there, you can explore that option too.
 

Regards,

Nishant