<?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 Re: Get change order user defined property by Vault Api problem in Vault Customization Forum</title>
    <link>https://forums.autodesk.com/t5/vault-customization-forum/get-change-order-user-defined-property-by-vault-api-problem/m-p/12139412#M1540</link>
    <description>&lt;P&gt;The entity class id for Change Order is "CO"; you need to change "CUSTENT_CHANGEORDER" to "CO".&lt;/P&gt;</description>
    <pubDate>Mon, 31 Jul 2023 19:09:39 GMT</pubDate>
    <dc:creator>Markus.Koechl</dc:creator>
    <dc:date>2023-07-31T19:09:39Z</dc:date>
    <item>
      <title>Get change order user defined property by Vault Api problem</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/get-change-order-user-defined-property-by-vault-api-problem/m-p/12138172#M1539</link>
      <description>&lt;P&gt;hi.&amp;nbsp;&lt;/P&gt;&lt;P&gt;i want to get a user defined properties value of my change orders by vault api using c#.&lt;/P&gt;&lt;P&gt;how can i get value of a user defined properties named : Responsible discipline&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i write this code but it doesn't work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;            foreach (var changeOrder in AllChangeOrders)
            {
                MessageBox.Show(changeOrder.Num);
                // Get the user-defined property definition for "Responsible Discipline"
                PropDef responsibleDisciplinePropDef = VaultConnection.WebServiceManager.PropertyService.GetPropertyDefinitionsByEntityClassId("CUSTENT_CHANGEORDER")
                        .FirstOrDefault(pd =&amp;gt; pd.DispName == "Responsible Discipline");

                if (responsibleDisciplinePropDef != null)
                {
                    // Get the value of the "Responsible Discipline" property for the change order
                    PropInst responsibleDisciplinePropInst = VaultConnection.WebServiceManager.PropertyService.GetProperties("CUSTENT_CHANGEORDER", new long[] { changeOrder.Id }, new long[] { responsibleDisciplinePropDef.Id })
                        .FirstOrDefault();
                    string responsibleDisciplineValue = (string)responsibleDisciplinePropInst.Val;


                }

            }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please help me .&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2023 18:18:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/get-change-order-user-defined-property-by-vault-api-problem/m-p/12138172#M1539</guid>
      <dc:creator>Chiften</dc:creator>
      <dc:date>2023-07-31T18:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: Get change order user defined property by Vault Api problem</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/get-change-order-user-defined-property-by-vault-api-problem/m-p/12139412#M1540</link>
      <description>&lt;P&gt;The entity class id for Change Order is "CO"; you need to change "CUSTENT_CHANGEORDER" to "CO".&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2023 19:09:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/get-change-order-user-defined-property-by-vault-api-problem/m-p/12139412#M1540</guid>
      <dc:creator>Markus.Koechl</dc:creator>
      <dc:date>2023-07-31T19:09:39Z</dc:date>
    </item>
  </channel>
</rss>

