<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic AddChangeOrder Example? in Vault Customization Forum</title>
    <link>https://forums.autodesk.com/t5/vault-customization-forum/addchangeorder-example/m-p/3941316#M11155</link>
    <description>&lt;P&gt;Does anybody have a working example of creating a change order via the API in 2013? (.NET)&lt;/P&gt;&lt;P&gt;I've been playing around but keep getting Soap Exception 106.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2013 16:10:40 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-05-29T16:10:40Z</dc:date>
    <item>
      <title>AddChangeOrder Example?</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/addchangeorder-example/m-p/3941316#M11155</link>
      <description>&lt;P&gt;Does anybody have a working example of creating a change order via the API in 2013? (.NET)&lt;/P&gt;&lt;P&gt;I've been playing around but keep getting Soap Exception 106.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2013 16:10:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/addchangeorder-example/m-p/3941316#M11155</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-05-29T16:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: AddChangeOrder Example?</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/addchangeorder-example/m-p/3941388#M11156</link>
      <description>&lt;P&gt;The 106 error indicates that you are trying to call a method prior to signing-in as a user.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Dave&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2013 17:07:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/addchangeorder-example/m-p/3941388#M11156</guid>
      <dc:creator>minkd</dc:creator>
      <dc:date>2013-05-29T17:07:28Z</dc:date>
    </item>
    <item>
      <title>Re: AddChangeOrder Example?</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/addchangeorder-example/m-p/3941961#M11157</link>
      <description>&lt;P&gt;Hmm, well I thought I was logging in correctly but perhaps not.&lt;/P&gt;&lt;P&gt;Here's what I've got so far:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;        Dim login As New UserPasswordCredentials("ellisws1", "Routing", "Administrator", "")

        Using serviceManager As New WebServiceManager(login)

            Try
                Dim myeco As ChangeOrderService
                myeco = New ChangeOrderService

                ' get the default routing 
                Dim workflow As Workflow = myeco.GetDefaultWorkflow()
                Dim routings As Routing() = myeco.GetRoutingsByWorkflowId(workflow.Id)
                Dim defaultRouting As Routing = routings.FirstOrDefault(Function(n) n.IsDflt)
                If defaultRouting Is Nothing Then
                    Throw New Exception("No default routing")
                End If

                ' get the next number in the default sequence 
                Dim numberingSchemes As ChangeOrderNumSchm() = _
                    myeco.GetNumberingSchemesByType(NumSchmType.ApplicationDefault)
                Dim defaultNumberingScheme As ChangeOrderNumSchm = numberingSchemes.FirstOrDefault()
                If defaultNumberingScheme Is Nothing Then
                    Throw New Exception("No default numbering scheme")
                End If
                Dim coNumber As String = myeco.GetChangeOrderNumberBySchemeId(defaultNumberingScheme.Id)

                Dim newCo As ChangeOrder = myeco.AddChangeOrder(defaultRouting.Id, coNumber, "test", "testing desc", DateTime.Now.AddMonths(1), Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing)

            Catch ex As Exception
                MessageBox.Show(ex.Message, "Error creating ECO")
                Return
            End Try

        End Using&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The 106 error comes from the GetDefaultWorkflow function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any advice?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2013 08:21:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/addchangeorder-example/m-p/3941961#M11157</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-05-30T08:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: AddChangeOrder Example?</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/addchangeorder-example/m-p/3942064#M11158</link>
      <description>&lt;P&gt;Don't new-up any of the Service objects.&amp;nbsp; The WebServiceManager takes care of all that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Replace the line&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myeco = New ChangeOrderService&lt;/P&gt;
&lt;P&gt;with&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myeco = serviceManager.ChangeOrderService&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That should get your farther in your code.&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2013 11:51:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/addchangeorder-example/m-p/3942064#M11158</guid>
      <dc:creator>Redmond.D</dc:creator>
      <dc:date>2013-05-30T11:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: AddChangeOrder Example?</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/addchangeorder-example/m-p/3942170#M11159</link>
      <description>&lt;P&gt;Ahhh. That makes sense.&lt;/P&gt;&lt;P&gt;Its working now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2013 13:03:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/addchangeorder-example/m-p/3942170#M11159</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-05-30T13:03:51Z</dc:date>
    </item>
  </channel>
</rss>

