<?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>question Re: NiFi EnvokeHTTP - putting current date on HTTP URL property in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/NiFi-EnvokeHTTP-putting-current-date-on-HTTP-URL-property/m-p/413032#M253815</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/137834"&gt;@Justinh_klik&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Welcome to the community!&lt;/P&gt;&lt;P&gt;Unfortunately, both the url you shared are truncated and I am unable to see what you are attempting.&lt;BR /&gt;&lt;BR /&gt;My initial thought would be to use a GenerateFlowFile processor sceduled based on a cron to run daily.&amp;nbsp; &amp;nbsp;You can use NiFi Expression Language (NEL) to dynamically define Attributes on the FlowFile each time GenerateFlowFile is scheduled to execute for "since" and "until"&amp;nbsp; date strings you need to use in the URL used by the InvokeHTTP processor.&lt;BR /&gt;&lt;BR /&gt;The GenerateFlowFile&amp;nbsp; processor passes this daily generated FlowFile to the InvokeHTTP processor trigger its daily execution.&amp;nbsp; &amp;nbsp;The "HTTP URL" property in the InvokeHTTP processor also support NEL.&amp;nbsp; &amp;nbsp;Something like the following:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;https://api.pagerduty.com/oncalls?since=${since}&amp;amp;until=${until}&amp;amp;users&amp;amp;Schedule_ids...&lt;/LI-CODE&gt;&lt;P&gt;${since} and ${until} within above URL would get replaced with the values assigned to the FlowFile attributes "since" and "until" that exist in the FlowFile being passed to the InvokeHTTP processor.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help our community grow. If you found&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;any&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;of the suggestions/solutions provided helped you with solving your issue or answering your question, please take a moment to login and click "&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Accept as Solution&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;" on&amp;nbsp;&lt;STRONG&gt;one or more&lt;/STRONG&gt;&amp;nbsp;of them that helped.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;BR /&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 05 Dec 2025 16:25:28 GMT</pubDate>
    <dc:creator>MattWho</dc:creator>
    <dc:date>2025-12-05T16:25:28Z</dc:date>
    <item>
      <title>NiFi EnvokeHTTP - putting current date on HTTP URL property</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-EnvokeHTTP-putting-current-date-on-HTTP-URL-property/m-p/413030#M253813</link>
      <description>&lt;P&gt;I need to pull data from pager duty that needs a date in the url.&amp;nbsp; This is an example:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://api.pagerduty.com/oncalls?include%5B%5D=users&amp;amp;schedule_ids%5B%5D=AAAAAA&amp;amp;schedule_ids%5B%5D=BBBBBB&amp;amp;schedule_ids%5B%5D=CCCCCC&amp;amp;schedule_ids%5B%5D=DDDDDD&amp;amp;since=2025-12-04&amp;amp;until=2025-12-05&amp;amp;earliest=true" target="_blank" rel="noopener"&gt;https://api.pagerduty.com/oncalls?include%5B%5D=users&amp;amp;schedule_ids%5B%5D=AAAAAA&amp;amp;schedule_ids%5B%5D=BBBBBB&amp;amp;schedule_ids%5B%5D=CCCCCC&amp;amp;schedule_ids%5B%5D=DDDDDD&amp;amp;since=2025-12-04&amp;amp;until=2025-12-05&amp;amp;earliest=true&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;The two parameters are since and until.&amp;nbsp; The intent is this runs once a day and a new date value set for each day.&amp;nbsp; Something tells me it may look like this:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://api.pagerduty.com/oncalls?include%5B%5D=users&amp;amp;schedule_ids%5B%5D=AAAAAA&amp;amp;schedule_ids%5B%5D=BBBBBB&amp;amp;schedule_ids%5B%5D=CCCCCC&amp;amp;schedule_ids%5B%5D=DDDDDD&amp;amp;since=2025-12-04&amp;amp;until=2025-12-05&amp;amp;earliest=true" target="_blank" rel="noopener"&gt;https://api.pagerduty.com/oncalls?include%5B%5D=users&amp;amp;schedule_ids%5B%5D=AAAAAA&amp;amp;schedule_ids%5B%5D=BBBBBB&amp;amp;schedule_ids%5B%5D=CCCCCC&amp;amp;schedule_ids%5B%5D=DDDDDD&amp;amp;since=#{since_date}&amp;amp;until=#{until_date}&amp;amp;earliest=true&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but the how I don't know.&amp;nbsp; I'll continue searching, but if anyone has a solution I will be thankful.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Dec 2025 15:57:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-EnvokeHTTP-putting-current-date-on-HTTP-URL-property/m-p/413030#M253813</guid>
      <dc:creator>Justinh_klik</dc:creator>
      <dc:date>2025-12-05T15:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi EnvokeHTTP - putting current date on HTTP URL property</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-EnvokeHTTP-putting-current-date-on-HTTP-URL-property/m-p/413032#M253815</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/137834"&gt;@Justinh_klik&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Welcome to the community!&lt;/P&gt;&lt;P&gt;Unfortunately, both the url you shared are truncated and I am unable to see what you are attempting.&lt;BR /&gt;&lt;BR /&gt;My initial thought would be to use a GenerateFlowFile processor sceduled based on a cron to run daily.&amp;nbsp; &amp;nbsp;You can use NiFi Expression Language (NEL) to dynamically define Attributes on the FlowFile each time GenerateFlowFile is scheduled to execute for "since" and "until"&amp;nbsp; date strings you need to use in the URL used by the InvokeHTTP processor.&lt;BR /&gt;&lt;BR /&gt;The GenerateFlowFile&amp;nbsp; processor passes this daily generated FlowFile to the InvokeHTTP processor trigger its daily execution.&amp;nbsp; &amp;nbsp;The "HTTP URL" property in the InvokeHTTP processor also support NEL.&amp;nbsp; &amp;nbsp;Something like the following:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;https://api.pagerduty.com/oncalls?since=${since}&amp;amp;until=${until}&amp;amp;users&amp;amp;Schedule_ids...&lt;/LI-CODE&gt;&lt;P&gt;${since} and ${until} within above URL would get replaced with the values assigned to the FlowFile attributes "since" and "until" that exist in the FlowFile being passed to the InvokeHTTP processor.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help our community grow. If you found&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;any&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;of the suggestions/solutions provided helped you with solving your issue or answering your question, please take a moment to login and click "&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Accept as Solution&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;" on&amp;nbsp;&lt;STRONG&gt;one or more&lt;/STRONG&gt;&amp;nbsp;of them that helped.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;BR /&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Dec 2025 16:25:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-EnvokeHTTP-putting-current-date-on-HTTP-URL-property/m-p/413032#M253815</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2025-12-05T16:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi EnvokeHTTP - putting current date on HTTP URL property</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-EnvokeHTTP-putting-current-date-on-HTTP-URL-property/m-p/413064#M253828</link>
      <description>&lt;P&gt;Matt,&lt;/P&gt;&lt;P&gt;After some digging I found that I could use an updateattribute processor.&amp;nbsp; In it I create two custom attributes:&lt;/P&gt;&lt;P&gt;since_date&lt;BR /&gt;${now():format("yyyy-MM-dd")}&lt;/P&gt;&lt;P&gt;since_date_1&lt;BR /&gt;${now():toNumber():minus(86400000):format("yyyy-MM-dd")}&lt;/P&gt;&lt;P&gt;Then later in the InvokeHTTP processor I can use the custom attributes in the url line:&lt;/P&gt;&lt;P&gt;... &amp;amp;since=${since_date}&amp;amp;until=${until_date}&amp;amp;earliest=true&lt;/P&gt;&lt;P&gt;Even later I then learned those attributes can be created in the GenerateFlowfile processor or used directly in the url as the formula:&lt;/P&gt;&lt;P&gt;${now():format("yyyy-MM-dd")}&lt;/P&gt;&lt;P&gt;which is along the lines of what you posted.&amp;nbsp; Thank you for the response.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Dec 2025 13:58:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-EnvokeHTTP-putting-current-date-on-HTTP-URL-property/m-p/413064#M253828</guid>
      <dc:creator>Justinh_klik</dc:creator>
      <dc:date>2025-12-09T13:58:59Z</dc:date>
    </item>
  </channel>
</rss>

