Request reference
WO0000000787229
Description
To get the activity of email in each case, it is required to call API https://solvay-restapi.onbmc.com/api/rx/application/datapage?dataPageType=com.bmc.arsys.rx.application.record.datapage.RecordInstanceDataPageQuery&recorddefinition=com.bmc.dsm.social-lib:SCL_Posts
It is setup on context parameter l_VAR_helix_case_activity_url
The example data of output is here
Tools: Talend
Detail job
- J062_Helix_case_activity
...
- Check parameter l_VAR_helix_case_activity_reload that it is incremental or reload to get the name of HELIX_CASE_ACTIVITY_RELOAD or HELIX_CASE_ACTIVITY
- Get the time from STG.incremetnal_load based on the name from point 1
- Set the last load time
- Set query and filter only post_type = system#email in order to get only email activity
- Call the detail job and pass parameters
- Call the standard job to upload the files from GCS to ODS
- Delete the data if the category is not related to Procurement or Buy - Provisioning or it is not existing in case_itsm by this SQL below (for both ODS and STG)
Delete FROM "+context.l_LOCAL_VAR_ODS_DATASET+"."+(String)globalMap.get("odsTable")+" where case_id in (select distinct case_id from "+context.l_LOCAL_VAR_ODS_DATASET+"."+(String)globalMap.get("odsTable")+" ca
left join ODS.ODS_HLX_0000_F001_I_H_Cases_ITSM itsm on ca.case_id = itsm.Request_ID
where (Request_ID is null
or JSON_EXTRACT_SCALAR(jsonContent, \"$['po2_flag']\") = '2000'
or NOT (coalesce(JSON_EXTRACT_SCALAR(jsonContent, \"$['category_tier_1']\"),\"\") = \"Procurement\"
and coalesce(JSON_EXTRACT_SCALAR(jsonContent, \"$['category_tier_2']\"),\"\") = \"Buy - Provisioning\"))); - Update max of created_date on HELIX_CASE_ACTIVITY_RELOAD or HELIX_CASE_ACTIVITY, Incase the last extraction has the max created_date same as before, it will send email to inform inform l_VAR_helix_case_activity_email_recipient and then update the log.
...
Field ID | Meaning | Example |
1 | id | |
2 | createdBy | '2' LIKE "qliksense_integration" |
3 | createdDate | '3'>"2024-06-11T06:00:00" |
5 | modifyBy | |
6 | modifiedDate | '6'>"2024-06-11T06:00:00" |
8 | Concerned Domain | |
450000411 | guid | '450000411' = "AGGAKVC8HT1PEAQSVUMSQRXFB6UAUU" |
450000152 | case_id | ('450000152'="CASE-0001129650") |
304412031 | Case_guid | ('304412031'="AGGE1177DY1P3ASGZQA3SGZQA3H1F6") |
304412021 | e_mail_content | "{\"text\":\"Service Request 2039821 was created for Francesco Frosi\"} |
304412011 | post_type | system#note / system#views / system#emai /comment#user |
...