以CSV格式备份ZOHO CRM中的所有表
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了以CSV格式备份ZOHO CRM中的所有表相关的知识,希望对你有一定的参考价值。
fill your username and password
#!/usr/bin/perl use strict; use LWP::UserAgent; my $silent = 0; # set to 1 for no output on stdout my $logindata = { 'j_username' => 'fill in your username (email)', 'j_password' => 'fill in your password', 'j_remember' => 'on', }; my $loginurl = 'http://crm.zoho.com/crm/zohologin'; my $backupurl = 'http://crm.zoho.com/crm/ExportEntity.do'; my @backuptables = qw{Users Leads Accounts Contacts Potentials Campaigns Tasks Events Notes Competitors Products PriceBooks Cases Solutions Forecasts Vendors Quotes SalesOrders PurchaseOrders Invoices}; my $ua = LWP::UserAgent->new; $ua->cookie_jar({ file => "cookies.txt" }); my $devnull = $ua->get('http://crm.zoho.com/crm/login.sas'); #get cookie my $loginresponse = $ua->post($loginurl, $logindata); foreach my $whichtable (@backuptables) { my $backupdata = { 'module' => $whichtable, }; my $backuptable = $ua->post($backupurl, $backupdata); }
以上是关于以CSV格式备份ZOHO CRM中的所有表的主要内容,如果未能解决你的问题,请参考以下文章