From 61f63a640ffab3640f4fe1a21b042f0de606b877 Mon Sep 17 00:00:00 2001 From: Fabio de Agostini Schiozer Date: Wed, 1 Nov 2023 20:56:50 -0300 Subject: [PATCH] CHANGES TO BE COMMITED --- .vscode/settings.json | 4 +- ...leGetAccountDetailsDRExtract_DataPack.json | 50 + ...leGetAccountDetailsDRExtract_Mappings.json | 111 ++ ...countDetailsDRExtract_SampleInputJson.json | 3 + ...AccountDetailsDRExtract_TargetOutJson.json | 6 + .../samplePostXformWeather_DataPack.json | 50 + .../samplePostXformWeather_InputJson.json | 131 +++ .../samplePostXformWeather_Mappings.json | 190 ++++ ...amplePostXformWeather_SampleInputJson.json | 131 +++ .../samplePostXformWeather_TargetOutJson.json | 42 + .../sample_getWeatherForecast_DataPack.json | 27 + ...therForecast_Element_DRGetAccountInfo.json | 47 + ...eatherForecast_Element_DRXformWeather.json | 43 + ...orecast_Element_HTTPGetCurrentWeather.json | 57 + ...recast_Element_HTTPGetForecastWeather.json | 58 + ...eatherForecast_Element_ResponseAction.json | 36 + ..._getWeatherForecast_Element_SVWeather.json | 32 + .../sample_getWeatherForecast_ParentKeys.json | 4 + ...sample_getWeatherForecast_PropertySet.json | 31 + ...sample_getWeatherForecast_SampleInput.json | 4 + .../sampleWeather/sampleWeather.json | 990 ++++++++++++++++++ .../sampleWeather/sampleWeather_DataPack.json | 41 + .../Account_Record_Page5.flexipage-meta.xml | 252 +++++ manifest/sfi-package.yaml | 4 + 24 files changed, 2342 insertions(+), 2 deletions(-) create mode 100644 datapacks/DataRaptor/sampleGetAccountDetailsDRExtract/sampleGetAccountDetailsDRExtract_DataPack.json create mode 100644 datapacks/DataRaptor/sampleGetAccountDetailsDRExtract/sampleGetAccountDetailsDRExtract_Mappings.json create mode 100644 datapacks/DataRaptor/sampleGetAccountDetailsDRExtract/sampleGetAccountDetailsDRExtract_SampleInputJson.json create mode 100644 datapacks/DataRaptor/sampleGetAccountDetailsDRExtract/sampleGetAccountDetailsDRExtract_TargetOutJson.json create mode 100644 datapacks/DataRaptor/samplePostXformWeather/samplePostXformWeather_DataPack.json create mode 100644 datapacks/DataRaptor/samplePostXformWeather/samplePostXformWeather_InputJson.json create mode 100644 datapacks/DataRaptor/samplePostXformWeather/samplePostXformWeather_Mappings.json create mode 100644 datapacks/DataRaptor/samplePostXformWeather/samplePostXformWeather_SampleInputJson.json create mode 100644 datapacks/DataRaptor/samplePostXformWeather/samplePostXformWeather_TargetOutJson.json create mode 100644 datapacks/IntegrationProcedure/sample_getWeatherForecast/sample_getWeatherForecast_DataPack.json create mode 100644 datapacks/IntegrationProcedure/sample_getWeatherForecast/sample_getWeatherForecast_Element_DRGetAccountInfo.json create mode 100644 datapacks/IntegrationProcedure/sample_getWeatherForecast/sample_getWeatherForecast_Element_DRXformWeather.json create mode 100644 datapacks/IntegrationProcedure/sample_getWeatherForecast/sample_getWeatherForecast_Element_HTTPGetCurrentWeather.json create mode 100644 datapacks/IntegrationProcedure/sample_getWeatherForecast/sample_getWeatherForecast_Element_HTTPGetForecastWeather.json create mode 100644 datapacks/IntegrationProcedure/sample_getWeatherForecast/sample_getWeatherForecast_Element_ResponseAction.json create mode 100644 datapacks/IntegrationProcedure/sample_getWeatherForecast/sample_getWeatherForecast_Element_SVWeather.json create mode 100644 datapacks/IntegrationProcedure/sample_getWeatherForecast/sample_getWeatherForecast_ParentKeys.json create mode 100644 datapacks/IntegrationProcedure/sample_getWeatherForecast/sample_getWeatherForecast_PropertySet.json create mode 100644 datapacks/IntegrationProcedure/sample_getWeatherForecast/sample_getWeatherForecast_SampleInput.json create mode 100644 datapacks/VlocityCard/sampleWeather/sampleWeather.json create mode 100644 datapacks/VlocityCard/sampleWeather/sampleWeather_DataPack.json create mode 100644 force-app/main/default/flexipages/Account_Record_Page5.flexipage-meta.xml diff --git a/.vscode/settings.json b/.vscode/settings.json index b2da121..ff7ac59 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -5,8 +5,8 @@ "**/.sfdx": true }, "salesforcedx-vscode-core.show-cli-success-msg": false, - "vlocity.sfdxUsername": "tnascimento@salesforce.com.comms.demo", - "vlocity.projectPath": "/Users/tnascimento/dev/enablement-sessions-orgdevmode/datapacks", + "vlocity.sfdxUsername": "fschiozer@rambobelt.corp", + "vlocity.projectPath": "/Users/fschiozer/Documents/Training/CICD/enablement-sessions-orgdevmode/datapacks", "files.exclude": { "**/.git": true, "**/.svn": true, diff --git a/datapacks/DataRaptor/sampleGetAccountDetailsDRExtract/sampleGetAccountDetailsDRExtract_DataPack.json b/datapacks/DataRaptor/sampleGetAccountDetailsDRExtract/sampleGetAccountDetailsDRExtract_DataPack.json new file mode 100644 index 0000000..0284d38 --- /dev/null +++ b/datapacks/DataRaptor/sampleGetAccountDetailsDRExtract/sampleGetAccountDetailsDRExtract_DataPack.json @@ -0,0 +1,50 @@ +{ + "%vlocity_namespace%__BatchSize__c": 200, + "%vlocity_namespace%__CheckFieldLevelSecurity__c": false, + "%vlocity_namespace%__CustomInputClass__c": "", + "%vlocity_namespace%__CustomOutputClass__c": "", + "%vlocity_namespace%__DRMapItem__c": "sampleGetAccountDetailsDRExtract_Mappings.json", + "%vlocity_namespace%__DRMapName__c": "sampleGetAccountDetailsDRExtract", + "%vlocity_namespace%__DeleteOnSuccess__c": false, + "%vlocity_namespace%__Description__c": "Simple single record extract. Notice the AccountId is returned even though it was used in the extract step.", + "%vlocity_namespace%__GlobalKey__c": "9d129e38-b753-27a0-e7be-ea502b01038a", + "%vlocity_namespace%__IgnoreErrors__c": false, + "%vlocity_namespace%__InputCustom__c": "", + "%vlocity_namespace%__InputJson__c": "", + "%vlocity_namespace%__InputType__c": "JSON", + "%vlocity_namespace%__InputXml__c": "", + "%vlocity_namespace%__InterfaceObject__c": "json", + "%vlocity_namespace%__IsDefaultForInterface__c": false, + "%vlocity_namespace%__IsProcessSuperBulk__c": false, + "%vlocity_namespace%__OMplusSyncEnabled__c": false, + "%vlocity_namespace%__OuboundStagingObjectDataField__c": "", + "%vlocity_namespace%__OutboundConfigurationField__c": "", + "%vlocity_namespace%__OutboundConfigurationName__c": "", + "%vlocity_namespace%__OutboundStagingObjectName__c": "", + "%vlocity_namespace%__OutputType__c": "JSON", + "%vlocity_namespace%__OverwriteAllNullValues__c": false, + "%vlocity_namespace%__PreprocessorClassName__c": "", + "%vlocity_namespace%__ProcessNowThreshold__c": -1, + "%vlocity_namespace%__RequiredPermission__c": "", + "%vlocity_namespace%__RollbackOnError__c": false, + "%vlocity_namespace%__SalesforcePlatformCacheType__c": "", + "%vlocity_namespace%__SampleInputCustom__c": "", + "%vlocity_namespace%__SampleInputJSON__c": "sampleGetAccountDetailsDRExtract_SampleInputJson.json", + "%vlocity_namespace%__SampleInputRows__c": "", + "%vlocity_namespace%__SampleInputXML__c": "", + "%vlocity_namespace%__TargetOutCustom__c": "", + "%vlocity_namespace%__TargetOutDocuSignTemplateId__c": "", + "%vlocity_namespace%__TargetOutJson__c": "sampleGetAccountDetailsDRExtract_TargetOutJson.json", + "%vlocity_namespace%__TargetOutPdfDocName__c": "", + "%vlocity_namespace%__TargetOutXml__c": "", + "%vlocity_namespace%__TimeToLiveMinutes__c": "", + "%vlocity_namespace%__Type__c": "Extract", + "%vlocity_namespace%__UseAssignmentRules__c": false, + "%vlocity_namespace%__UseTranslations__c": false, + "%vlocity_namespace%__XmlOutputSequence__c": "", + "%vlocity_namespace%__XmlRemoveDeclaration__c": false, + "Name": "sampleGetAccountDetailsDRExtract", + "VlocityDataPackType": "SObject", + "VlocityRecordSObjectType": "%vlocity_namespace%__DRBundle__c", + "VlocityRecordSourceKey": "%vlocity_namespace%__DRBundle__c/sampleGetAccountDetailsDRExtract" +} \ No newline at end of file diff --git a/datapacks/DataRaptor/sampleGetAccountDetailsDRExtract/sampleGetAccountDetailsDRExtract_Mappings.json b/datapacks/DataRaptor/sampleGetAccountDetailsDRExtract/sampleGetAccountDetailsDRExtract_Mappings.json new file mode 100644 index 0000000..59fdb66 --- /dev/null +++ b/datapacks/DataRaptor/sampleGetAccountDetailsDRExtract/sampleGetAccountDetailsDRExtract_Mappings.json @@ -0,0 +1,111 @@ +[ + { + "%vlocity_namespace%__DomainObjectAPIName__c": "json", + "%vlocity_namespace%__DomainObjectCreationOrder__c": 0, + "%vlocity_namespace%__DomainObjectFieldAPIName__c": "Account", + "%vlocity_namespace%__FilterGroup__c": 0, + "%vlocity_namespace%__FilterOperator__c": "=", + "%vlocity_namespace%__FilterValue__c": "AccountId", + "%vlocity_namespace%__GlobalKey__c": "b5716f08-c21e-6f99-de61-989a1b1de630", + "%vlocity_namespace%__InterfaceFieldAPIName__c": "Id", + "%vlocity_namespace%__InterfaceObjectLookupOrder__c": 1, + "%vlocity_namespace%__InterfaceObjectName__c": "Account", + "%vlocity_namespace%__IsDisabled__c": false, + "%vlocity_namespace%__IsRequiredForUpsert__c": false, + "%vlocity_namespace%__MapId__c": "sampleGetAccountDetailsDRExtract23739210953902878", + "%vlocity_namespace%__OMplusSyncEnabled__c": false, + "%vlocity_namespace%__UpsertKey__c": false, + "Name": "sampleGetAccountDetailsDRExtract", + "VlocityDataPackType": "SObject", + "VlocityRecordSObjectType": "%vlocity_namespace%__DRMapItem__c" + }, + { + "%vlocity_namespace%__DomainObjectAPIName__c": "json", + "%vlocity_namespace%__DomainObjectCreationOrder__c": 1, + "%vlocity_namespace%__DomainObjectFieldAPIName__c": "AccountCountry", + "%vlocity_namespace%__DomainObjectFieldType__c": "String", + "%vlocity_namespace%__InterfaceFieldAPIName__c": "Account:BillingCountry", + "%vlocity_namespace%__IsDisabled__c": false, + "%vlocity_namespace%__IsRequiredForUpsert__c": false, + "%vlocity_namespace%__MapId__c": "sampleGetAccountDetailsDRExtractCustom197", + "%vlocity_namespace%__OMplusSyncEnabled__c": true, + "%vlocity_namespace%__UpsertKey__c": false, + "Name": "sampleGetAccountDetailsDRExtract", + "VlocityDataPackType": "SObject", + "VlocityRecordSObjectType": "%vlocity_namespace%__DRMapItem__c" + }, + { + "%vlocity_namespace%__DomainObjectAPIName__c": "json", + "%vlocity_namespace%__DomainObjectCreationOrder__c": 1, + "%vlocity_namespace%__DomainObjectFieldAPIName__c": "AccountId", + "%vlocity_namespace%__GlobalKey__c": "6b6b907f-cbf7-1438-3625-03398527e1a7", + "%vlocity_namespace%__InterfaceFieldAPIName__c": "Account:Id", + "%vlocity_namespace%__IsDisabled__c": false, + "%vlocity_namespace%__IsRequiredForUpsert__c": false, + "%vlocity_namespace%__MapId__c": "sampleGetAccountDetailsDRExtract9116710466428641", + "%vlocity_namespace%__OMplusSyncEnabled__c": false, + "%vlocity_namespace%__UpsertKey__c": false, + "Name": "sampleGetAccountDetailsDRExtract", + "VlocityDataPackType": "SObject", + "VlocityRecordSObjectType": "%vlocity_namespace%__DRMapItem__c" + }, + { + "%vlocity_namespace%__DomainObjectAPIName__c": "json", + "%vlocity_namespace%__DomainObjectCreationOrder__c": 1, + "%vlocity_namespace%__DomainObjectFieldAPIName__c": "AccountName", + "%vlocity_namespace%__GlobalKey__c": "118437fd-a876-c63b-84f2-3220e8d35559", + "%vlocity_namespace%__InterfaceFieldAPIName__c": "Account:Name", + "%vlocity_namespace%__IsDisabled__c": false, + "%vlocity_namespace%__IsRequiredForUpsert__c": false, + "%vlocity_namespace%__MapId__c": "sampleGetAccountDetailsDRExtract13673801718364875", + "%vlocity_namespace%__OMplusSyncEnabled__c": false, + "%vlocity_namespace%__UpsertKey__c": false, + "Name": "sampleGetAccountDetailsDRExtract", + "VlocityDataPackType": "SObject", + "VlocityRecordSObjectType": "%vlocity_namespace%__DRMapItem__c" + }, + { + "%vlocity_namespace%__DomainObjectAPIName__c": "json", + "%vlocity_namespace%__DomainObjectCreationOrder__c": 1, + "%vlocity_namespace%__DomainObjectFieldAPIName__c": "AccountPhone", + "%vlocity_namespace%__GlobalKey__c": "e635617a-627c-300a-bafd-25fc9e87a072", + "%vlocity_namespace%__InterfaceFieldAPIName__c": "Account:Phone", + "%vlocity_namespace%__IsDisabled__c": false, + "%vlocity_namespace%__IsRequiredForUpsert__c": false, + "%vlocity_namespace%__MapId__c": "sampleGetAccountDetailsDRExtract20281662614294915", + "%vlocity_namespace%__OMplusSyncEnabled__c": false, + "%vlocity_namespace%__UpsertKey__c": false, + "Name": "sampleGetAccountDetailsDRExtract", + "VlocityDataPackType": "SObject", + "VlocityRecordSObjectType": "%vlocity_namespace%__DRMapItem__c" + }, + { + "%vlocity_namespace%__DomainObjectAPIName__c": "json", + "%vlocity_namespace%__DomainObjectCreationOrder__c": 1, + "%vlocity_namespace%__DomainObjectFieldAPIName__c": "AccountPostalCode", + "%vlocity_namespace%__InterfaceFieldAPIName__c": "Account:BillingPostalCode", + "%vlocity_namespace%__IsDisabled__c": false, + "%vlocity_namespace%__IsRequiredForUpsert__c": false, + "%vlocity_namespace%__MapId__c": "sampleGetAccountDetailsDRExtractCustom9942", + "%vlocity_namespace%__OMplusSyncEnabled__c": false, + "%vlocity_namespace%__UpsertKey__c": false, + "Name": "sampleGetAccountDetailsDRExtract", + "VlocityDataPackType": "SObject", + "VlocityRecordSObjectType": "%vlocity_namespace%__DRMapItem__c" + }, + { + "%vlocity_namespace%__DomainObjectAPIName__c": "json", + "%vlocity_namespace%__DomainObjectCreationOrder__c": 1, + "%vlocity_namespace%__DomainObjectFieldAPIName__c": "AccountWebsite", + "%vlocity_namespace%__GlobalKey__c": "d26aeab7-3f69-0694-7df9-00f265db8c57", + "%vlocity_namespace%__InterfaceFieldAPIName__c": "Account:Website", + "%vlocity_namespace%__IsDisabled__c": false, + "%vlocity_namespace%__IsRequiredForUpsert__c": false, + "%vlocity_namespace%__MapId__c": "sampleGetAccountDetailsDRExtract8263812975041602", + "%vlocity_namespace%__OMplusSyncEnabled__c": false, + "%vlocity_namespace%__UpsertKey__c": false, + "Name": "sampleGetAccountDetailsDRExtract", + "VlocityDataPackType": "SObject", + "VlocityRecordSObjectType": "%vlocity_namespace%__DRMapItem__c" + } +] \ No newline at end of file diff --git a/datapacks/DataRaptor/sampleGetAccountDetailsDRExtract/sampleGetAccountDetailsDRExtract_SampleInputJson.json b/datapacks/DataRaptor/sampleGetAccountDetailsDRExtract/sampleGetAccountDetailsDRExtract_SampleInputJson.json new file mode 100644 index 0000000..a78cd0e --- /dev/null +++ b/datapacks/DataRaptor/sampleGetAccountDetailsDRExtract/sampleGetAccountDetailsDRExtract_SampleInputJson.json @@ -0,0 +1,3 @@ +{ + "AccountId": "0015f00000EPdwbAAD" +} \ No newline at end of file diff --git a/datapacks/DataRaptor/sampleGetAccountDetailsDRExtract/sampleGetAccountDetailsDRExtract_TargetOutJson.json b/datapacks/DataRaptor/sampleGetAccountDetailsDRExtract/sampleGetAccountDetailsDRExtract_TargetOutJson.json new file mode 100644 index 0000000..7090a3b --- /dev/null +++ b/datapacks/DataRaptor/sampleGetAccountDetailsDRExtract/sampleGetAccountDetailsDRExtract_TargetOutJson.json @@ -0,0 +1,6 @@ +{ + "AccountName": "Acme", + "AccountPhone": "2121546450", + "AccountPostalCode": "12345", + "AccountWebsite": "www.acme.com" +} \ No newline at end of file diff --git a/datapacks/DataRaptor/samplePostXformWeather/samplePostXformWeather_DataPack.json b/datapacks/DataRaptor/samplePostXformWeather/samplePostXformWeather_DataPack.json new file mode 100644 index 0000000..719263c --- /dev/null +++ b/datapacks/DataRaptor/samplePostXformWeather/samplePostXformWeather_DataPack.json @@ -0,0 +1,50 @@ +{ + "%vlocity_namespace%__BatchSize__c": 200, + "%vlocity_namespace%__CheckFieldLevelSecurity__c": false, + "%vlocity_namespace%__CustomInputClass__c": "", + "%vlocity_namespace%__CustomOutputClass__c": "", + "%vlocity_namespace%__DRMapItem__c": "samplePostXformWeather_Mappings.json", + "%vlocity_namespace%__DRMapName__c": "samplePostXformWeather", + "%vlocity_namespace%__DeleteOnSuccess__c": false, + "%vlocity_namespace%__Description__c": "Example of a DataRaptor Transform with concatenate formulas and mixed subnode and array output.", + "%vlocity_namespace%__GlobalKey__c": "5b6eb5e0-e92d-6bc9-ad8b-5f6059eb38d5", + "%vlocity_namespace%__IgnoreErrors__c": false, + "%vlocity_namespace%__InputCustom__c": "", + "%vlocity_namespace%__InputJson__c": "samplePostXformWeather_InputJson.json", + "%vlocity_namespace%__InputType__c": "JSON", + "%vlocity_namespace%__InputXml__c": "", + "%vlocity_namespace%__InterfaceObject__c": "json", + "%vlocity_namespace%__IsDefaultForInterface__c": false, + "%vlocity_namespace%__IsProcessSuperBulk__c": false, + "%vlocity_namespace%__OMplusSyncEnabled__c": false, + "%vlocity_namespace%__OuboundStagingObjectDataField__c": "", + "%vlocity_namespace%__OutboundConfigurationField__c": "", + "%vlocity_namespace%__OutboundConfigurationName__c": "", + "%vlocity_namespace%__OutboundStagingObjectName__c": "", + "%vlocity_namespace%__OutputType__c": "JSON", + "%vlocity_namespace%__OverwriteAllNullValues__c": false, + "%vlocity_namespace%__PreprocessorClassName__c": "", + "%vlocity_namespace%__ProcessNowThreshold__c": -1, + "%vlocity_namespace%__RequiredPermission__c": "", + "%vlocity_namespace%__RollbackOnError__c": false, + "%vlocity_namespace%__SalesforcePlatformCacheType__c": "", + "%vlocity_namespace%__SampleInputCustom__c": "", + "%vlocity_namespace%__SampleInputJSON__c": "samplePostXformWeather_SampleInputJson.json", + "%vlocity_namespace%__SampleInputRows__c": "", + "%vlocity_namespace%__SampleInputXML__c": "", + "%vlocity_namespace%__TargetOutCustom__c": "", + "%vlocity_namespace%__TargetOutDocuSignTemplateId__c": "", + "%vlocity_namespace%__TargetOutJson__c": "samplePostXformWeather_TargetOutJson.json", + "%vlocity_namespace%__TargetOutPdfDocName__c": "", + "%vlocity_namespace%__TargetOutXml__c": "", + "%vlocity_namespace%__TimeToLiveMinutes__c": "", + "%vlocity_namespace%__Type__c": "Transform", + "%vlocity_namespace%__UseAssignmentRules__c": false, + "%vlocity_namespace%__UseTranslations__c": false, + "%vlocity_namespace%__XmlOutputSequence__c": "", + "%vlocity_namespace%__XmlRemoveDeclaration__c": false, + "Name": "samplePostXformWeather", + "VlocityDataPackType": "SObject", + "VlocityRecordSObjectType": "%vlocity_namespace%__DRBundle__c", + "VlocityRecordSourceKey": "%vlocity_namespace%__DRBundle__c/samplePostXformWeather" +} \ No newline at end of file diff --git a/datapacks/DataRaptor/samplePostXformWeather/samplePostXformWeather_InputJson.json b/datapacks/DataRaptor/samplePostXformWeather/samplePostXformWeather_InputJson.json new file mode 100644 index 0000000..0e3146e --- /dev/null +++ b/datapacks/DataRaptor/samplePostXformWeather/samplePostXformWeather_InputJson.json @@ -0,0 +1,131 @@ +{ + "Current": [ + { + "app_temp": 73.7, + "aqi": 37, + "city_name": "Schenectady", + "clouds": 45, + "country_code": "US", + "datetime": "2019-09-10:22", + "dewpt": 62.1, + "dhi": 59.71, + "dni": 535.73, + "elev_angle": 12.66, + "ghi": 169.35, + "h_angle": 64.3, + "last_ob_time": "2019-09-10T22:29:00", + "lat": 42.8142, + "lon": -73.9396, + "ob_time": "2019-09-10 22:29", + "pod": "d", + "precip": 0, + "pres": 1009.5, + "rh": 68, + "slp": 1023, + "snow": 0, + "solar_rad": 160.4, + "state_code": "NY", + "station": "KSCH", + "sunrise": "10:30", + "sunset": "23:15", + "temp": 73.4, + "timezone": "America/New_York", + "ts": 1568154540, + "uv": 2.17892, + "vis": 3.1, + "weather": { + "code": "802", + "description": "Scattered clouds", + "icon": "c02d" + }, + "wind_cdir": "S", + "wind_cdir_full": "south", + "wind_dir": 170, + "wind_spd": 6.9 + } + ], + "Fcast": [ + { + "app_max_temp": 77.1, + "app_min_temp": 69.3, + "clouds": 43, + "clouds_hi": 12, + "clouds_low": 40, + "clouds_mid": 0, + "datetime": "2019-09-10", + "dewpt": 66.9, + "max_dhi": null, + "max_temp": 76.5, + "min_temp": 68.3, + "moon_phase": 0.970024, + "moonrise_ts": 1568152279, + "moonset_ts": 1568105730, + "ozone": 276.197, + "pop": 20, + "precip": 0.005, + "pres": 1024.82, + "rh": 88, + "slp": 1025.64, + "snow": 0, + "snow_depth": 0, + "sunrise_ts": 1568111801, + "sunset_ts": 1568157356, + "temp": 71.1, + "ts": 1568088060, + "uv": 3.82131, + "valid_date": "2019-09-10", + "vis": 15, + "weather": { + "code": 803, + "description": "Broken clouds", + "icon": "c03d" + }, + "wind_cdir": "SSE", + "wind_cdir_full": "south-southeast", + "wind_dir": 153, + "wind_gust_spd": 26.6, + "wind_spd": 9 + }, + { + "app_max_temp": 88.8, + "app_min_temp": 68.1, + "clouds": 59, + "clouds_hi": 36, + "clouds_low": 36, + "clouds_mid": 17, + "datetime": "2019-09-11", + "dewpt": 67.8, + "max_dhi": null, + "max_temp": 84.6, + "min_temp": 66.9, + "moon_phase": 0.993411, + "moonrise_ts": 1568240745, + "moonset_ts": 1568195609, + "ozone": 276.717, + "pop": 0, + "precip": 0, + "pres": 1018.9, + "rh": 82, + "slp": 1019.72, + "snow": 0, + "snow_depth": 0, + "sunrise_ts": 1568198257, + "sunset_ts": 1568243657, + "temp": 74.5, + "ts": 1568174460, + "uv": 6.74066, + "valid_date": "2019-09-11", + "vis": 15, + "weather": { + "code": 803, + "description": "Broken clouds", + "icon": "c03d" + }, + "wind_cdir": "SSW", + "wind_cdir_full": "south-southwest", + "wind_dir": 198, + "wind_gust_spd": 29.5, + "wind_spd": 8.9 + } + ] +} \ No newline at end of file diff --git a/datapacks/DataRaptor/samplePostXformWeather/samplePostXformWeather_Mappings.json b/datapacks/DataRaptor/samplePostXformWeather/samplePostXformWeather_Mappings.json new file mode 100644 index 0000000..183b24a --- /dev/null +++ b/datapacks/DataRaptor/samplePostXformWeather/samplePostXformWeather_Mappings.json @@ -0,0 +1,190 @@ +[ + { + "%vlocity_namespace%__DomainObjectAPIName__c": "Formula", + "%vlocity_namespace%__DomainObjectCreationOrder__c": 0, + "%vlocity_namespace%__DomainObjectFieldAPIName__c": "Formula", + "%vlocity_namespace%__FormulaOrder__c": 1, + "%vlocity_namespace%__FormulaResultPath__c": "Current:weather:icon", + "%vlocity_namespace%__Formula__c": "CONCAT(\"www.weatherbit.io/static/img/icons/\",%Current:weather:icon%,\".png\")", + "%vlocity_namespace%__GlobalKey__c": "4c423caa-8e9a-022e-2d0a-e5aec4143c73", + "%vlocity_namespace%__IsDisabled__c": false, + "%vlocity_namespace%__IsRequiredForUpsert__c": false, + "%vlocity_namespace%__MapId__c": "SAMPLEPostXformWeatherCustoma173i000000ZtYtAAKItem0", + "%vlocity_namespace%__OMplusSyncEnabled__c": false, + "%vlocity_namespace%__UpsertKey__c": false, + "Name": "samplePostXformWeather", + "VlocityDataPackType": "SObject", + "VlocityRecordSObjectType": "%vlocity_namespace%__DRMapItem__c" + }, + { + "%vlocity_namespace%__DomainObjectAPIName__c": "Formula", + "%vlocity_namespace%__DomainObjectCreationOrder__c": 0, + "%vlocity_namespace%__DomainObjectFieldAPIName__c": "Formula", + "%vlocity_namespace%__FormulaOrder__c": 2, + "%vlocity_namespace%__FormulaResultPath__c": "Current:city_name", + "%vlocity_namespace%__Formula__c": "CONCAT(%Current:city_name%,\", \",%Current:state_code%)", + "%vlocity_namespace%__GlobalKey__c": "5c1c0a6b-aad2-bd09-8f02-a87fabdb5a02", + "%vlocity_namespace%__IsDisabled__c": false, + "%vlocity_namespace%__IsRequiredForUpsert__c": false, + "%vlocity_namespace%__MapId__c": "SAMPLEPostXformWeatherCustoma173i000000ZtYtAAKItem2", + "%vlocity_namespace%__OMplusSyncEnabled__c": false, + "%vlocity_namespace%__UpsertKey__c": false, + "Name": "samplePostXformWeather", + "VlocityDataPackType": "SObject", + "VlocityRecordSObjectType": "%vlocity_namespace%__DRMapItem__c" + }, + { + "%vlocity_namespace%__DomainObjectAPIName__c": "Formula", + "%vlocity_namespace%__DomainObjectCreationOrder__c": 0, + "%vlocity_namespace%__DomainObjectFieldAPIName__c": "Formula", + "%vlocity_namespace%__FormulaOrder__c": 3, + "%vlocity_namespace%__FormulaResultPath__c": "ForecastIcon", + "%vlocity_namespace%__Formula__c": "CONCAT(\"www.weatherbit.io/static/img/icons/\",%Forecast|2:weather:icon%,\".png\")", + "%vlocity_namespace%__GlobalKey__c": "d10b6651-f1a5-00b8-938d-6bc967e4b751", + "%vlocity_namespace%__IsDisabled__c": false, + "%vlocity_namespace%__IsRequiredForUpsert__c": false, + "%vlocity_namespace%__MapId__c": "SAMPLEPostXformWeatherCustoma173i000000ZtYtAAKItem3", + "%vlocity_namespace%__OMplusSyncEnabled__c": false, + "%vlocity_namespace%__UpsertKey__c": false, + "Name": "samplePostXformWeather", + "VlocityDataPackType": "SObject", + "VlocityRecordSObjectType": "%vlocity_namespace%__DRMapItem__c" + }, + { + "%vlocity_namespace%__DomainObjectAPIName__c": "Formula", + "%vlocity_namespace%__DomainObjectCreationOrder__c": 0, + "%vlocity_namespace%__DomainObjectFieldAPIName__c": "Formula", + "%vlocity_namespace%__FormulaOrder__c": 4, + "%vlocity_namespace%__FormulaResultPath__c": "Forecast:max_temp", + "%vlocity_namespace%__Formula__c": "CONCAT(%Forecast:max_temp%,\"/\",%Forecast:min_temp%)", + "%vlocity_namespace%__GlobalKey__c": "2c22d3f4-0d5d-d6b3-d148-ac0b645e4a17", + "%vlocity_namespace%__IsDisabled__c": false, + "%vlocity_namespace%__IsRequiredForUpsert__c": false, + "%vlocity_namespace%__MapId__c": "SAMPLEPostXformWeatherCustoma173i000000ZtYtAAKItem1", + "%vlocity_namespace%__OMplusSyncEnabled__c": false, + "%vlocity_namespace%__UpsertKey__c": false, + "Name": "samplePostXformWeather", + "VlocityDataPackType": "SObject", + "VlocityRecordSObjectType": "%vlocity_namespace%__DRMapItem__c" + }, + { + "%vlocity_namespace%__DomainObjectAPIName__c": "json", + "%vlocity_namespace%__DomainObjectCreationOrder__c": 1, + "%vlocity_namespace%__DomainObjectFieldAPIName__c": "Current:CityState", + "%vlocity_namespace%__GlobalKey__c": "62c8cb5d-2240-6279-7774-1e054b84ba2b", + "%vlocity_namespace%__InterfaceFieldAPIName__c": "Current:city_name", + "%vlocity_namespace%__IsDisabled__c": false, + "%vlocity_namespace%__IsRequiredForUpsert__c": false, + "%vlocity_namespace%__MapId__c": "SAMPLEPostXformWeatherCustoma173i000000ZtYtAAKItem4", + "%vlocity_namespace%__OMplusSyncEnabled__c": false, + "%vlocity_namespace%__UpsertKey__c": false, + "Name": "samplePostXformWeather", + "VlocityDataPackType": "SObject", + "VlocityRecordSObjectType": "%vlocity_namespace%__DRMapItem__c" + }, + { + "%vlocity_namespace%__DomainObjectAPIName__c": "json", + "%vlocity_namespace%__DomainObjectCreationOrder__c": 1, + "%vlocity_namespace%__DomainObjectFieldAPIName__c": "Current:Condition", + "%vlocity_namespace%__GlobalKey__c": "0b2ade66-f0b1-e539-d23c-f72e62db56e2", + "%vlocity_namespace%__InterfaceFieldAPIName__c": "Current:weather:description", + "%vlocity_namespace%__IsDisabled__c": false, + "%vlocity_namespace%__IsRequiredForUpsert__c": false, + "%vlocity_namespace%__MapId__c": "SAMPLEPostXformWeatherCustoma173i000000ZtYtAAKItem6", + "%vlocity_namespace%__OMplusSyncEnabled__c": false, + "%vlocity_namespace%__UpsertKey__c": false, + "Name": "samplePostXformWeather", + "VlocityDataPackType": "SObject", + "VlocityRecordSObjectType": "%vlocity_namespace%__DRMapItem__c" + }, + { + "%vlocity_namespace%__DomainObjectAPIName__c": "json", + "%vlocity_namespace%__DomainObjectCreationOrder__c": 1, + "%vlocity_namespace%__DomainObjectFieldAPIName__c": "Current:TempF", + "%vlocity_namespace%__GlobalKey__c": "77fea298-6763-d6d5-e2d0-6f6a4061afa2", + "%vlocity_namespace%__InterfaceFieldAPIName__c": "Current:temp", + "%vlocity_namespace%__IsDisabled__c": false, + "%vlocity_namespace%__IsRequiredForUpsert__c": false, + "%vlocity_namespace%__MapId__c": "SAMPLEPostXformWeatherCustoma173i000000ZtYtAAKItem5", + "%vlocity_namespace%__OMplusSyncEnabled__c": false, + "%vlocity_namespace%__UpsertKey__c": false, + "Name": "samplePostXformWeather", + "VlocityDataPackType": "SObject", + "VlocityRecordSObjectType": "%vlocity_namespace%__DRMapItem__c" + }, + { + "%vlocity_namespace%__DomainObjectAPIName__c": "json", + "%vlocity_namespace%__DomainObjectCreationOrder__c": 1, + "%vlocity_namespace%__DomainObjectFieldAPIName__c": "CurrentIcon", + "%vlocity_namespace%__GlobalKey__c": "b86d32db-9b3b-7089-b85b-4f844d29c955", + "%vlocity_namespace%__InterfaceFieldAPIName__c": "Current:weather:icon", + "%vlocity_namespace%__IsDisabled__c": false, + "%vlocity_namespace%__IsRequiredForUpsert__c": false, + "%vlocity_namespace%__MapId__c": "SAMPLEPostXformWeatherCustoma173i000000ZtYtAAKItem7", + "%vlocity_namespace%__OMplusSyncEnabled__c": false, + "%vlocity_namespace%__UpsertKey__c": false, + "Name": "samplePostXformWeather", + "VlocityDataPackType": "SObject", + "VlocityRecordSObjectType": "%vlocity_namespace%__DRMapItem__c" + }, + { + "%vlocity_namespace%__DomainObjectAPIName__c": "json", + "%vlocity_namespace%__DomainObjectCreationOrder__c": 1, + "%vlocity_namespace%__DomainObjectFieldAPIName__c": "Forecast:Condition", + "%vlocity_namespace%__GlobalKey__c": "c698045d-54fa-d229-361d-198c16c5a298", + "%vlocity_namespace%__InterfaceFieldAPIName__c": "Forecast:weather:description", + "%vlocity_namespace%__IsDisabled__c": false, + "%vlocity_namespace%__IsRequiredForUpsert__c": false, + "%vlocity_namespace%__MapId__c": "SAMPLEPostXformWeatherCustoma173i000000ZtYtAAKItem10", + "%vlocity_namespace%__OMplusSyncEnabled__c": false, + "%vlocity_namespace%__UpsertKey__c": false, + "Name": "samplePostXformWeather", + "VlocityDataPackType": "SObject", + "VlocityRecordSObjectType": "%vlocity_namespace%__DRMapItem__c" + }, + { + "%vlocity_namespace%__DomainObjectAPIName__c": "json", + "%vlocity_namespace%__DomainObjectCreationOrder__c": 1, + "%vlocity_namespace%__DomainObjectFieldAPIName__c": "Forecast:Date", + "%vlocity_namespace%__GlobalKey__c": "cdc27d46-d2d8-2764-d300-54d31dbdf813", + "%vlocity_namespace%__InterfaceFieldAPIName__c": "Forecast:valid_date", + "%vlocity_namespace%__IsDisabled__c": false, + "%vlocity_namespace%__IsRequiredForUpsert__c": false, + "%vlocity_namespace%__MapId__c": "SAMPLEPostXformWeatherCustoma173i000000ZtYtAAKItem9", + "%vlocity_namespace%__OMplusSyncEnabled__c": false, + "%vlocity_namespace%__UpsertKey__c": false, + "Name": "samplePostXformWeather", + "VlocityDataPackType": "SObject", + "VlocityRecordSObjectType": "%vlocity_namespace%__DRMapItem__c" + }, + { + "%vlocity_namespace%__DomainObjectAPIName__c": "json", + "%vlocity_namespace%__DomainObjectCreationOrder__c": 1, + "%vlocity_namespace%__DomainObjectFieldAPIName__c": "Forecast:HiLoTempF", + "%vlocity_namespace%__GlobalKey__c": "a15f88f9-9cc0-1f44-5a96-9e9256cc9059", + "%vlocity_namespace%__InterfaceFieldAPIName__c": "Forecast:max_temp", + "%vlocity_namespace%__IsDisabled__c": false, + "%vlocity_namespace%__IsRequiredForUpsert__c": false, + "%vlocity_namespace%__MapId__c": "SAMPLEPostXformWeatherCustoma173i000000ZtYtAAKItem8", + "%vlocity_namespace%__OMplusSyncEnabled__c": false, + "%vlocity_namespace%__UpsertKey__c": false, + "Name": "samplePostXformWeather", + "VlocityDataPackType": "SObject", + "VlocityRecordSObjectType": "%vlocity_namespace%__DRMapItem__c" + }, + { + "%vlocity_namespace%__DomainObjectAPIName__c": "json", + "%vlocity_namespace%__DomainObjectCreationOrder__c": 1, + "%vlocity_namespace%__DomainObjectFieldAPIName__c": "ForecastIcon", + "%vlocity_namespace%__GlobalKey__c": "11c97854-e099-1789-33b9-f2c3a2876e5b", + "%vlocity_namespace%__InterfaceFieldAPIName__c": "ForecastIcon", + "%vlocity_namespace%__IsDisabled__c": false, + "%vlocity_namespace%__IsRequiredForUpsert__c": false, + "%vlocity_namespace%__MapId__c": "SAMPLEPostXformWeatherCustoma173i000000ZtYtAAKItem11", + "%vlocity_namespace%__OMplusSyncEnabled__c": false, + "%vlocity_namespace%__UpsertKey__c": false, + "Name": "samplePostXformWeather", + "VlocityDataPackType": "SObject", + "VlocityRecordSObjectType": "%vlocity_namespace%__DRMapItem__c" + } +] \ No newline at end of file diff --git a/datapacks/DataRaptor/samplePostXformWeather/samplePostXformWeather_SampleInputJson.json b/datapacks/DataRaptor/samplePostXformWeather/samplePostXformWeather_SampleInputJson.json new file mode 100644 index 0000000..67cd1d7 --- /dev/null +++ b/datapacks/DataRaptor/samplePostXformWeather/samplePostXformWeather_SampleInputJson.json @@ -0,0 +1,131 @@ +{ + "Current": [ + { + "app_temp": 73.7, + "aqi": 37, + "city_name": "Schenectady", + "clouds": 45, + "country_code": "US", + "datetime": "2019-09-10:22", + "dewpt": 62.1, + "dhi": 59.71, + "dni": 535.73, + "elev_angle": 12.66, + "ghi": 169.35, + "h_angle": 64.3, + "last_ob_time": "2019-09-10T22:29:00", + "lat": 42.8142, + "lon": -73.9396, + "ob_time": "2019-09-10 22:29", + "pod": "d", + "precip": 0, + "pres": 1009.5, + "rh": 68, + "slp": 1023, + "snow": 0, + "solar_rad": 160.4, + "state_code": "NY", + "station": "KSCH", + "sunrise": "10:30", + "sunset": "23:15", + "temp": 73.4, + "timezone": "America/New_York", + "ts": 1568154540, + "uv": 2.17892, + "vis": 3.1, + "weather": { + "code": "802", + "description": "Scattered clouds", + "icon": "c02d" + }, + "wind_cdir": "S", + "wind_cdir_full": "south", + "wind_dir": 170, + "wind_spd": 6.9 + } + ], + "Forecast": [ + { + "app_max_temp": 77.1, + "app_min_temp": 69.3, + "clouds": 43, + "clouds_hi": 12, + "clouds_low": 40, + "clouds_mid": 0, + "datetime": "2019-09-10", + "dewpt": 66.9, + "max_dhi": null, + "max_temp": 76.5, + "min_temp": 68.3, + "moon_phase": 0.970024, + "moonrise_ts": 1568152279, + "moonset_ts": 1568105730, + "ozone": 276.197, + "pop": 20, + "precip": 0.005, + "pres": 1024.82, + "rh": 88, + "slp": 1025.64, + "snow": 0, + "snow_depth": 0, + "sunrise_ts": 1568111801, + "sunset_ts": 1568157356, + "temp": 71.1, + "ts": 1568088060, + "uv": 3.82131, + "valid_date": "2019-09-10", + "vis": 15, + "weather": { + "code": 803, + "description": "Broken clouds", + "icon": "c03d" + }, + "wind_cdir": "SSE", + "wind_cdir_full": "south-southeast", + "wind_dir": 153, + "wind_gust_spd": 26.6, + "wind_spd": 9 + }, + { + "app_max_temp": 88.8, + "app_min_temp": 68.1, + "clouds": 59, + "clouds_hi": 36, + "clouds_low": 36, + "clouds_mid": 17, + "datetime": "2019-09-11", + "dewpt": 67.8, + "max_dhi": null, + "max_temp": 84.6, + "min_temp": 66.9, + "moon_phase": 0.993411, + "moonrise_ts": 1568240745, + "moonset_ts": 1568195609, + "ozone": 276.717, + "pop": 0, + "precip": 0, + "pres": 1018.9, + "rh": 82, + "slp": 1019.72, + "snow": 0, + "snow_depth": 0, + "sunrise_ts": 1568198257, + "sunset_ts": 1568243657, + "temp": 74.5, + "ts": 1568174460, + "uv": 6.74066, + "valid_date": "2019-09-11", + "vis": 15, + "weather": { + "code": 803, + "description": "Broken clouds", + "icon": "c03d" + }, + "wind_cdir": "SSW", + "wind_cdir_full": "south-southwest", + "wind_dir": 198, + "wind_gust_spd": 29.5, + "wind_spd": 8.9 + } + ] +} \ No newline at end of file diff --git a/datapacks/DataRaptor/samplePostXformWeather/samplePostXformWeather_TargetOutJson.json b/datapacks/DataRaptor/samplePostXformWeather/samplePostXformWeather_TargetOutJson.json new file mode 100644 index 0000000..0fede55 --- /dev/null +++ b/datapacks/DataRaptor/samplePostXformWeather/samplePostXformWeather_TargetOutJson.json @@ -0,0 +1,42 @@ +{ + "Current": { + "CityState": "Schenectady, New York", + "Condition": "Heavy Snow", + "TempC": -2.5, + "TempF": 27.5 + }, + "CurrentIcon": "www.weatherbit.io/static/img/icons/s03d.png", + "Forecast": [ + { + "Condition": "Heavy Snow", + "Date": "2019-01-26", + "HiLoTempC": "-0.8/-5.7", + "HiLoTempF": "30.5/21.7" + }, + { + "Condition": "Light Snow", + "Date": "2019-01-27", + "HiLoTempC": "-0.2/-5.1", + "HiLoTempF": "31.7/22.8" + }, + { + "Condition": "Flurries", + "Date": "2019-01-28", + "HiLoTempC": "-0.6/-7.8", + "HiLoTempF": "31.0/18.7" + }, + { + "Condition": "Clear sky", + "Date": "2019-01-29", + "HiLoTempC": "-3.7/-7.7", + "HiLoTempF": "25.3/18.1" + }, + { + "Condition": "Clear sky", + "Date": "2019-01-30", + "HiLoTempC": "-4.3/-6.8", + "HiLoTempF": "24.2/19.7" + } + ], + "ForecastIcon": "www.weatherbit.io/static/img/icons/s01d.png" +} \ No newline at end of file diff --git a/datapacks/IntegrationProcedure/sample_getWeatherForecast/sample_getWeatherForecast_DataPack.json b/datapacks/IntegrationProcedure/sample_getWeatherForecast/sample_getWeatherForecast_DataPack.json new file mode 100644 index 0000000..a8ee36d --- /dev/null +++ b/datapacks/IntegrationProcedure/sample_getWeatherForecast/sample_getWeatherForecast_DataPack.json @@ -0,0 +1,27 @@ +{ + "%vlocity_namespace%__CustomJavaScript__c": "sample_getWeatherForecast_SampleInput.json", + "%vlocity_namespace%__DisableMetadataCache__c": false, + "%vlocity_namespace%__ElementTypeToHTMLTemplateList__c": "{\"ElementTypeToHTMLTemplateList\":[]}", + "%vlocity_namespace%__Element__c": [ + "sample_getWeatherForecast_Element_DRGetAccountInfo.json", + "sample_getWeatherForecast_Element_SVWeather.json", + "sample_getWeatherForecast_Element_HTTPGetCurrentWeather.json", + "sample_getWeatherForecast_Element_HTTPGetForecastWeather.json", + "sample_getWeatherForecast_Element_DRXformWeather.json", + "sample_getWeatherForecast_Element_ResponseAction.json" + ], + "%vlocity_namespace%__IsLwcEnabled__c": false, + "%vlocity_namespace%__IsProcedure__c": true, + "%vlocity_namespace%__IsReusable__c": false, + "%vlocity_namespace%__IsTest__c": false, + "%vlocity_namespace%__Language__c": "Procedure", + "%vlocity_namespace%__OmniProcessType__c": "Integration Procedure", + "%vlocity_namespace%__ProcedureKey__c": "sample_getWeatherForecast", + "%vlocity_namespace%__PropertySet__c": "sample_getWeatherForecast_PropertySet.json", + "%vlocity_namespace%__SubType__c": "getWeatherForecast", + "%vlocity_namespace%__Type__c": "sample", + "Name": "Sample Get Weather and Forecast Data", + "VlocityDataPackType": "SObject", + "VlocityRecordSObjectType": "%vlocity_namespace%__OmniScript__c", + "VlocityRecordSourceKey": "%vlocity_namespace%__OmniScript__c/sample/getWeatherForecast/Procedure" +} \ No newline at end of file diff --git a/datapacks/IntegrationProcedure/sample_getWeatherForecast/sample_getWeatherForecast_Element_DRGetAccountInfo.json b/datapacks/IntegrationProcedure/sample_getWeatherForecast/sample_getWeatherForecast_Element_DRGetAccountInfo.json new file mode 100644 index 0000000..bf0917f --- /dev/null +++ b/datapacks/IntegrationProcedure/sample_getWeatherForecast/sample_getWeatherForecast_Element_DRGetAccountInfo.json @@ -0,0 +1,47 @@ +{ + "%vlocity_namespace%__Active__c": true, + "%vlocity_namespace%__OmniScriptId__c": { + "Name": "Sample Get Weather and Forecast Data", + "VlocityDataPackType": "VlocityMatchingKeyObject", + "VlocityMatchingRecordSourceKey": "%vlocity_namespace%__OmniScript__c/sample/getWeatherForecast/Procedure", + "VlocityRecordSObjectType": "%vlocity_namespace%__OmniScript__c" + }, + "%vlocity_namespace%__PropertySet__c": { + "actionMessage": "", + "additionalInput": { + }, + "additionalOutput": { + }, + "bundle": "sampleGetAccountDetailsDRExtract", + "chainOnStep": false, + "dataRaptor Input Parameters": [ + { + "element": "AccountId", + "inputParam": "AccountId" + } + ], + "disOnTplt": false, + "executionConditionalFormula": "", + "failOnStepError": true, + "failureConditionalFormula": "", + "failureResponse": { + }, + "ignoreCache": false, + "label": "DataRaptorExtractAction1", + "responseJSONNode": "", + "responseJSONPath": "", + "returnOnlyAdditionalOutput": false, + "returnOnlyFailureResponse": false, + "sendJSONNode": "", + "sendJSONPath": "", + "sendOnlyAdditionalInput": false, + "show": null, + "useFormulas": true + }, + "%vlocity_namespace%__ReusableOmniScript__c": false, + "%vlocity_namespace%__Type__c": "DataRaptor Extract Action", + "Name": "DRGetAccountInfo", + "VlocityDataPackType": "SObject", + "VlocityRecordSObjectType": "%vlocity_namespace%__Element__c", + "VlocityRecordSourceKey": "%vlocity_namespace%__Element__c/%vlocity_namespace%__OmniScript__c/sample/getWeatherForecast/Procedure/DRGetAccountInfo" +} \ No newline at end of file diff --git a/datapacks/IntegrationProcedure/sample_getWeatherForecast/sample_getWeatherForecast_Element_DRXformWeather.json b/datapacks/IntegrationProcedure/sample_getWeatherForecast/sample_getWeatherForecast_Element_DRXformWeather.json new file mode 100644 index 0000000..30d040a --- /dev/null +++ b/datapacks/IntegrationProcedure/sample_getWeatherForecast/sample_getWeatherForecast_Element_DRXformWeather.json @@ -0,0 +1,43 @@ +{ + "%vlocity_namespace%__Active__c": true, + "%vlocity_namespace%__OmniScriptId__c": { + "Name": "Sample Get Weather and Forecast Data", + "VlocityDataPackType": "VlocityMatchingKeyObject", + "VlocityMatchingRecordSourceKey": "%vlocity_namespace%__OmniScript__c/sample/getWeatherForecast/Procedure", + "VlocityRecordSObjectType": "%vlocity_namespace%__OmniScript__c" + }, + "%vlocity_namespace%__PropertySet__c": { + "actionMessage": "", + "additionalInput": { + "Current": "%HTTPGetCurrentWeather%", + "Forecast": "%HTTPGetForecastWeather%" + }, + "additionalOutput": { + }, + "bundle": "samplePostXformWeather", + "chainOnStep": false, + "disOnTplt": false, + "executionConditionalFormula": "", + "failOnStepError": true, + "failureConditionalFormula": "", + "failureResponse": { + }, + "ignoreCache": false, + "label": "DataRaptorTransformAction1", + "responseJSONNode": "", + "responseJSONPath": "", + "returnOnlyAdditionalOutput": false, + "returnOnlyFailureResponse": false, + "sendJSONNode": "", + "sendJSONPath": "", + "sendOnlyAdditionalInput": true, + "show": null, + "useFormulas": true + }, + "%vlocity_namespace%__ReusableOmniScript__c": false, + "%vlocity_namespace%__Type__c": "DataRaptor Transform Action", + "Name": "DRXformWeather", + "VlocityDataPackType": "SObject", + "VlocityRecordSObjectType": "%vlocity_namespace%__Element__c", + "VlocityRecordSourceKey": "%vlocity_namespace%__Element__c/%vlocity_namespace%__OmniScript__c/sample/getWeatherForecast/Procedure/DRXformWeather" +} \ No newline at end of file diff --git a/datapacks/IntegrationProcedure/sample_getWeatherForecast/sample_getWeatherForecast_Element_HTTPGetCurrentWeather.json b/datapacks/IntegrationProcedure/sample_getWeatherForecast/sample_getWeatherForecast_Element_HTTPGetCurrentWeather.json new file mode 100644 index 0000000..93d5936 --- /dev/null +++ b/datapacks/IntegrationProcedure/sample_getWeatherForecast/sample_getWeatherForecast_Element_HTTPGetCurrentWeather.json @@ -0,0 +1,57 @@ +{ + "%vlocity_namespace%__Active__c": true, + "%vlocity_namespace%__OmniScriptId__c": { + "Name": "Sample Get Weather and Forecast Data", + "VlocityDataPackType": "VlocityMatchingKeyObject", + "VlocityMatchingRecordSourceKey": "%vlocity_namespace%__OmniScript__c/sample/getWeatherForecast/Procedure", + "VlocityRecordSObjectType": "%vlocity_namespace%__OmniScript__c" + }, + "%vlocity_namespace%__PropertySet__c": { + "actionMessage": "", + "additionalInput": { + }, + "additionalOutput": { + }, + "chainOnStep": false, + "disOnTplt": false, + "executionConditionalFormula": "", + "failOnStepError": true, + "failureConditionalFormula": "", + "failureResponse": { + }, + "label": "HTTPAction1", + "namedCredential": "", + "postActionLogging": "", + "preActionLogging": "%endpoint%", + "responseJSONNode": "", + "responseJSONPath": "data", + "restMethod": "GET", + "restOptions": { + "clientCertificateName": "", + "headers": { + }, + "isCompressed": false, + "params": { + }, + "sendBody": true, + "timeout": 0, + "xmlEscapeResponse": false + }, + "restPath": "https://api.weatherbit.io/v2.0/current?postal_code=%DRGetAccountInfo:AccountPostalCode%&country=%DRGetAccountInfo:AccountCountry%&units=I&key=%SVWeather:APIKey%", + "retryCount": 0, + "returnOnlyAdditionalOutput": false, + "returnOnlyFailureResponse": false, + "sendJSONNode": "", + "sendJSONPath": "", + "sendOnlyAdditionalInput": false, + "show": null, + "type": "Integration", + "useFormulas": true + }, + "%vlocity_namespace%__ReusableOmniScript__c": false, + "%vlocity_namespace%__Type__c": "Rest Action", + "Name": "HTTPGetCurrentWeather", + "VlocityDataPackType": "SObject", + "VlocityRecordSObjectType": "%vlocity_namespace%__Element__c", + "VlocityRecordSourceKey": "%vlocity_namespace%__Element__c/%vlocity_namespace%__OmniScript__c/sample/getWeatherForecast/Procedure/HTTPGetCurrentWeather" +} \ No newline at end of file diff --git a/datapacks/IntegrationProcedure/sample_getWeatherForecast/sample_getWeatherForecast_Element_HTTPGetForecastWeather.json b/datapacks/IntegrationProcedure/sample_getWeatherForecast/sample_getWeatherForecast_Element_HTTPGetForecastWeather.json new file mode 100644 index 0000000..300ca2b --- /dev/null +++ b/datapacks/IntegrationProcedure/sample_getWeatherForecast/sample_getWeatherForecast_Element_HTTPGetForecastWeather.json @@ -0,0 +1,58 @@ +{ + "%vlocity_namespace%__Active__c": true, + "%vlocity_namespace%__OmniScriptId__c": { + "Name": "Sample Get Weather and Forecast Data", + "VlocityDataPackType": "VlocityMatchingKeyObject", + "VlocityMatchingRecordSourceKey": "%vlocity_namespace%__OmniScript__c/sample/getWeatherForecast/Procedure", + "VlocityRecordSObjectType": "%vlocity_namespace%__OmniScript__c" + }, + "%vlocity_namespace%__PropertySet__c": { + "actionMessage": "", + "additionalInput": { + "days": "%Days%" + }, + "additionalOutput": { + }, + "chainOnStep": false, + "disOnTplt": false, + "executionConditionalFormula": "", + "failOnStepError": true, + "failureConditionalFormula": "", + "failureResponse": { + }, + "label": "HTTPAction1", + "namedCredential": "", + "postActionLogging": "", + "preActionLogging": "%endpoint%", + "responseJSONNode": "", + "responseJSONPath": "data", + "restMethod": "GET", + "restOptions": { + "clientCertificateName": "", + "headers": { + }, + "isCompressed": false, + "params": { + }, + "sendBody": true, + "timeout": 0, + "xmlEscapeResponse": false + }, + "restPath": "https://api.weatherbit.io/v2.0/forecast/daily?postal_code=%DRGetAccountInfo:AccountPostalCode%&country=%DRGetAccountInfo:AccountCountry%&days=%Days%&units=I&key=%SVWeather:APIKey%", + "retryCount": 0, + "returnOnlyAdditionalOutput": false, + "returnOnlyFailureResponse": false, + "sendJSONNode": "", + "sendJSONPath": "", + "sendOnlyAdditionalInput": false, + "show": null, + "type": "Integration", + "useFormulas": true + }, + "%vlocity_namespace%__ReusableOmniScript__c": false, + "%vlocity_namespace%__Type__c": "Rest Action", + "Name": "HTTPGetForecastWeather", + "VlocityDataPackType": "SObject", + "VlocityRecordSObjectType": "%vlocity_namespace%__Element__c", + "VlocityRecordSourceKey": "%vlocity_namespace%__Element__c/%vlocity_namespace%__OmniScript__c/sample/getWeatherForecast/Procedure/HTTPGetForecastWeather" +} \ No newline at end of file diff --git a/datapacks/IntegrationProcedure/sample_getWeatherForecast/sample_getWeatherForecast_Element_ResponseAction.json b/datapacks/IntegrationProcedure/sample_getWeatherForecast/sample_getWeatherForecast_Element_ResponseAction.json new file mode 100644 index 0000000..315f7cd --- /dev/null +++ b/datapacks/IntegrationProcedure/sample_getWeatherForecast/sample_getWeatherForecast_Element_ResponseAction.json @@ -0,0 +1,36 @@ +{ + "%vlocity_namespace%__Active__c": true, + "%vlocity_namespace%__InternalNotes__c": "CONCAT(%Current:city_name%,\", \",%Current:state_code%)\n\nCONCAT(\"https://www.weatherbit.io/static/img/icons/\",%Current:weather:icon%,\".png\")", + "%vlocity_namespace%__OmniScriptId__c": { + "Name": "Sample Get Weather and Forecast Data", + "VlocityDataPackType": "VlocityMatchingKeyObject", + "VlocityMatchingRecordSourceKey": "%vlocity_namespace%__OmniScript__c/sample/getWeatherForecast/Procedure", + "VlocityRecordSObjectType": "%vlocity_namespace%__OmniScript__c" + }, + "%vlocity_namespace%__PropertySet__c": { + "additionalOutput": { + }, + "disOnTplt": false, + "executionConditionalFormula": "", + "label": "ResponseAction1", + "responseDefaultData": { + }, + "responseFormat": "JSON", + "responseJSONNode": "", + "responseJSONPath": "", + "returnFullDataJSON": false, + "returnOnlyAdditionalOutput": false, + "sendJSONNode": "", + "sendJSONPath": "DRXformWeather", + "show": null, + "useFormulas": true, + "vlcResponseHeaders": { + } + }, + "%vlocity_namespace%__ReusableOmniScript__c": false, + "%vlocity_namespace%__Type__c": "Response Action", + "Name": "ResponseAction", + "VlocityDataPackType": "SObject", + "VlocityRecordSObjectType": "%vlocity_namespace%__Element__c", + "VlocityRecordSourceKey": "%vlocity_namespace%__Element__c/%vlocity_namespace%__OmniScript__c/sample/getWeatherForecast/Procedure/ResponseAction" +} \ No newline at end of file diff --git a/datapacks/IntegrationProcedure/sample_getWeatherForecast/sample_getWeatherForecast_Element_SVWeather.json b/datapacks/IntegrationProcedure/sample_getWeatherForecast/sample_getWeatherForecast_Element_SVWeather.json new file mode 100644 index 0000000..3a95c15 --- /dev/null +++ b/datapacks/IntegrationProcedure/sample_getWeatherForecast/sample_getWeatherForecast_Element_SVWeather.json @@ -0,0 +1,32 @@ +{ + "%vlocity_namespace%__Active__c": true, + "%vlocity_namespace%__OmniScriptId__c": { + "Name": "Sample Get Weather and Forecast Data", + "VlocityDataPackType": "VlocityMatchingKeyObject", + "VlocityMatchingRecordSourceKey": "%vlocity_namespace%__OmniScript__c/sample/getWeatherForecast/Procedure", + "VlocityRecordSObjectType": "%vlocity_namespace%__OmniScript__c" + }, + "%vlocity_namespace%__PropertySet__c": { + "actionMessage": "", + "chainOnStep": false, + "disOnTplt": false, + "elementValueMap": { + "APIKey": "95b829f226744254832665973a0292b1" + }, + "executionConditionalFormula": "", + "failOnStepError": true, + "failureConditionalFormula": "", + "label": "SetValues1", + "responseJSONNode": "", + "responseJSONPath": "", + "sendJSONNode": "", + "sendJSONPath": "", + "show": null + }, + "%vlocity_namespace%__ReusableOmniScript__c": false, + "%vlocity_namespace%__Type__c": "Set Values", + "Name": "SVWeather", + "VlocityDataPackType": "SObject", + "VlocityRecordSObjectType": "%vlocity_namespace%__Element__c", + "VlocityRecordSourceKey": "%vlocity_namespace%__Element__c/%vlocity_namespace%__OmniScript__c/sample/getWeatherForecast/Procedure/SVWeather" +} \ No newline at end of file diff --git a/datapacks/IntegrationProcedure/sample_getWeatherForecast/sample_getWeatherForecast_ParentKeys.json b/datapacks/IntegrationProcedure/sample_getWeatherForecast/sample_getWeatherForecast_ParentKeys.json new file mode 100644 index 0000000..0c62349 --- /dev/null +++ b/datapacks/IntegrationProcedure/sample_getWeatherForecast/sample_getWeatherForecast_ParentKeys.json @@ -0,0 +1,4 @@ +[ + "DataRaptor/sampleGetAccountDetailsDRExtract", + "DataRaptor/samplePostXformWeather" +] \ No newline at end of file diff --git a/datapacks/IntegrationProcedure/sample_getWeatherForecast/sample_getWeatherForecast_PropertySet.json b/datapacks/IntegrationProcedure/sample_getWeatherForecast/sample_getWeatherForecast_PropertySet.json new file mode 100644 index 0000000..13c720a --- /dev/null +++ b/datapacks/IntegrationProcedure/sample_getWeatherForecast/sample_getWeatherForecast_PropertySet.json @@ -0,0 +1,31 @@ +{ + "additionalChainableResponse": { + }, + "chainableActualTimeLimit": null, + "chainableCpuLimit": 2000, + "chainableDMLRowsLimit": null, + "chainableDMLStatementsLimit": null, + "chainableHeapSizeLimit": null, + "chainableQueriesLimit": 50, + "chainableQueryRowsLimit": null, + "chainableSoslQueriesLimit": null, + "columnsPropertyMap": [ + ], + "description": "", + "includeAllActionsInResponse": false, + "labelPlural": "", + "labelSingular": "", + "linkToExternalObject": "", + "mockResponseMap": { + }, + "nameColumn": "", + "queueableChainableCpuLimit": 40000, + "queueableChainableHeapSizeLimit": 6, + "queueableChainableQueriesLimit": 120, + "relationshipFieldsMap": [ + ], + "rollbackOnError": false, + "trackingCustomData": { + }, + "ttlMinutes": 5 +} \ No newline at end of file diff --git a/datapacks/IntegrationProcedure/sample_getWeatherForecast/sample_getWeatherForecast_SampleInput.json b/datapacks/IntegrationProcedure/sample_getWeatherForecast/sample_getWeatherForecast_SampleInput.json new file mode 100644 index 0000000..4fad86f --- /dev/null +++ b/datapacks/IntegrationProcedure/sample_getWeatherForecast/sample_getWeatherForecast_SampleInput.json @@ -0,0 +1,4 @@ +{ + "AccountId": "0015f00000EPdwbAAD", + "Days": "5" +} \ No newline at end of file diff --git a/datapacks/VlocityCard/sampleWeather/sampleWeather.json b/datapacks/VlocityCard/sampleWeather/sampleWeather.json new file mode 100644 index 0000000..d4207d1 --- /dev/null +++ b/datapacks/VlocityCard/sampleWeather/sampleWeather.json @@ -0,0 +1,990 @@ +{ + "dataSource": { + "contextVariables": [ + { + "id": 2, + "name": "recordId", + "val": "0015f00000EPdwbAAD" + } + ], + "orderBy": { + "isReverse": false, + "name": "" + }, + "type": "IntegrationProcedures", + "value": { + "dsDelay": 0, + "inputMap": { + "AccountId": "{recordId}", + "Days": "5" + }, + "ipMethod": "team_getWeatherForecast", + "resultVar": "", + "vlocityAsync": false + } + }, + "enableLwc": true, + "isFlex": true, + "lwc": { + "DeveloperName": "cfSampleWeather_3_VU", + "Id": "0Rb5f000002PdiUCAS", + "ManageableState": "unmanaged", + "MasterLabel": "cfSampleWeather_3_VU", + "NamespacePrefix": "c" + }, + "states": [ + { + "actions": [ + ], + "childCards": [ + "sampleWeatherForecast" + ], + "components": { + "layer-0": { + "children": [ + { + "children": [ + { + "class": "slds-col ", + "element": "flexImg", + "elementLabel": "Weather Image-Image-0", + "key": "element_element_block_0_0_flexImg_0_0", + "name": "Image", + "parentElementKey": "element_block_0_0", + "property": { + "extraclass": "slds-align_absolute-center", + "record": "{record}", + "size": "large", + "stateImg": { + "alternativeText": "Image description", + "document": { + "Id": "0685f000002WE7CAAW", + "attachmentType": "ContentVersion", + "label": "weatherbannerAlert (Version:1)", + "title": "weatherbannerAlert", + "value": "/sfc/servlet.shepherd/version/download/0685f000002WE7CAAW" + }, + "imgsrc": "/sfc/servlet.shepherd/version/download/0685f000002WE7CAAW" + } + }, + "size": { + "default": "12", + "isResponsive": false + }, + "stateIndex": 0, + "styleObject": { + "sizeClass": "slds-size_12-of-12" + }, + "type": "element" + } + ], + "class": "slds-col ", + "element": "block", + "elementLabel": "Weather Image", + "name": "Block", + "property": { + "card": "{card}", + "collapsedByDefault": false, + "collapsible": false, + "label": "Block", + "record": "{record}" + }, + "size": { + "default": "12", + "isResponsive": false + }, + "stateIndex": 0, + "styleObject": { + "class": "slds-p-around_x-small", + "padding": [ + { + "size": "x-small", + "type": "around" + } + ], + "sizeClass": "slds-size_12-of-12" + }, + "type": "block", + "userUpdatedElementLabel": true + }, + { + "children": [ + { + "class": "slds-col ", + "element": "outputField", + "elementLabel": "Header CityState", + "key": "element_element_block_1_0_outputField_0_0", + "name": "Text", + "parentElementKey": "element_block_1_0", + "property": { + "card": "{card}", + "mergeField": "%3Cdiv%20class=%22slds-text-heading_large%20slds-text-align_center%22%3E%3Cspan%20style=%22color:%20#e03e2d;%22%3E%3Cstrong%3E%7BCityState%7D%3C/strong%3E%3C/span%3E%3C/div%3E", + "record": "{record}" + }, + "size": { + "default": "12", + "isResponsive": false + }, + "stateIndex": 0, + "styleObject": { + "background": { + "color": "", + "image": "", + "position": "", + "repeat": "", + "size": "" + }, + "border": { + "color": "", + "radius": "", + "style": "", + "type": "", + "width": "" + }, + "class": "slds-p-bottom_small ", + "container": { + "class": "" + }, + "elementStyleProperties": { + }, + "inlineStyle": "", + "margin": [ + ], + "padding": [ + { + "label": "bottom:small", + "size": "small", + "type": "bottom" + } + ], + "size": { + "default": "12", + "isResponsive": false + }, + "sizeClass": "slds-size_12-of-12 ", + "style": " : #ccc 1px solid; \n ", + "text": { + "align": "", + "color": "" + } + }, + "type": "text", + "userUpdatedElementLabel": true + }, + { + "class": "slds-col ", + "element": "outputField", + "elementLabel": "Weather Details-Text-0-clone-0", + "key": "element_element_block_1_0_outputField_1_0", + "name": "Text", + "parentElementKey": "element_block_1_0", + "property": { + "card": "{card}", + "mergeField": "%3Cdiv%20class=%22slds-text-title_caps%20slds-text-align_center%22%3E%3Cspan%20style=%22font-size:%2010pt;%20color:%20#34495e;%22%3ECondition%3C/span%3E%3C/div%3E%0A%3Cdiv%20class=%22slds-text-align_center%22%3E%3Cspan%20style=%22color:%20#e03e2d;%22%3E%3Cstrong%3E%3Cspan%20style=%22font-size:%2012pt;%22%3E%7BCondition%7D%3C/span%3E%3C/strong%3E%3C/span%3E%3C/div%3E", + "record": "{record}" + }, + "size": { + "default": "6", + "isResponsive": false + }, + "stateIndex": 0, + "styleObject": { + "background": { + "color": "", + "image": "", + "position": "", + "repeat": "", + "size": "" + }, + "border": { + "color": "", + "radius": "", + "style": "", + "type": "", + "width": "" + }, + "class": "slds-p-bottom_small ", + "container": { + "class": "" + }, + "elementStyleProperties": { + }, + "inlineStyle": "", + "margin": [ + ], + "padding": [ + { + "label": "bottom:small", + "size": "small", + "type": "bottom" + } + ], + "size": { + "default": "6", + "isResponsive": false + }, + "sizeClass": "slds-size_6-of-12 ", + "style": " : #ccc 1px solid; \n ", + "text": { + "align": "", + "color": "" + } + }, + "type": "text" + }, + { + "class": "slds-col ", + "element": "outputField", + "elementLabel": "Weather Details-Text-1-clone-0", + "key": "element_element_block_1_0_outputField_2_0", + "name": "Text", + "parentElementKey": "element_block_1_0", + "property": { + "card": "{card}", + "mergeField": "%3Cdiv%20class=%22slds-text-title_caps%20slds-text-align_center%22%3E%3Cspan%20style=%22font-size:%2010pt;%20color:%20#34495e;%22%3ETEMPERATURE%3C/span%3E%3C/div%3E%0A%3Cdiv%20class=%22slds-text-align_center%22%3E%3Cspan%20style=%22color:%20#e03e2d;%22%3E%3Cstrong%3E%3Cspan%20style=%22font-size:%2012pt;%22%3E%7BTempF%7D%20°F%3C/span%3E%3C/strong%3E%3C/span%3E%3C/div%3E", + "record": "{record}" + }, + "size": { + "default": "6", + "isResponsive": false + }, + "stateIndex": 0, + "styleObject": { + "background": { + "color": "", + "image": "", + "position": "", + "repeat": "", + "size": "" + }, + "border": { + "color": "", + "radius": "", + "style": "", + "type": "", + "width": "" + }, + "class": "slds-p-bottom_small ", + "container": { + "class": "" + }, + "elementStyleProperties": { + }, + "inlineStyle": "", + "margin": [ + ], + "padding": [ + { + "label": "bottom:small", + "size": "small", + "type": "bottom" + } + ], + "size": { + "default": "6", + "isResponsive": false + }, + "sizeClass": "slds-size_6-of-12 ", + "style": " : #ccc 1px solid; \n ", + "text": { + "align": "", + "color": "" + } + }, + "type": "text" + }, + { + "class": "slds-col ", + "element": "action", + "elementLabel": "Navigate Action", + "key": "element_element_block_1_0_action_3_0", + "name": "Action", + "parentElementKey": "element_block_1_0", + "property": { + "buttonVariant": "destructive", + "card": "{card}", + "contextId": "\\{AcccountId}", + "displayAsButton": true, + "iconColor": "#FFFFFF", + "record": "{record}", + "stateAction": { + "Web Page": { + "targetName": "https://weather.com" + }, + "displayName": "weather.com", + "id": "flex-action-1607973589218", + "openUrlIn": "New Tab/Window", + "targetType": "Web Page", + "type": "Custom", + "vlocityIcon": "action:web_link" + }, + "stateObj": "{record}" + }, + "size": { + "default": "6", + "isResponsive": false + }, + "stateIndex": 0, + "styleObject": { + "background": { + "color": "", + "image": "", + "position": "", + "repeat": "", + "size": "" + }, + "border": { + "color": "", + "radius": "", + "style": "", + "type": "", + "width": "" + }, + "class": "slds-text-align_right slds-p-top_small slds-m-right_x-small ", + "container": { + "class": "" + }, + "elementStyleProperties": { + "iconColor": "#FFFFFF" + }, + "inlineStyle": "", + "margin": [ + { + "label": "right:x-small", + "size": "x-small", + "type": "right" + } + ], + "padding": [ + { + "label": "top:small", + "size": "small", + "type": "top" + } + ], + "size": { + "default": "6", + "isResponsive": false + }, + "sizeClass": "slds-size_6-of-12 ", + "style": " : #ccc 1px solid; \n ", + "text": { + "align": "right", + "color": "" + } + }, + "type": "element", + "userUpdatedElementLabel": true + }, + { + "class": "slds-col ", + "element": "action", + "elementLabel": "Forecast", + "key": "element_element_block_1_0_action_4_0", + "name": "Action", + "property": { + "buttonVariant": "text-destructive", + "card": "{card}", + "contextId": "\\{AcccountId}", + "displayAsButton": true, + "iconColor": "#D02D2D", + "record": "{record}", + "stateAction": { + "cardName": "sampleWeatherForecast", + "cardNode": "", + "displayName": "Get 5-Day Forecast", + "flyoutLwc": "sampleWeatherForecast", + "flyoutType": "childCard", + "id": "flex-action-1608229988745", + "layoutType": "lightning", + "openFlyoutIn": "Modal", + "openUrlIn": "Current Window", + "type": "Flyout", + "vlocityIcon": "standard:forecasts" + }, + "stateObj": "{record}" + }, + "size": { + "default": "5", + "isResponsive": false + }, + "stateIndex": 0, + "styleObject": { + "background": { + "color": "", + "image": "", + "position": "", + "repeat": "", + "size": "" + }, + "border": { + "color": "", + "radius": "", + "style": "", + "type": "", + "width": "" + }, + "class": "slds-text-align_left slds-p-top_small slds-m-left_x-small ", + "container": { + "class": "" + }, + "elementStyleProperties": { + "iconColor": "#D02D2D" + }, + "inlineStyle": "", + "margin": [ + { + "label": "left:x-small", + "size": "x-small", + "type": "left" + } + ], + "padding": [ + { + "label": "top:small", + "size": "small", + "type": "top" + } + ], + "size": { + "default": "5", + "isResponsive": false + }, + "sizeClass": "slds-size_5-of-12 ", + "style": " : #ccc 1px solid; \n ", + "text": { + "align": "left", + "color": "" + } + }, + "type": "element", + "userUpdatedElementLabel": true + } + ], + "class": "slds-col ", + "element": "block", + "elementLabel": "Weather Details", + "name": "Block", + "property": { + "card": "{card}", + "collapsedByDefault": false, + "collapsible": false, + "label": "Block", + "record": "{record}" + }, + "size": { + "default": "12", + "isResponsive": false + }, + "stateIndex": 0, + "styleObject": { + "class": "slds-p-around_x-small", + "padding": [ + { + "size": "x-small", + "type": "around" + } + ], + "sizeClass": "slds-size_12-of-12" + }, + "type": "block", + "userUpdatedElementLabel": true + } + ] + } + }, + "conditions": { + "group": [ + { + "field": "Condition", + "id": "state-new-condition-0", + "operator": "==", + "type": "custom", + "value": "Heavy Snow" + } + ], + "id": "state-condition-object", + "isParent": true + }, + "definedActions": { + "actions": [ + ] + }, + "documents": [ + { + "Id": "0685f000002WE7CAAW", + "developerName": "weatherbannerAlert", + "type": "ContentVersion" + } + ], + "fields": [ + ], + "isSmartAction": false, + "name": "Alert", + "omniscripts": [ + ], + "smartAction": { + }, + "styleObject": { + "class": "slds-card slds-p-around_x-small slds-m-bottom_x-small", + "container": { + "class": "slds-card" + }, + "margin": [ + { + "size": "none", + "type": "around" + } + ], + "padding": [ + { + "size": "x-small", + "type": "around" + } + ], + "size": { + "default": "12", + "isResponsive": false + }, + "sizeClass": "slds-size_12-of-12" + } + }, + { + "actions": [ + ], + "childCards": [ + "sampleWeatherForecast" + ], + "components": { + "layer-0": { + "children": [ + { + "children": [ + { + "class": "slds-col ", + "element": "flexImg", + "elementLabel": "Weather Image-Image-0", + "key": "element_element_block_0_1_flexImg_0_1", + "name": "Image", + "parentElementKey": "element_block_0_1", + "property": { + "extraclass": "slds-align_absolute-center", + "record": "{record}", + "size": "large", + "stateImg": { + "alternativeText": "Image description", + "document": { + "Id": "0685f000002WE7BAAW", + "attachmentType": "ContentVersion", + "label": "weatherbannerActive (Version:1)", + "title": "weatherbannerActive", + "value": "/sfc/servlet.shepherd/version/download/0685f000002WE7BAAW" + }, + "imgsrc": "/sfc/servlet.shepherd/version/download/0685f000002WE7BAAW" + } + }, + "size": { + "default": "12", + "isResponsive": false + }, + "stateIndex": 1, + "styleObject": { + "sizeClass": "slds-size_12-of-12" + }, + "type": "element" + } + ], + "class": "slds-col ", + "element": "block", + "elementLabel": "Weather Image", + "name": "Block", + "property": { + "card": "{card}", + "collapsedByDefault": false, + "collapsible": false, + "label": "Block", + "record": "{record}" + }, + "size": { + "default": "12", + "isResponsive": false + }, + "stateIndex": 1, + "styleObject": { + "class": "slds-p-around_x-small", + "padding": [ + { + "size": "x-small", + "type": "around" + } + ], + "sizeClass": "slds-size_12-of-12" + }, + "type": "block", + "userUpdatedElementLabel": true + }, + { + "children": [ + { + "class": "slds-col ", + "element": "outputField", + "elementLabel": "Header CityState", + "key": "element_element_block_1_1_outputField_0_1", + "name": "Text", + "parentElementKey": "element_block_1_1", + "property": { + "card": "{card}", + "mergeField": "%3Cdiv%20class=%22slds-text-heading_large%20slds-text-align_center%22%3E%3Cspan%20style=%22color:%20#34495e;%22%3E%3Cstrong%3E%7BCityState%7D%3C/strong%3E%3C/span%3E%3C/div%3E", + "record": "{record}" + }, + "size": { + "default": "12", + "isResponsive": false + }, + "stateIndex": 1, + "styleObject": { + "background": { + "color": "", + "image": "", + "position": "", + "repeat": "", + "size": "" + }, + "border": { + "color": "", + "radius": "", + "style": "", + "type": "", + "width": "" + }, + "class": "slds-p-bottom_small ", + "container": { + "class": "" + }, + "elementStyleProperties": { + }, + "inlineStyle": "", + "margin": [ + ], + "padding": [ + { + "label": "bottom:small", + "size": "small", + "type": "bottom" + } + ], + "size": { + "default": "12", + "isResponsive": false + }, + "sizeClass": "slds-size_12-of-12 ", + "style": " : #ccc 1px solid; \n ", + "text": { + "align": "", + "color": "" + } + }, + "type": "text", + "userUpdatedElementLabel": true + }, + { + "class": "slds-col ", + "element": "outputField", + "elementLabel": "Weather Details-Text-0-clone-0", + "key": "element_element_block_1_1_outputField_1_1", + "name": "Text", + "parentElementKey": "element_block_1_1", + "property": { + "card": "{card}", + "mergeField": "%3Cdiv%20class=%22slds-text-title_caps%20slds-text-align_center%22%3E%3Cspan%20style=%22font-size:%2010pt;%20color:%20#34495e;%22%3ECondition%3C/span%3E%3C/div%3E%0A%3Cdiv%20class=%22slds-text-align_center%22%3E%3Cstrong%3E%3Cspan%20style=%22font-size:%2012pt;%20color:%20#34495e;%22%3E%7BCondition%7D%3C/span%3E%3C/strong%3E%3C/div%3E", + "record": "{record}" + }, + "size": { + "default": "6", + "isResponsive": false + }, + "stateIndex": 1, + "styleObject": { + "background": { + "color": "", + "image": "", + "position": "", + "repeat": "", + "size": "" + }, + "border": { + "color": "", + "radius": "", + "style": "", + "type": "", + "width": "" + }, + "class": "slds-p-bottom_small ", + "container": { + "class": "" + }, + "elementStyleProperties": { + }, + "inlineStyle": "", + "margin": [ + ], + "padding": [ + { + "label": "bottom:small", + "size": "small", + "type": "bottom" + } + ], + "size": { + "default": "6", + "isResponsive": false + }, + "sizeClass": "slds-size_6-of-12 ", + "style": " : #ccc 1px solid; \n ", + "text": { + "align": "", + "color": "" + } + }, + "type": "text" + }, + { + "class": "slds-col ", + "element": "outputField", + "elementLabel": "Weather Details-Text-1-clone-0", + "key": "element_element_block_1_1_outputField_2_1", + "name": "Text", + "parentElementKey": "element_block_1_1", + "property": { + "card": "{card}", + "mergeField": "%3Cdiv%20class=%22slds-text-title_caps%20slds-text-align_center%22%3E%3Cspan%20style=%22font-size:%2010pt;%20color:%20#34495e;%22%3ETEMPERATURE%3C/span%3E%3C/div%3E%0A%3Cdiv%20class=%22slds-text-align_center%22%3E%3Cstrong%3E%3Cspan%20style=%22font-size:%2012pt;%20color:%20#34495e;%22%3E%7BTempF%7D%20°F%3C/span%3E%3C/strong%3E%3C/div%3E", + "record": "{record}" + }, + "size": { + "default": "6", + "isResponsive": false + }, + "stateIndex": 1, + "styleObject": { + "background": { + "color": "", + "image": "", + "position": "", + "repeat": "", + "size": "" + }, + "border": { + "color": "", + "radius": "", + "style": "", + "type": "", + "width": "" + }, + "class": "slds-p-bottom_small ", + "container": { + "class": "" + }, + "elementStyleProperties": { + }, + "inlineStyle": "", + "margin": [ + ], + "padding": [ + { + "label": "bottom:small", + "size": "small", + "type": "bottom" + } + ], + "size": { + "default": "6", + "isResponsive": false + }, + "sizeClass": "slds-size_6-of-12 ", + "style": " : #ccc 1px solid; \n ", + "text": { + "align": "", + "color": "" + } + }, + "type": "text" + }, + { + "class": "slds-col ", + "element": "action", + "elementLabel": "Forecast", + "key": "element_element_block_1_1_action_3_1", + "name": "Action", + "property": { + "buttonVariant": "outline-brand", + "card": "{card}", + "contextId": "\\{AcccountId}", + "displayAsButton": true, + "iconColor": "#68B5E6", + "record": "{record}", + "stateAction": { + "cardName": "sampleWeatherForecast", + "displayName": "Get 5-Day Forecast", + "flyoutLwc": "sampleWeatherForecast", + "flyoutType": "childCard", + "id": "flex-action-1608230061856", + "layoutType": "lightning", + "openFlyoutIn": "Modal", + "openUrlIn": "Current Window", + "type": "Flyout", + "vlocityIcon": "standard:forecasts" + }, + "stateObj": "{record}" + }, + "size": { + "default": "12", + "isResponsive": false + }, + "stateIndex": 1, + "styleObject": { + "background": { + "color": "", + "image": "", + "position": "", + "repeat": "", + "size": "" + }, + "border": { + "color": "", + "radius": "", + "style": "", + "type": "", + "width": "" + }, + "class": "slds-text-align_center slds-p-top_small ", + "container": { + "class": "" + }, + "elementStyleProperties": { + "iconColor": "#68B5E6" + }, + "inlineStyle": "", + "margin": [ + ], + "padding": [ + { + "label": "top:small", + "size": "small", + "type": "top" + } + ], + "size": { + "default": "12", + "isResponsive": false + }, + "sizeClass": "slds-size_12-of-12 ", + "style": " ", + "text": { + "align": "center", + "color": "" + } + }, + "type": "element", + "userUpdatedElementLabel": true + } + ], + "class": "slds-col ", + "element": "block", + "elementLabel": "Weather Details", + "name": "Block", + "property": { + "card": "{card}", + "collapsedByDefault": false, + "collapsible": false, + "label": "Block", + "record": "{record}" + }, + "size": { + "default": "12", + "isResponsive": false + }, + "stateIndex": 1, + "styleObject": { + "class": "slds-p-around_x-small", + "padding": [ + { + "size": "x-small", + "type": "around" + } + ], + "sizeClass": "slds-size_12-of-12" + }, + "type": "block", + "userUpdatedElementLabel": true + } + ] + } + }, + "conditions": { + "group": [ + ], + "id": "state-condition-object", + "isParent": true + }, + "definedActions": { + "actions": [ + ] + }, + "documents": [ + { + "Id": "0685f000002WE7BAAW", + "developerName": "weatherbannerActive", + "type": "ContentVersion" + } + ], + "fields": [ + ], + "isSmartAction": false, + "name": "Active", + "omniscripts": [ + ], + "smartAction": { + }, + "styleObject": { + "class": "slds-card slds-p-around_x-small slds-m-bottom_x-small", + "container": { + "class": "slds-card" + }, + "margin": [ + { + "size": "none", + "type": "around" + } + ], + "padding": [ + { + "size": "x-small", + "type": "around" + } + ], + "size": { + "default": "12", + "isResponsive": false + }, + "sizeClass": "slds-size_12-of-12" + } + } + ], + "theme": "slds", + "title": "sampleWeather", + "xmlObject": { + "apiVersion": 48, + "isExplicitImport": false, + "isExposed": true, + "masterLabel": "sampleWeather", + "runtimeNamespace": "%vlocity_namespace%", + "targets": { + "target": [ + "lightning__RecordPage", + "lightning__HomePage", + "lightning__AppPage", + "lightningCommunity__Page" + ] + } + } +} \ No newline at end of file diff --git a/datapacks/VlocityCard/sampleWeather/sampleWeather_DataPack.json b/datapacks/VlocityCard/sampleWeather/sampleWeather_DataPack.json new file mode 100644 index 0000000..db2c47d --- /dev/null +++ b/datapacks/VlocityCard/sampleWeather/sampleWeather_DataPack.json @@ -0,0 +1,41 @@ +{ + "%vlocity_namespace%__Author__c": "VU", + "%vlocity_namespace%__CardType__c": "flex", + "%vlocity_namespace%__Datasource__c": { + "contextVariables": [ + { + "id": 2, + "name": "recordId", + "val": "0015f00000EPdwbAAD" + } + ], + "orderBy": { + "isReverse": false, + "name": "" + }, + "type": "IntegrationProcedures", + "value": { + "dsDelay": 0, + "inputMap": { + "AccountId": "{recordId}", + "Days": "5" + }, + "ipMethod": "team_getWeatherForecast", + "resultVar": "", + "vlocityAsync": false + } + }, + "%vlocity_namespace%__Definition__c": "sampleWeather.json", + "%vlocity_namespace%__Description__c": "", + "%vlocity_namespace%__GlobalKey__c": "sampleWeather/VU/3/1698795356405", + "%vlocity_namespace%__IsChildCard__c": true, + "%vlocity_namespace%__ParentID__c": "teamWeather/VU/2/1607652431271", + "%vlocity_namespace%__SampleData__c": "{\"Forecast\":[{\"Date\":\"2021-01-26\",\"Condition\":\"Heavy Snow\",\"HiLoTempF\":\"30.5/21.7\",\"HiLoTempC\":\"-0.8/-5.7\"},{\"Date\":\"2021-01-27\",\"Condition\":\"Light Snow\",\"HiLoTempF\":\"31.7/22.8\",\"HiLoTempC\":\"-0.2/-5.1\"},{\"HiLoTempF\":\"31.0/18.7\",\"Date\":\"2021-01-28\",\"Condition\":\"Flurries\",\"HiLoTempC\":\"-0.6/-7.8\"},{\"HiLoTempF\":\"25.3/18.1\",\"Date\":\"2021-01-29\",\"Condition\":\"Clear sky\",\"HiLoTempC\":\"-3.7/-7.7\"},{\"HiLoTempF\":\"24.2/19.7\",\"Date\":\"2021-01-30\",\"Condition\":\"Clear sky\",\"HiLoTempC\":\"-4.3/-6.8\"}],\"Current\":{\"Condition\":\"Heavy Snow\",\"CityState\":\"Schenectady, New York\",\"TempF\":27.5,\"TempC\":-2.5},\"CurrentIcon\":\"www.weatherbit.io/static/img/icons/s03d.png\",\"ForecastIcon\":\"www.weatherbit.io/static/img/icons/s01d.png\"}", + "%vlocity_namespace%__Styles__c": "", + "%vlocity_namespace%__Type__c": "", + "%vlocity_namespace%__Version__c": 3, + "Name": "sampleWeather", + "VlocityDataPackType": "SObject", + "VlocityRecordSObjectType": "%vlocity_namespace%__VlocityCard__c", + "VlocityRecordSourceKey": "%vlocity_namespace%__VlocityCard__c/sampleWeather" +} \ No newline at end of file diff --git a/force-app/main/default/flexipages/Account_Record_Page5.flexipage-meta.xml b/force-app/main/default/flexipages/Account_Record_Page5.flexipage-meta.xml new file mode 100644 index 0000000..08b25bc --- /dev/null +++ b/force-app/main/default/flexipages/Account_Record_Page5.flexipage-meta.xml @@ -0,0 +1,252 @@ + + + + + + + collapsed + false + + + enableActionsConfiguration + false + + + enableActionsInNative + false + + + hideChatterActions + false + + + numVisibleActions + 3 + + force:highlightsPanel + force_highlightsPanel + + + Replace + header + Region + + + + + cooper:companyInsightTeaserCard + cooper_companyInsightTeaserCard + + + + + + displayOption + BOTH + + runtime_sales_merge:mergeCandidatesPreviewCard + runtime_sales_merge_mergeCandidatesPreviewCard + + + + + + relatedListComponentOverride + NONE + + + rowsToDisplay + 10 + + + showActionBar + true + + force:relatedListContainer + force_relatedListContainer + + + Replace + relatedTabContent + Facet + + + + + force:detailPanel + force_detailPanel + + + Replace + detailTabContent + Facet + + + + + runtime_sales_social:socialPanel + runtime_sales_social_socialPanel + + + Replace + newsTabContent + Facet + + + + + + active + true + + + body + relatedTabContent + + + title + Standard.Tab.relatedLists + + flexipage:tab + relatedListsTab + + + + + + body + detailTabContent + + + title + Standard.Tab.detail + + flexipage:tab + detailTab + + + + + + body + newsTabContent + + + title + Standard.Tab.news + + flexipage:tab + newsTab + + + Replace + maintabs + Facet + + + + + + tabs + maintabs + + flexipage:tabset + flexipage_tabset + + + Replace + main + Region + + + + + + showLegacyActivityComposer + false + + runtime_sales_activities:activityPanel + runtime_sales_activities_activityPanel + + + Replace + activityTabContent + Facet + + + + + forceChatter:recordFeedContainer + forceChatter_recordFeedContainer + + + Replace + feedTabContent + Facet + + + + + + active + true + + + body + activityTabContent + + + title + Standard.Tab.activity + + flexipage:tab + activityTab + + + + + + body + feedTabContent + + + title + Standard.Tab.collaborate + + flexipage:tab + collaborateTab + + + Replace + sidebartabs + Facet + + + + + + tabs + sidebartabs + + flexipage:tabset + flexipage_tabset2 + + + + + cfSampleWeather + c_cfSampleWeather + + + Replace + sidebar + Region + + Account Record Page + sfa__Account_rec_L + Account + + RecordPage + diff --git a/manifest/sfi-package.yaml b/manifest/sfi-package.yaml index 391f836..38085d2 100644 --- a/manifest/sfi-package.yaml +++ b/manifest/sfi-package.yaml @@ -1,7 +1,11 @@ projectPath: . expansionPath: ./datapacks/ manifest: + - DataRaptor/sampleGetAccountDetailsDRExtract + - DataRaptor/samplePostXformWeather + - IntegrationProcedure/sample_getWeatherForecast - VlocityCard/enablementAccountHello + - VlocityCard/sampleWeather delete: true activate: true compileOnBuild: true