Posted on May 18, 2020 Leave a Comment
Remote Process Invocation – Request and Reply Best solutions External Services – invokes a REST API call – allows to invoke externally hosted service in declarative manner. External REST service are available in a an OpenAPI or Integrant schema definition. Contains primitive data types, nested objects not supported. Transaction invoked from Lightning Flow. Integration transaction […]
Posted on May 29, 2019 2 Comments
Create EmpConnector connection The first thing is to create a configuration that on startup will connect to the EmpConnector and start listing for incoming events on a specific topic. 1. Set all your Bayeux Parameters (bayeuxParameters) 2. Create EmpConnector connection (empConnector) 3. Start listening to topic (startAndPublishAsyncEventToExchange) 4. Adding listeners to the topic (startAndPublishAsyncEventToExchange) Basic […]
Posted on June 14, 2017 Leave a Comment
Exporting salesforce metadata to csv, iterate through SObject and fields and show Label, API Name, FLS, Custom/Standard field. Output
Posted on May 16, 2017 Leave a Comment
Create a new Planform Event Object and give it a name App Metadata (App_Metadata__e) which will also be the name of the topic. Create some fields you that you would like to listen to. In Apex add the following event Build event payload Publish Event to eventBus Now let’s create our event listen to subscript […]
Posted on February 8, 2017 2 Comments
There are different ways you can use salesforce to attach a file to an SObject using Chatter. Apex Code Chatter REST Api Some limitations using this is using Blob for version.VersionData = attachment.Body; will run into Apex String length exceeds maximum: 6000000. Chatter Rest API POST https://cs43.salesforce.com/services/data/v35.0/connect/communities/0DB63000000003jGAA/chatter/feed-elements/batch HEADER Authorization Bearer {sessionToken} Content-Type […]
Posted on July 28, 2015 1 Comment
1. Setup SalesforceLoginConfig 2. Setup SalesforceCamelEndpointConfig 3. Setup SalesforceCamelComponent 4. Setup SalesforceCamelRouteConfig 5. Run SalesforceCamelIntegrationTest 1. Setup SalesforceLoginConfig 2. Setup SalesforceCamelEndpointConfig 3. Setup SalesforceCamelComponent 4. Setup SalesforceCamelRouteConfig 5. Run SalesforceCamelIntegrationTest OUTPUT: >>>>>>> Salesforce Basics Info: {“objectDescribe”:{“name”:”Account”,”label”:”Account”,”updateable”:true,”keyPrefix”:”001″,”custom”:false,”urls”:{“sobject”:”/services/data/v33.0/sobjects/Account”,”describe”:”/services/data/v33.0/sobjects/Account/describe”,”rowTemplate”:”/services/data/v33.0/sobjects/Account/{ID}”,”approvalLayouts”:”/services/data/v33.0/sobjects/Account/describe/approvalLayouts”,”quickActions”:”/services/data/v33.0/sobjects/Account/quickActions”,”listviews”:”/services/data/v33.0/sobjects/Account/listviews”,”layouts”:”/services/data/v33.0/sobjects/Account/describe/layouts”,”compactLayouts”:”/services/data/v33.0/sobjects/Account/describe/compactLayouts”},”searchable”:true,”labelPlural”:”Accounts”,”layoutable”:true,”activateable”:false,”createable”:true,”deprecatedAndHidden”:false,”deletable”:true,”customSetting”:false,”feedEnabled”:true,”mergeable”:true,”queryable”:true,”replicateable”:true,”retrieveable”:true,”undeletable”:true,”triggerable”:true},”recentItems”:[{“attributes”:{“type”:”Account”,”url”:”/services/data/v33.0/sobjects/Account/001W000000JhUzlIAF”},”Name”:”Pope John XXIII Regional High School”,”Id”:”001W000000JhUzlIAF”},{“attributes”:{“type”:”Account”,”url”:”/services/data/v33.0/sobjects/Account/001W000000JhZFQIA3″},”Name”:”A PLAZA DRIVING SCHOOL”,”Id”:”001W000000JhZFQIA3″},{“attributes”:{“type”:”Account”,”url”:”/services/data/v33.0/sobjects/Account/001W000000JgxxXIAR”},”Name”:”Advanced Reproductive Care, Inc. (ARC)”,”Id”:”001W000000JgxxXIAR”},{“attributes”:{“type”:”Account”,”url”:”/services/data/v33.0/sobjects/Account/001W000000JrwqvIAB”},”Name”:”name”,”Id”:”001W000000JrwqvIAB”},{“attributes”:{“type”:”Account”,”url”:”/services/data/v33.0/sobjects/Account/001W000000JhXSnIAN”},”Name”:”Stella Niagara Education Park”,”Id”:”001W000000JhXSnIAN”},{“attributes”:{“type”:”Account”,”url”:”/services/data/v33.0/sobjects/Account/001W000000Jr1WOIAZ”},”Name”:”A J DIANA SONS INC”,”Id”:”001W000000Jr1WOIAZ”},{“attributes”:{“type”:”Account”,”url”:”/services/data/v33.0/sobjects/Account/001W000000Jr1TIIAZ”},”Name”:”A […]
Posted on February 17, 2014 Leave a Comment
Exporting of Database records to csv can be done using: 1. OpenCSV CSVWriter 2. FileWriter 1. OpenCSV CSVWriter 2. FileWriter
Posted on February 15, 2014 2 Comments
Implement SessionRenewer Test SessionRenewer
Posted on January 31, 2014 Leave a Comment
Converting a List View to a Salesforce Tab is as easy as to create a Visualforce page. Just specify the list view Id and add a custom Visualforce tab:
Posted on November 6, 2013 Leave a Comment
Spring Configuration to test integration to Salesforce using PartnerConnection, EnterpriseConnection and BulkConnection. Create a properties file called salesforcesync.properties with all the login details salesforcesync.properties Salesforce Authentication Spring Configuration Junit test class to assert login was successful