I am trying to get the outArgument from 1 custom activity to be the inArgument of another. I have looked at the Desk.com example with creating and updating a case but have been unable to translate that into my activities. After the interaction has been saved, not activated, I have done an API call to view the interaction. The outArguments for the first custom activity is:

"outArguments": [{ "targetingID": "text" }]

The inArguments for the second activity is:


REST-1 is the correct ActivityKey for the first custom activity but I get the following error message:

Activity REST-2 of type REST has an argument targetingID which is not a valid argument

Is there something I am missing in order to get these activities "synced up"?

  • Looks OK to me, are you able to share the public URLs to your config.json files for both of your custom activities? Nov 15, 2016 at 21:22
  • Yes, here are both config.json files and the saved interaction that I pulled back from the API. gist.github.com/anonymous/5e399d43496c0998f149a76ceaead4b9 Nov 16, 2016 at 20:54
  • In your second activity config.json try changing "inArguments": [{"targetingID": ""}], to "inArguments": [{"targetingID": "{{Interaction.REST-1.targetingID}}"}], Nov 16, 2016 at 21:16
  • I had tried that in the past and still gave me the same error message. Through Postmonger I am able to find and append the CustomerKey to the data binding for the inArguments. Do you know where the custom activities look for the outArguments? Is it in the config,json or in the payload after the activity is configured? Nov 16, 2016 at 22:26
  • That's a good question, sorry I'm not sure. From the create/update case example, it appears that it looks in the config.json file (which is just plain stupid as the Activity Key will change). Nov 17, 2016 at 6:07

1 Answer 1


In order to use the outArgument from one REST activity as an inArgument for another REST activity the schema is required. The schema is needed to compare the data types of the value being passed.

The config.json using the inArgument needs to have "schema": { "arguments": { "execute": { "inArguments": [ { "key": { "dataType": "Text", "isNullable": false, "direction": "In" } } ] } } }

The config.json using the outArgument needs to have "schema": { "arguments": { "execute": { "outArguments": [ { "key": { "dataType": "Text", "isNullable": false, "access": "Visible", "direction": "Out" } } ] } } }

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .