<?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 Change the alias name on table in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/change-the-alias-name-on-table/m-p/1416987#M11449</link>
    <description>&lt;P&gt;Using ArcGIS Pro 3.2.2.&lt;BR /&gt;&lt;BR /&gt;Is there a way to update the Alias on a "File Geodatabase Table" using the C# SDK?&lt;BR /&gt;&lt;BR /&gt;Have tried to execute the &lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/functions/alteraliasname.htm" target="_self"&gt;AlterAliasName&lt;/A&gt;&lt;/P&gt;&lt;P&gt;string toolname = "AlterAliasName";&lt;BR /&gt;string database = Project.Current.DefaultGeodatabasePath;&lt;BR /&gt;string inputTable = Path.Combine(database, tabel);&lt;BR /&gt;&lt;SPAN&gt;IReadOnlyCollection&amp;lt;string&amp;gt; parameters = Geoprocessing.MakeValueArray(inputTable, alias);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;IGPResult gp_result = await Geoprocessing.ExecuteToolAsync(toolname, parameters);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The gp_result.IsFailed is always true and no additional information is given in the response obj.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 30 Apr 2024 13:03:58 GMT</pubDate>
    <dc:creator>MariusN</dc:creator>
    <dc:date>2024-04-30T13:03:58Z</dc:date>
    <item>
      <title>Change the alias name on table</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/change-the-alias-name-on-table/m-p/1416987#M11449</link>
      <description>&lt;P&gt;Using ArcGIS Pro 3.2.2.&lt;BR /&gt;&lt;BR /&gt;Is there a way to update the Alias on a "File Geodatabase Table" using the C# SDK?&lt;BR /&gt;&lt;BR /&gt;Have tried to execute the &lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/functions/alteraliasname.htm" target="_self"&gt;AlterAliasName&lt;/A&gt;&lt;/P&gt;&lt;P&gt;string toolname = "AlterAliasName";&lt;BR /&gt;string database = Project.Current.DefaultGeodatabasePath;&lt;BR /&gt;string inputTable = Path.Combine(database, tabel);&lt;BR /&gt;&lt;SPAN&gt;IReadOnlyCollection&amp;lt;string&amp;gt; parameters = Geoprocessing.MakeValueArray(inputTable, alias);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;IGPResult gp_result = await Geoprocessing.ExecuteToolAsync(toolname, parameters);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The gp_result.IsFailed is always true and no additional information is given in the response obj.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2024 13:03:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/change-the-alias-name-on-table/m-p/1416987#M11449</guid>
      <dc:creator>MariusN</dc:creator>
      <dc:date>2024-04-30T13:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: Change the alias name on table</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/change-the-alias-name-on-table/m-p/1417641#M11451</link>
      <description>&lt;P&gt;Yes, you can by using the &lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic40930.html" target="_self"&gt;SchemaBuilder.Modify&lt;/A&gt; in the &lt;A href="https://github.com/Esri/arcgis-pro-sdk/wiki/ProConcepts-DDL" target="_self"&gt;DDL API&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;A quick snippet -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;using (Table table = geodatabase.OpenDataset&amp;lt;Table&amp;gt;("TableName"))
using (TableDefinition tableDefinition = table.GetDefinition())
{
  SchemaBuilder sb = new SchemaBuilder(geodatabase);

  TableDescription updateTableDescription = new TableDescription(tableDefinition);
  updateTableDescription.AliasName = "New Alias Name";
  schemaBuilder.Modify(updateTableDescription);

  bool buildStatus = schemaBuilder.Build();
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2024 16:57:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/change-the-alias-name-on-table/m-p/1417641#M11451</guid>
      <dc:creator>Aashis</dc:creator>
      <dc:date>2024-05-01T16:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: Change the alias name on table</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/change-the-alias-name-on-table/m-p/1417938#M11453</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/221628"&gt;@Aashis&lt;/a&gt; The provided code sample works.&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2024 07:05:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/change-the-alias-name-on-table/m-p/1417938#M11453</guid>
      <dc:creator>MariusN</dc:creator>
      <dc:date>2024-05-02T07:05:14Z</dc:date>
    </item>
  </channel>
</rss>

