Go Back
Salesforce Data Cleanup
Publisher
: Lingk
Run In Lingk
Description
This recipe represents an easy to delete data immediately after a SOQL query
Browse the knowledge base
Twitter
E-Mail
# _____ _ _____ __ # | __ \ (_) |_ _| / _| # | |__) |___ ___ _ _ __ ___ | | _ __ | |_ ___ # | _ // _ \/ __| | '_ \ / _ \ | | | '_ \| _/ _ \ # | | \ \ __/ (__| | |_) | __/ _| |_| | | | || (_) | # |_| \_\___|\___|_| .__/ \___| |_____|_| |_|_| \___/ # | | # |_| # Project Name - SALESFORCE DATA CLEANUP # Recipe URL - https://app.lingk.io/a/10932/tf/17471 # Description - # This recipe represents an easy to delete data immediately after a SOQL query # Industry - Higher Ed # Business Process - Graduate Reporting # Systems - Salesforce # Connectors - Salesforce # Data Flows - Single Direction # Connection Type - API to API # Data Models #1. Contact # Add Recipe notes / Change log information here! # _____ _ # / ____| | | # | | ___ _ __ _ __ ___ ___| |_ ___ _ __ ___ # | | / _ \| '_ \| '_ \ / _ \/ __| __/ _ \| '__/ __| # | |___| (_) | | | | | | | __/ (__| || (_) | | \__ \ # \_____\___/|_| |_|_| |_|\___|\___|\__\___/|_| |___/ # # CONNECTORS specify what data will be pulled into the in-memory database during processing connectors: # Configure Salesforce credentials in your Environment before running this recipe # Salesforce Setup - https://help.lingk.io/en/articles/267-salesforce-connector-setup-guide ###### Start - Salesforce Reader connectors ###### - name: reader type: salesforceReader properties: useBearerToken: true isSandbox: true query: SELECT Id, Name, Email FROM Contact schema: fields: - name: Id type: String - name: Name type: String - name: Registration_System_Id__c type: String - name: Email type: String ###### End - Salesforce Reader connectors ###### ###### Start - Salesforce Writer connectors ###### - name: contactWriter type: salesforceBulkWriter properties: onError: continue useBearerToken: true isSandbox: true sfObject: Contact # batchSize: 50 # default 10000 ###### End - Salesforce Writer connectors ###### # _____ _ _ _ # / ____| | | | | | # | (___ | |_ __ _| |_ ___ _ __ ___ ___ _ __ | |_ ___ # \___ \| __/ _` | __/ _ \ '_ ` _ \ / _ \ '_ \| __/ __| # ____) | || (_| | || __/ | | | | | __/ | | | |_\__ \ # |_____/ \__\__,_|\__\___|_| |_| |_|\___|_| |_|\__|___/ # STATEMENTS specify how the data should be processed while in memory statements: #******************************************************************** D I S C L A I M E R *********************************************************************************************** # * # Note that in an effort to keep recipes optimized for DPH (Data Processing Hours), print statements should be commented out after development has concluded for a recipe. * # For more information on DPH optimization, please visit the following help article - https://help.lingk.io/en/articles/212-minimizing-data-processing-hours-on-the-lingk-platform * # * #******************************************************************** D I S C L A I M E R *********************************************************************************************** # get data from the reader # you can do additional filters here using a WHERE clause - statement: (data) => select * from reader # print data (for debugging purposes) #- statement: print data # print row count (for debugging purposes) - statement: (readerCount) => select count(*) from reader #- statement: print readerCount # delete data #- statement: (results, errors) => delete data from contactWriter ## IMPORTANT: Uncommenting the line above WILL cause data to be deleted based on SF Id # Add more statements to convert, join, aggregrate, transform, and integrate your data
SFTP File Management
Ellucian Ethos to SFTP