I want to Integrate with Salesforce CLM to validate CRN number for the user?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2025 11:49 PM - edited 02-12-2025 11:49 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2025 01:54 AM
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:
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;
}
Regards,
Nishant