Skip to Content
0

How to Delete Sales Opportunity Lines WIth DI Server

Jan 31, 2017 at 06:00 AM

125

avatar image

Is there a way to delete Sales Opportunity Lines in a Sales Opportunity using DI Server?

I tried to leave out the row I wanted to delete, tried to set it as empty row, tried to set the StageKey as -1, tried to change the Status of the line (which is ReadOnly). None of these succeeded in deleting the line.

Here is the XML I'm using for updates (please advice on how to modify it so it can delete SalesOpportunityLines):

<BOM>
  <BO>
    <AdmInfo>
      <Object>oSalesOpportunities</Object>
      <Version>2</Version>
    </AdmInfo>
    <QueryParams>
        <SequentialNo>43</SequentialNo>
    </QueryParams>
    <SalesOpportunities>
      <row>
        <SalesPerson>19</SalesPerson>
        <ContactPerson>1</ContactPerson>
        <InterestLevel>3</InterestLevel>
        <StartDate>20130523</StartDate>
        <PredictedClosingDate>20160524</PredictedClosingDate>
        <Status>sos_Open</Status>
        <OpportunityName>Oportunidad Antonio</OpportunityName>
        <Territory>1</Territory>
      </row>
    </SalesOpportunities>
    <SalesOpportunitiesLines>
      <row>
        <LineNum>0</LineNum>
        <SalesPerson>4</SalesPerson>
        <StartDate>20130523</StartDate>
        <ClosingDate>20130523</ClosingDate>
        <StageKey>2</StageKey>
        <PercentageRate>10.0</PercentageRate>
        <MaxLocalTotal>1.0</MaxLocalTotal>
      </row>
      <row>
        <LineNum>1</LineNum>
        <SalesPerson>1</SalesPerson>
        <StartDate>20160523</StartDate>
        <ClosingDate>20160523</ClosingDate>
        <StageKey>4</StageKey>
        <PercentageRate>100.0</PercentageRate>
        <MaxLocalTotal>10.0</MaxLocalTotal>
      </row>
      <row>
        <LineNum>2</LineNum>
        <SalesPerson>1</SalesPerson>
        <StartDate>20160524</StartDate>
        <ClosingDate>20160525</ClosingDate>
        <StageKey>6</StageKey>
        <PercentageRate>75.0</PercentageRate>
        <MaxLocalTotal>22.0</MaxLocalTotal>
        <DocumentNumber>3256</DocumentNumber>
        <DocumentType>23</DocumentType>
        <DocumentCheckbox>N</DocumentCheckbox>
      </row>
    </SalesOpportunitiesLines>
    <SalesOpportunitiesCompetition>
      <row>
        <Competition>2</Competition>
        <Details>Competitor</Details>
        <WonOrLost>N</WonOrLost>
      </row>
    </SalesOpportunitiesCompetition>
    <SalesOpportunitiesInterests>
      <row>
        <InterestId>2</InterestId>
      </row>
      <row>
        <InterestId>3</InterestId>
      </row>
      <row>
      </row>
    </SalesOpportunitiesInterests>
    <SalesOpportunitiesReasons/>
  </BO>
</BOM>
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers