Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
  1. Identify the records on which you want to run the OFAC Check.

  2. 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';
  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. Code Block
    creditchecker.Utility.storeOFACData(oResponseWrapper.oOFAC, oResponseWrapper.listOFACResults); 
    creditchecker.Utility.populateOFACMatchResults(new Set<Id>{oResponseWrapper.oOFAC.Id});