【问题标题】:Create Exact Online companies en mass大规模创建 Exact Online 公司
【发布时间】:2017-01-26 15:26:05
【问题描述】:

为了模拟会计环境,我需要创建至少 100 家 Exact Online 公司(部门、行政部门、档案)。这可以通过手动操作来实现,重复 100 次。并在 7 个国家/地区重复。总共 700 次大约一分钟。

有没有办法通过 REST 或 XML API 自动创建这些数量的公司?

REST API 的文档没有列出 POST 的可能性; XML API 没有描述适用的上传/下载功能。

【问题讨论】:

    标签: exact-online invantive-sql


    【解决方案1】:

    Exact Online 支持向我解释说,有一种方法可供大型会计师的门户网站使用。

    XML 上的Administrations 主题在一定程度上支持创建公司。为新的 Exact Online 公司上传 XML 到哪个公司无关紧要,它会被添加为独立公司。

    创建 100 家公司的代码示例,人员编号为 501..600:

    insert into UploadXMLTopics 
    ( topic
    , payload
    , division_code
    , orig_system_reference
    , orig_system_group
    )
    select 'Administrations'
    ,      '<?xml version="1.0" encoding="utf-8"?>
    <eExact xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="eExact-XML.xsd">
        <Administrations>
            <Administration number="' || 500+id || '">
                <Name>Leeg ' || id || '</Name>
                <AddressLine1>Harm Buiterplein ' || id || '</AddressLine1>
                <Postcode>2501 TH</Postcode>
                <City>Den Haag</City>
                <State code="ZH" />
                <Country code="NL" />
                <Currency code="EUR" />
                <Phone>0351448695</Phone>
                <Fax>0351448690</Fax>
                <Email>info@leeg' || id || '.nl</Email>
                <HomePage>www.leeg.nl</HomePage>
                <ChamberOfCommerce>12411369</ChamberOfCommerce>
                <COCEstablishmentNumber>99</COCEstablishmentNumber>
                <ActivitySector code="A" />
                <ActivitySubSector code="01" />
                <SBICode code="014" />
                <CompanySize code="G" />
                <BusinessType code="51" />
                <StartDate>2015-05-13</StartDate>
                <BlockingStatus>0</BlockingStatus>
            </Administration>
        </Administrations>
    </eExact>'
    ,      sdn.code
    ,      'Create-admin-' || id
    ,      'Create-admin'
    from   exactonlinexml..calendar clr
    join   ( select min(code) code from exactonlinerest..systemdivisions ) sdn
    where  clr.id between 1 and 100
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-22
      • 1970-01-01
      • 2011-08-21
      • 1970-01-01
      相关资源
      最近更新 更多