Zum Inhalt

Campaign

This service can be used to bulk synchronize campaigns to the web shop. Large sizes can be transferd.

Service Endpoint

The base Endpoint is:

OutboundCampaignIISWebService/OutboundCampaignIISWebService

API Methods

Here are the available methods for the Campaign Service:

GetCampaigns

Sample Request

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" 
  xmlns:out="http://tempuri.org/OutboundCampaignIISWebService/" 
  xmlns:x53="urn:microsoft-dynamics-nav/xmlports/x5371219">
   <soap:Header xmlns:wsa="http://www.w3.org/2005/08/addressing">
      <wsa:Action>http://tempuri.org/OutboundCampaignIISWebService/OutboundCampaignIISWebService/GetCampaigns</wsa:Action>
   </soap:Header>
   <soap:Body>
      <out:GetCampaigns>
         <out:outboundCampaign/>
         <out:campaignFilter/>
         <out:maxEntries>10</out:maxEntries>
      </out:GetCampaigns>
   </soap:Body>
</soap:Envelope>

Sample Response

<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing">
   <s:Header>
      <a:Action s:mustUnderstand="1">http://tempuri.org/OutboundCampaignIISWebService/OutboundCampaignIISWebService/GetCampaignsResponse</a:Action>
   </s:Header>
   <s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      <GetCampaignsResponse xmlns="http://tempuri.org/OutboundCampaignIISWebService/">
         <outboundCampaign>
            <Campaign xmlns="urn:microsoft-dynamics-nav/xmlports/x5371219">
               <No>KP1001</No>
               <Description>Umsatz steigern</Description>
               <Starting_Date>2016-11-01</Starting_Date>
               <Ending_Date>2017-04-01</Ending_Date>
               <Status_Code>5-START</Status_Code>
               <Activated>false</Activated>
            </Campaign>
            <Campaign xmlns="urn:microsoft-dynamics-nav/xmlports/x5371219">
               <No>KP1002</No>
               <Description>Veranstaltung</Description>
               <Starting_Date>2017-01-18</Starting_Date>
               <Ending_Date>2017-01-21</Ending_Date>
               <Status_Code>9-ERLEDIGT</Status_Code>
               <Activated>false</Activated>
            </Campaign>
            <Campaign xmlns="urn:microsoft-dynamics-nav/xmlports/x5371219">
               <No>KP1003</No>
               <Description>Arbeitsplatzausstattung</Description>
               <Starting_Date>2017-01-08</Starting_Date>
               <Ending_Date>2017-04-01</Ending_Date>
               <Status_Code>5-START</Status_Code>
               <Activated>false</Activated>
            </Campaign>
            <Campaign xmlns="urn:microsoft-dynamics-nav/xmlports/x5371219">
               <No>KP1004</No>
               <Description>Frühjahrsangebot</Description>
               <Starting_Date>2017-03-01</Starting_Date>
               <Ending_Date>2017-06-01</Ending_Date>
               <Status_Code>1-GEPLANT</Status_Code>
               <Activated>false</Activated>
            </Campaign>
         </outboundCampaign>
      </GetCampaignsResponse>
   </s:Body>
</s:Envelope>

Field Information

Campaign Field Information

Name Description Type max. Length Occurance
🔑 No Specifies the campaign no. String 20 1..1
Description Primary Campaign description String 50 0..1
Starting_Date Specifies campaign starting date. DateTime 1..1
Ending_Date Specifies campaign ending date. DateTime 1..1
Status_Code Status code of the campaign. String 1..1
Activted Specifies whether this campaign is activated. Boolean 0..1