<?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: File Property doesn't return a &amp;quot;splitable&amp;quot; string in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/File-Property-doesn-t-return-a-quot-splitable-quot-string/m-p/1123933#M80959</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This issue might stem from how the file property is handled when it doesn't contain an uploaded file via a form.&lt;BR /&gt;FYI In such cases, it defaults to a single-line text property. This may be the reason as to why the type() function returns "str" and the split() function doesn't behave as expected&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;BR /&gt;Harsh&lt;BR /&gt;&lt;A href="https://farioconsulting.com" target="_blank" rel="noopener"&gt;Fario Consulting&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 18 Mar 2025 16:38:43 GMT</pubDate>
    <dc:creator>FarioConsulting</dc:creator>
    <dc:date>2025-03-18T16:38:43Z</dc:date>
    <item>
      <title>File Property doesn't return a "splitable" string</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/File-Property-doesn-t-return-a-quot-splitable-quot-string/m-p/1123895#M80957</link>
      <description>&lt;P&gt;Hey everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;we are facing a rather comical issue ...&lt;/P&gt;
&lt;P&gt;We have a contact property "trialkey" which is setup as a file-property. In this property we want to upload key-files for a trial.&lt;/P&gt;
&lt;P&gt;This key we want to link from within an e-mail.&lt;/P&gt;
&lt;P&gt;Pretty easy use-case: use HUBL to read the value of the property. Use a split function and retrieve the friendly URL.&lt;BR /&gt;As it happens when we try to do a "|split(";")" on the contact.trialkey it creates only a single object. Running a type(contact.trialkey) returns "str".&lt;BR /&gt;&lt;BR /&gt;So we are facing the probem that it seems that the split function doesn't work on a file-property object which by type-check returns string ... &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Code:&lt;/P&gt;
&lt;P&gt;Trialkey: {{ contact.trialkey }} &amp;lt;br/&amp;gt;&lt;BR /&gt;Trialkey type: {{ type(contact.trialkey) }} &amp;lt;br/&amp;gt;&lt;BR /&gt;Trialkey split: {{ contact.trialkey|split(";") }} &amp;lt;br/&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Output:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Trialkey: 218776940784;218832948439&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Trialkey type: str&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Trialkey split: [218776940784;218832948439]&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is this a bug or are we missing something here?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Mar 2025 15:30:20 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/File-Property-doesn-t-return-a-quot-splitable-quot-string/m-p/1123895#M80957</guid>
      <dc:creator>JMair</dc:creator>
      <dc:date>2025-03-18T15:30:20Z</dc:date>
    </item>
    <item>
      <title>Re: File Property doesn't return a "splitable" string</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/File-Property-doesn-t-return-a-quot-splitable-quot-string/m-p/1123933#M80959</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This issue might stem from how the file property is handled when it doesn't contain an uploaded file via a form.&lt;BR /&gt;FYI In such cases, it defaults to a single-line text property. This may be the reason as to why the type() function returns "str" and the split() function doesn't behave as expected&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;BR /&gt;Harsh&lt;BR /&gt;&lt;A href="https://farioconsulting.com" target="_blank" rel="noopener"&gt;Fario Consulting&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Mar 2025 16:38:43 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/File-Property-doesn-t-return-a-quot-splitable-quot-string/m-p/1123933#M80959</guid>
      <dc:creator>FarioConsulting</dc:creator>
      <dc:date>2025-03-18T16:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: File Property doesn't return a "splitable" string</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/File-Property-doesn-t-return-a-quot-splitable-quot-string/m-p/1124244#M80987</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;thanks for your reply!&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I tried it with a form upload. Now we dont get returned a semicolon seperated string. Now we only have an URL in the field. When trying to retrieve the ID from the URL by doing a split on "?" we have the same result as above.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Code:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Trialkey: {{ contact.trialkey }} &amp;lt;br/&amp;gt;&lt;BR /&gt;Trialkey type: {{ type(contact.trialkey) }} &amp;lt;br/&amp;gt;&lt;BR /&gt;Trialkey split: {{ contact.trialkey|split("?") }} &amp;lt;br/&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Output:&lt;BR /&gt;&lt;SPAN&gt;Trialkey: &lt;A href="https://api-eu1.hubspot.com/form-integrations/v1/uploaded-files/signed-url-redirect/219498572018?portalId=[redacted]&amp;amp;sign=KclWGoHd-BLRL3lVBdMwCQ7z-dg%3D&amp;amp;conversionId=ebffb737-0e0e-46b9-a770-98d201e088a4&amp;amp;filename=ebffb737-0e0e-46b9-a770-98d201e088a4-trialkey-test123.log" target="_blank"&gt;https://api-eu1.hubspot.com/form-integrations/v1/uploaded-files/signed-url-redirect/219498572018?portalId=[redacted]&amp;amp;sign=KclWGoHd-BLRL3lVBdMwCQ7z-dg%3D&amp;amp;conversionId=ebffb737-0e0e-46b9-a770-98d201e088a4&amp;amp;filename=ebffb737-0e0e-46b9-a770-98d201e088a4-trialkey-test123.log&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Trialkey type: str&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Trialkey split: [&lt;A href="https://api-eu1.hubspot.com/form-integrations/v1/uploaded-files/signed-url-redirect/219498572018?portalId=[redacted]&amp;amp;sign=KclWGoHd-BLRL3lVBdMwCQ7z-dg%3D&amp;amp;conversionId=ebffb737-0e0e-46b9-a770-98d201e088a4&amp;amp;filename=ebffb737-0e0e-46b9-a770-98d201e088a4-trialkey-test123.log" target="_blank"&gt;https://api-eu1.hubspot.com/form-integrations/v1/uploaded-files/signed-url-redirect/219498572018?portalId=[redacted]&amp;amp;sign=KclWGoHd-BLRL3lVBdMwCQ7z-dg%3D&amp;amp;conversionId=ebffb737-0e0e-46b9-a770-98d201e088a4&amp;amp;filename=ebffb737-0e0e-46b9-a770-98d201e088a4-trialkey-test123.log&lt;/A&gt;]&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I am kinda lost here as it doesn't make sense that the split function just isn't doing what it is supposed to do. If it was a type-mismatch .... okay but Hubl returns the type "str" for the field and by that - from my understanding - the split function should be applicable.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Mar 2025 07:44:20 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/File-Property-doesn-t-return-a-quot-splitable-quot-string/m-p/1124244#M80987</guid>
      <dc:creator>JMair</dc:creator>
      <dc:date>2025-03-19T07:44:20Z</dc:date>
    </item>
  </channel>
</rss>

