<?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: UN Attribute Rules Expression Builder Arcade in ArcGIS Utility Network Questions</title>
    <link>https://community.esri.com/t5/arcgis-utility-network-questions/un-attribute-rules-expression-builder-arcade/m-p/1179436#M1815</link>
    <description>&lt;P&gt;For what you want to do, this would be a starting point:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// load all addresses
var addresses = FeatureSetByName($datastore, "AddressTableName", ["MainProvider"], false)

// filter the addresses for the main provider of the active feature
var provider = $feature.MainProvider
var filtered_addresses = Filter(addresses, "MainProvider = @provider")

// count and return error message
if(Count(filtered_addresses) &amp;gt; 25) {
    return {"errorMessage": "A provider can't supply more than 25 addresses!"}
}

// if we land here, the provider has &amp;lt;= 25 addresses
// rest of your code&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 02 Jun 2022 13:21:16 GMT</pubDate>
    <dc:creator>JohannesLindner</dc:creator>
    <dc:date>2022-06-02T13:21:16Z</dc:date>
    <item>
      <title>UN Attribute Rules Expression Builder Arcade</title>
      <link>https://community.esri.com/t5/arcgis-utility-network-questions/un-attribute-rules-expression-builder-arcade/m-p/1179426#M1813</link>
      <description>&lt;P&gt;Good evening,&amp;nbsp;&lt;/P&gt;&lt;P&gt;today I'll tried to set up my first attribute rule in my very first Utility Network but I never worked with Arcade before so I had problems doing so.&lt;/P&gt;&lt;P&gt;My topic is glassfiber so I tried to set up a rule for my adresses which have a field called main provider. There are 4 different main providers atm. I wanna count the amount of adresses with the same main provider and if there are more than 25 adresses on one i would like to get a error message. Is someone able to help me? Or someone knows how to imrpove in Arcade fast...with a free course or so. The only thing I found is how to count the amount of points in a shapfile but I would like to keep it attribute based.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind Regards from Germany&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Fynn Scharpen &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 12:59:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-utility-network-questions/un-attribute-rules-expression-builder-arcade/m-p/1179426#M1813</guid>
      <dc:creator>FynnScharpen</dc:creator>
      <dc:date>2022-06-02T12:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: UN Attribute Rules Expression Builder Arcade</title>
      <link>https://community.esri.com/t5/arcgis-utility-network-questions/un-attribute-rules-expression-builder-arcade/m-p/1179433#M1814</link>
      <description>&lt;P&gt;For getting started:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/arcade/" target="_blank" rel="noopener nofollow noreferrer"&gt;Getting Started | ArcGIS Arcade | ArcGIS Developer&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.esri.com/arcgis-blog/products/arcgis-online/data-management/your-arcade-questions-answered/" target="_blank" rel="nofollow noopener noreferrer"&gt;Your Arcade Questions Answered (esri.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/attribute-rules-videos/attribute-rules-in-arcade-from-scratch-demo/m-p/976479" target="_blank" rel="noopener"&gt;Attribute Rules in Arcade (From Scratch) - Demo Th... - Esri Community&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/de/pro-app/2.8/help/data/geodatabases/overview/an-overview-of-attribute-rules.htm" target="_blank" rel="noopener nofollow noreferrer"&gt;Introduction to Attribute Rules&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Useful documentation (I have this bookmarked):&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/arcade/function-reference/" target="_blank" rel="noopener nofollow noreferrer"&gt;Function Reference | ArcGIS Arcade | ArcGIS Developer&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code examples:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/arcade-expressions" target="_blank" rel="noopener nofollow noreferrer"&gt;GitHub - Esri/arcade-expressions: ArcGIS Arcade expression templates for all supported profiles in t...&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some videos:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/attribute-rules-videos/bd-p/attribute-rules-videos" target="_blank" rel="noopener"&gt;Attribute Rules Videos - Esri Community&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And of course the&amp;nbsp;&lt;A href="https://community.esri.com/t5/attribute-rules/ct-p/attribute-rules" target="_blank" rel="noopener"&gt;Attribute Rules - Esri Community&lt;/A&gt;&amp;nbsp;for asking all of your questions about Attribute Rules.&lt;/P&gt;&lt;P&gt;Sadly, there's no group for general Arcade yet; the jury is out on whether to post those in the ArcGIS Pro group or the AGOL group...&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 13:17:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-utility-network-questions/un-attribute-rules-expression-builder-arcade/m-p/1179433#M1814</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2022-06-02T13:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: UN Attribute Rules Expression Builder Arcade</title>
      <link>https://community.esri.com/t5/arcgis-utility-network-questions/un-attribute-rules-expression-builder-arcade/m-p/1179436#M1815</link>
      <description>&lt;P&gt;For what you want to do, this would be a starting point:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// load all addresses
var addresses = FeatureSetByName($datastore, "AddressTableName", ["MainProvider"], false)

// filter the addresses for the main provider of the active feature
var provider = $feature.MainProvider
var filtered_addresses = Filter(addresses, "MainProvider = @provider")

// count and return error message
if(Count(filtered_addresses) &amp;gt; 25) {
    return {"errorMessage": "A provider can't supply more than 25 addresses!"}
}

// if we land here, the provider has &amp;lt;= 25 addresses
// rest of your code&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 02 Jun 2022 13:21:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-utility-network-questions/un-attribute-rules-expression-builder-arcade/m-p/1179436#M1815</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2022-06-02T13:21:16Z</dc:date>
    </item>
  </channel>
</rss>

