Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Passing Input Values to Connectors

Hi!

I've been passing input to my connectors in Application Integration via a small JavaScript, but I'm aware that this most likely isn't the way to do so. However, I'm getting stuck finding out the way that we're supposed to do so.

Right now, I will have a JavaScript like so:

``` 

function executeScript(event) {
var input = event.getParameter("variableA");
 
event.setParameter("`Task_21_connectorInputPayload`", input);
}
```
 
This takes a variable that has been created in a Data Map task, and inserts it as an input value to the next step, which is a BigQuery connector that needs some input. The reason why I'm not assigning this value to the `Task_21_connectorInputPayload`, is because this variable is not presented in the left sidebar in during data mapping, nor can I assign this to `Task_21_connectorInputPayload`, since the ` can't be in the variable name. And mapping it to Task_21_connectorInputPayload doesn't work, since the connector won't recognise it as input.
 
What would be the better way to achieve this?
 
Many thanks!
 
Solved Solved
1 1 276
1 ACCEPTED SOLUTION

Hello,

The other way to achieve this is to use a Data Mapping task. It is more on the "No Code / Low Code" way of doing it. 

phertzog_0-1715929906588.png

On the left side you put the source variable and on the right you have the destination variable. You can also make some light transformations if needed (in my example I make some string manipulation).

Regards

Philippe

View solution in original post

1 REPLY 1

Hello,

The other way to achieve this is to use a Data Mapping task. It is more on the "No Code / Low Code" way of doing it. 

phertzog_0-1715929906588.png

On the left side you put the source variable and on the right you have the destination variable. You can also make some light transformations if needed (in my example I make some string manipulation).

Regards

Philippe

Top Solution Authors