Identify the records on which you want to run the OFAC Check.
Create Request Wrapper using the below Attributes:-
String sIndividualName = oAccount.FirstName + ' ' + oAccount.LastName; oReqWrapper.sFirstName = oAccount.FirstName; oReqWrapper.sLastName = oAccount.LastName; oReqWrapper.sType = sType; System.debug('oReqWrapper.sType :::>'+oReqWrapper.sType); oReqWrapper.sName = sIndividualName; System.debug('oReqWrapper.sName :::>'+oReqWrapper.sName); oReqWrapper.sParentRecordId = oAccount.Id; //oReqWrapper.sCountryCode = 'United States';
After this, you need to store the response which you will get
At last, you need to call our Below Apis to get the result:-
creditchecker.Utility.storeOFACData(oResponseWrapper.oOFAC, oResponseWrapper.listOFACResults); creditchecker.Utility.populateOFACMatchResults(new Set<Id>{oResponseWrapper.oOFAC.Id});
General
Content
Integrations