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 6 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 Comparing: (salesforce fields column copied from: Salesforce Mapping)

JSON Fields
Arribute

Salesforce

Fields

TCS ExampleOW API FieldsOW API Example
JSON_Message__c






FirstNameStringfirst_name__cpettest101GivenNameBibiana

lastname
last_name__c

LastName

MKMOPPJXK





MiddleName





StatusCodeCS10001



SAMS_Status__c
StatusCompleted





Active1

NameStringNamedemowithinsert

(Add (value is firstname + ' '+ lastname))







GenderCodeF



gender__c
GenderFemale

(suffix)
salutation__c

Title



date_of_birth__cStringdate_of_birth__c1966-09-17

DoB

19820428





Title

email__cStringemail__cctpNwJMdPJtpjTF@toronto.ca


PhoneStringphone4164041943Telephone555-5555555



Secondary_Phone__c





Other_phone__c






Mobile_phone__c






Is_Aboriginal__c




BillingStreetStringBillingStreet(Primary)200 WELLESLEY ST EUnitNumber||' '||streetNumber|| ' ' || streetName1254 Street

BillingCityStringBillingCityTORONTOcitySCARBOROUGH

BillingStateStringBillingStateONprovinceSCARBOROUGH

BillingPostalCodeStringBillingPostalCodeM4X 1G3postalCodeM5N 5E3

BillingCountryStringBillingCountryCA







1254 Street , SCARBOROUGH, Ontario, M5N 5E3



ShippingStreet(Secondary)





ShippingCity





ShippingState





ShippingPostalcode





ShippingCountry



RecordTypeIdString(RecordTypeId)0121h0000004kgaAAA


Ontario_Works_Id__cStringOntario_Works_Id__c3304892315ReferenceNum15146436109

Children_Services_Id__cStringChildren_Services_Id__c441234781




CSIS_household_Id__c





AccountSource Ontario Works


Children_Services_Household_Id__cStringChildren_Services_Household_Id__c112311221




RGI_Houshold_Id__c





OW_Household_id__c
ICCaseID1212724857222





IndigenousInd0





IndigenousGroup


Boolean/Integer(Is_sensitive_client__c)
DomesticViolenceIndicator0





DomesticViolenceStart





DomesticViolenceEnd



(OW_start_date__c)
StatusChangeDate20190826





RecordChangeDate20191002
Object_Name__c
String
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