Accessing Data pill variables from Script parser Script

JPing
Tera Expert

Hello, 

 

I have created a Data Stream Action. I set a variable in Pagination Setup Step, I then use this in construction of the Rest Step. It works perfectly. I am able to drag the pill into the Resource path. 

 

I would like to use this same variable in the Script Parser Step, how do I access this variable?

 

Here is the Script parser Script 

(function parse(inputs, outputs) {

    var item = JSON.parse(inputs.sourceItem);
    outputs.targetObject.name = item[0];
    outputs.targetObject.email = item[1];
    outputs.targetObject.query = <varaible set in the pagination step>;
}

 

My Pagination step does not paginate on pages but rather on an array of queries. For each query a set of data is returned. As I parse through each row and I want to add the query that was used to the import set table. To solve this all I need to do is access the variable I set in the pagination step. 

 

Thanks in advance.  

10 REPLIES 10

Hi @Service_RNow ,
The docs also don't talk about it. The parser script step doesn't seem to have access to fd_data object like you'd typically have in other script steps, there's not even a way to define inputs in addition to the imported data itself