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 7 Next »

Toronto Employment and Social Services (TESS) is providing a web service that returns client profiles. This approach eliminates the need for HSIO to temporarily save any client information.

TESS has documented the service here and the OpenAPI definition of the service is provided here.

OW Client Service to CRM Platform Events Mapping

Adult Mapping

The source is the JSON from the GetClientProfile method in the TESS-HSI service. The destination is the JSON representation of the Salesforce Account sobject.

SourceDestinationComment

GivenName

FirstName


LastName

LastName


MiddleName

MiddleName



Suffix

Not needed

ReferenceNum

Ontario_Works_Id__c


DoB

personBirthDate

there may be the need to transform the date:

the input format is yyyymmdd


personEmail

No email address

telephoneNumber

Phone



Secondary_Phone__c

Not provided by OW


PersonMobilePhone

Not provided by OW

streetNumber|| ' ' || streetNamestreet
citycity
provincestate_code
postalCodepostal_code
'CA'country_code
'Address'geocodeAccuracy
businessUnitIdhousehold_id__c
StatusCodecase_status__c
DomesticViolenceIndicator

Salesforce Sync JSON Data Mapping:

Salesforce

Fields

OW API FieldsOW API Example
JSON_Message__c

first_name__cGivenNameBibiana
last_name__c

LastName

MKMOPPJXK

MiddleName
case_status__cStatusCodeCS10001
SAMS_Status__cStatusCompleted

Active1
Name

firstname + '  ' +MiddleName +  '  '+ lastname



GenderCodeF
gender__cGenderFemale
salutation__c

Title


date_of_birth__c (yyyy-mm-dd)

DoB

19820428
email__c(null)
phoneTelephone555-5555555
Secondary_Phone__c(null)
Other_phone__c

(null)


Mobile_phone__c

(null)


Is_Aboriginal__c

(null)


BillingStreet(Primary)UnitNumber + '-'  +streetNumber + ' ' + streetName12-1254 Street
BillingCitycitySCARBOROUGH
BillingStateprovinceSCARBOROUGH
BillingPostalCodepostalCodeM5N 5E3
BillingCountry"CA"
ShippingStreet(Secondary)(null)
ShippingCity(null)
ShippingState(null)
ShippingPostalcode(null)
ShippingCountry(null)
RecordTypeId?
Ontario_Works_Id__cReferenceNum15146436109
Children_Services_Id__c(null)
CSIS_household_Id__c(null)
AccountSource "Ontario Works"
Children_Services_Household_Id__c(null)
RGI_Houshold_Id__c(null)
OW_Household_id__cICCaseID1212724857222

IndigenousInd0

IndigenousGroup
Is_sensitive_client__c(Boolean/Integer)DomesticViolenceIndicator0

DomesticViolenceStart

DomesticViolenceEnd
OW_start_date__cStatusChangeDate20190826

RecordChangeDate20191002
Object_Name__c"Account"

Process Log

The process log table is used to manage the date ranges when calling the service.

Process Log for OW Client
-- CRM Synch OW Client
Update PROCESS_LOG 
   set PRL_LAST_SUCCESS_RUN_START_TS = to_timestamp('2018-01-01','YYYY-MM-DD')
 where prl_process_log_type_code = 'SFSOWC';      
  • No labels