I'm trying to find out whether it's possible to retrieve the Interaction ID (for a running Interaction) using Data Binding. The Interaction ID is different from {{Context.PublicationId}}
and {{Context.DefinitionId}}
(in the Interaction context).
I'm referring to the ID that is indicated in the Interaction Plan Canvas URL. The identifier appears between the %23
string (a URL encoded # character) and before the /
character. For example, an Interaction identifier is highlighted below.
Is it possible to retrieve this value using Data Binding?
I'd like to use this as part of an inArgument
for a Custom Activity. For example, in the custom-activity-deskapi-node sample application, the Interaction ID is "hard coded" in the update-case config.json file:
"arguments": {
"execute": {
"inArguments":[
{ "caseID":"{{Interaction.0d59b900-04bd-443b-9c21-e0c09e76e9dc.caseID}}" }
],
"outArguments": [
],
"url": "https://mydomain.herokuapp.com/ixn/activities/update-case/execute/",
"verb": "POST",
"body": "",
"header": "",
"format": "json",
"useJwt": false,
"timeout": 10000
}
},
While this works and is fine for demonstrative purposes, it means that this Custom Activity can only be used in a defined Interaction. Ideally, I'd like to retrieve this value at runtime and change my inArgument
so it can be used by any Interaction.