Identify the records on which you want to run the OFAC Check.
Create Request Wrapper using the below Attributes:-
Code Block 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:-
Code Block creditchecker.Utility.storeOFACData(oResponseWrapper.oOFAC, oResponseWrapper.listOFACResults); creditchecker.Utility.populateOFACMatchResults(new Set<Id>{oResponseWrapper.oOFAC.Id});
Page Comparison
General
Content
Integrations