Sql 使用某种导入方式(API或其他?)

Sql 使用某种导入方式(API或其他?),sql,api,xsd,volusion,Sql,Api,Xsd,Volusion,我想将工具包/套件导入VOLUSION平台 我们一直在手动将从我们自己的数据库导出的CSV文件导入volusion平台。 以下文件: 产品、套件、套件、选件、选件类别和类别 这是可行的,但是我们需要加快流程以更快地工作 我们使用API导出订单并将其导入数据库,这非常有效 因此,我尝试使用API来导入,而不是CSV导入。 产品,让它工作得很好。 装备?似乎不是通过API导入的方法。在线阅读,似乎这是一个众所周知的问题 通过电子邮件发送的支持,回复。。 与支持人员交谈,他们说这是可能的,但这个问题超

我想将工具包/套件导入VOLUSION平台

我们一直在手动将从我们自己的数据库导出的CSV文件导入volusion平台。 以下文件: 产品、套件、套件、选件、选件类别和类别

这是可行的,但是我们需要加快流程以更快地工作

我们使用API导出订单并将其导入数据库,这非常有效

因此,我尝试使用API来导入,而不是CSV导入。 产品,让它工作得很好。 装备?似乎不是通过API导入的方法。在线阅读,似乎这是一个众所周知的问题

通过电子邮件发送的支持,回复。。 与支持人员交谈,他们说这是可能的,但这个问题超出了支持范围。所以我觉得没什么帮助

他们确实建议我在schema/Generic文件夹中使用.SQL和.XSD文件,我这样做了,我可以返回KITS记录,但不能插入或更新它们。我想我错过了做这件事的机会。不幸的是,我认为支持对我没有帮助

不幸的是,如果我不能让它自动运行,我将不得不切换ecom提供程序。我很懒,希望有人能帮上忙

任何帮助都将不胜感激

文档很难找到,我只能在stackoverflow上找到示例/帮助。链接到一些文档也会有所帮助。不必是API,我不介意是否有办法FTP CSV文件并启动某种导入

谢谢你的帮助

我也不得不这么做。(这在user357034链接到的文章中有很多内容)这里是步骤1-调用ASP文件,在volusion文件夹上创建一个.sql文件,稍后将执行该文件-注意,此sql是为我的设置定制的-您必须根据需要修改它,但它应该创建必要的表项。这是ASP文件中的代码。我的产品有4个选项或“条件”

确保同一文件夹(v/vspfiles/schema/Generic)中有addKITSinfo.xsd文件。还要确保您知道SQL注入之类的东西

然后第2步-调用API以在刚刚创建的文件中执行SQL。像


这可以通过创建一个ASP脚本来实现,该脚本加载数据并通过一个或多个SQL查询插入数据。它非常复杂,并且坦率地说超出了简单堆栈回答的范围。我在这里写了这个概念,还有其他一些。非常感谢@user357034。我感谢你的帮助,我会查看这些帖子。你知道我可以雇用谁来帮助创建这个过程的这一部分吗?
' get the variables we need...
productCode= Request.QueryString("productCode")

sql =   " insert into Options_ApplyTo select 183, p.ProductCode from Products_Joined p left outer join Options_ApplyTo k on k.ProductCode = p.ProductCode and 183 = k.OptionID where p.ProductCode in ( " & productCode & " ) and k.ProductCode is null; " & _
        " insert into Options_ApplyTo select 184, p.ProductCode from Products_Joined p left outer join Options_ApplyTo k on k.ProductCode = p.ProductCode and 184 = k.OptionID where p.ProductCode in ( " & productCode & " ) and k.ProductCode is null; " & _
        " insert into Options_ApplyTo select 185, p.ProductCode from Products_Joined p left outer join Options_ApplyTo k on k.ProductCode = p.ProductCode and 185 = k.OptionID where p.ProductCode in ( " & productCode & " ) and k.ProductCode is null; " & _
        " insert into Options_ApplyTo select 186, p.ProductCode from Products_Joined p left outer join Options_ApplyTo k on k.ProductCode = p.ProductCode and 186 = k.OptionID where p.ProductCode in ( " & productCode & " ) and k.ProductCode is null; " & _
        " insert into KITS select 'wiz', p.IsChildOfProductCode, p.ProductCode, 1, null, null, case when RIGHT(p.ProductCode, 4) = '0001' then 0 when RIGHT(p.ProductCode, 4) = '0002' then 1 when RIGHT(p.ProductCode, 4) = '0003' then 2 else 3 end from Products_Joined p left outer join KITS k on k.KIT_IsProductCode = p.ProductCode where p.IsChildOfProductCode in ( " & productCode & " ) and k.KIT_IsProductCode is null; " & _
        " insert into KitLnks select kits.KIT_ID, null, case when RIGHT(kits.KIT_IsProductCode, 4) = '0001' then 186 when RIGHT(kits.KIT_IsProductCode, 4) = '0002' then 185 when RIGHT(kits.KIT_IsProductCode, 4) = '0003' then 184 else 183 end, null, null, null, null from KITS kits left outer join KitLnks lnks on lnks.kit_id = kits.KIT_ID where lnks.kit_id is null and KIT_ProductCode in ( " & productCode & " )    "

set fs=Server.CreateObject("Scripting.FileSystemObject")
set f=fs.OpenTextFile(Server.MapPath("./addKITSinfo.sql"),2,true)
f.WriteLine(sql)
f.Close
set f=Nothing
set fs=Nothing