<?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 Help creating a SQL database trigger for automating IDs for Collector. in ArcGIS Collector Questions</title>
    <link>https://community.esri.com/t5/arcgis-collector-questions/help-creating-a-sql-database-trigger-for/m-p/676261#M11632</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am attempting to create a database trigger that concatenates values from two different fields into an already existent empty field (or is set to null) for a newly inserted row. I'm not a DBA and I have no issue creating this type of statement in Python, but I am missing the mark in SQL. I am using an enterprise geodatabase as the backend for Collector and have used attribute rules or Python to accomplish this in the past (at a different job), but we really need this function to occur on submit and currently only have ArcGIS Server 10.5 and can't publish a feature service using ArcGIS Pro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The basic structure would be something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF [ProjectIDColumn] IS NULL&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;THEN CONCATENATE (FieldOne + "-" + FieldTwo);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated, thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Nov 2019 01:10:52 GMT</pubDate>
    <dc:creator>NDFAdmin</dc:creator>
    <dc:date>2019-11-22T01:10:52Z</dc:date>
    <item>
      <title>Help creating a SQL database trigger for automating IDs for Collector.</title>
      <link>https://community.esri.com/t5/arcgis-collector-questions/help-creating-a-sql-database-trigger-for/m-p/676261#M11632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am attempting to create a database trigger that concatenates values from two different fields into an already existent empty field (or is set to null) for a newly inserted row. I'm not a DBA and I have no issue creating this type of statement in Python, but I am missing the mark in SQL. I am using an enterprise geodatabase as the backend for Collector and have used attribute rules or Python to accomplish this in the past (at a different job), but we really need this function to occur on submit and currently only have ArcGIS Server 10.5 and can't publish a feature service using ArcGIS Pro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The basic structure would be something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF [ProjectIDColumn] IS NULL&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;THEN CONCATENATE (FieldOne + "-" + FieldTwo);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated, thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Nov 2019 01:10:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-collector-questions/help-creating-a-sql-database-trigger-for/m-p/676261#M11632</guid>
      <dc:creator>NDFAdmin</dc:creator>
      <dc:date>2019-11-22T01:10:52Z</dc:date>
    </item>
  </channel>
</rss>

