Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

  1. Identify the records on which you want to run the OFAC Check.

  2. 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';
  3. After this, you need to store the response which you will get

  4. At last, you need to call our Below Apis to get the result:-

  5. creditchecker.Utility.storeOFACData(oResponseWrapper.oOFAC, oResponseWrapper.listOFACResults); 
    creditchecker.Utility.populateOFACMatchResults(new Set<Id>{oResponseWrapper.oOFAC.Id});

  • No labels