Pass dynamic input in Data stream action

Sunil62
Tera Contributor

Hello Experts,

 

I have a requirement where I am creating data stream action to call Rest message and using that action in my data source. The challenge here is I need to pass from date and to date as parameters in end point URL. 

 

It means I need to pass those dates dynamically. So from date will be stored in system property and to date will be the current date(today's date). I tried to create inputs as fromDate and toDate and selected the action type as Script, Script (plain) and Script (Server-side). Then I tried to pass the fromDate and toDate as <gs.getProperty('fromDate')> and <gs.now()>. Its not working.

 

Please suggest how to pass from date and to date as dynamically in rest step URL for data stream action.

 

Thanks,

Sunil Safare

0 REPLIES 0