This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:custom_development_guide:apis:javascript:import [2016/09/07 13:56] – solo | en:custom_development_guide:apis:javascript:import [2019/01/02 02:25] (current) – donnie | ||
|---|---|---|---|
| Line 34: | Line 34: | ||
| | source_pwd | String | put http/ftp password or else put source_pwd="" | | source_pwd | String | put http/ftp password or else put source_pwd="" | ||
| |exetime|String|when source is http or ftp, you could schedule the import job, when it's empty string or 0000-00-00 00:00:00, means immediately| | |exetime|String|when source is http or ftp, you could schedule the import job, when it's empty string or 0000-00-00 00:00:00, means immediately| | ||
| - | |delrow|String|填写数字,代表文件中前N行数据不导入进系统。一般去除第1行,文件首行为标题行,不是数据。当source=http或ftp时,此参数有效。| | + | |delrow|String|when source |
| - | |phone_field|String|如需将数据同时导入预拨号列表,请指定号码列的字段名称。例如phone1或电话号码一| | + | |phone_field|String|put field name or display name if you want to import it to dial list| |
| - | |priority_field|String|预拨号优先级所对应的字段名称。| | + | |priority_field|String|priority field name| |
| - | |dialtime_field|String|预拨号时间所对应的字段名称。| | + | |dialtime_field|String|dialtime field name| |
| - | |emptyagent|String|当待导入数据已经存在于客户包时,是(yes)否(no)清空归属坐席, | + | |emptyagent|String|When duplicated record found, if you want to reset assigned agent: |
| - | |resetstatus|String|当待导入数据已经存在于客户包时,是(yes)否(no)重置客户处理状态。| | + | |resetstatus|String|when duplicated record found, if you want to reset customer status: |
| - | |dupway|String|当待导入数据已经存在于客户包时,是(update)否(skip)使用文件中的数据更新已存在的数据。| | + | |dupway|String|when duplicated record found, if you want to update: update/skip| |
| - | |dupdiallist|String|< | + | |dupdiallist|String|< |
| - | 忽略重复(ignoreDuplicate),如果发现客户数据已存在,此数据无需放入预拨号列表。 | + | ignoreDuplicate: don't insert |
| - | 全部(all),无视数据是否重复,无视客户处理状态,一律放入预拨号列表。 | + | all: always insert |
| - | 忽略成功提交(ignoreSuccess),无视数据是否重复,只要客户处理状态不是成功提交,就放入预拨号列表。</ | + | ignoreSuccess: insert as long as customer status is not success</ |
| - | |changepackage|String|< | + | |changepackage|String|< |
| - | 跳过(skip),不处理此类数据。 | + | skip: ignore the data |
| - | 仅改变主表客户(unassignToCurrent),如果此客户未分配至其它客户包,那么将此客户分配至当前客户包。 | + | unassignToCurrent: if customer doesn' |
| - | 转移到当前客户包(reassignToCurrent),如果客户已分配至其它客户包,系统会将此用户转移至当前客户包。</ | + | reassignToCurrent: always move customer to current package</ |
| |callbackFuc|String|callback function| | |callbackFuc|String|callback function| | ||
| Line 54: | Line 54: | ||
| ex: when you don't have field phone_field,priority_field,dialtime_field, | ex: when you don't have field phone_field,priority_field,dialtime_field, | ||
| - | importWS(orgidentity, | + | importCJI(orgidentity, |
| + | resetstatus, | ||
| </ | </ | ||