Hi,
I have designed simple workflow screen. Hacinf 2 input fields. And I want that as output field as well to send values to another item in a workflow. How to achieve that. Please refer below code. I want to replace {{staticInput}} in out field as user input value. Please help to solve this.
{
“actionUrl”:“https://webhook.site/94d09471-6f4c-4a7f-bae2-c9a585dd41e0”,
“objectTypes”:[
"CONTACT"
],
“inputFields”:[
{
"typeDefinition":{
"name":"staticInput",
"type":"string",
"fieldType":"text"
},
"supportedValueTypes":\[
"STATIC\_VALUE"
],
"isRequired":true
},
{
"typeDefinition":{
"name":"objectInput",
"type":"string",
"fieldType":"text"
},
"supportedValueTypes":\[
"OBJECT\_PROPERTY"
],
"isRequired":true
}
],
“outputFields”:[
{
"typeDefinition":{
"name":"myOutput",
"type":"string",
"fieldType":"text"
},
"supportedValueTypes":\[
"STATIC\_VALUE"
]
}
],
“objectRequestOptions”:{
"properties":\[
"email"
]
},
“labels”:{
"en":{
"inputFieldLabels":{
"staticInput":"Static Input",
"objectInput":"Object Property Input"
},
"actionName":"My Extension",
"actionDescription":"My Extension Description",
"appDisplayName":"My App Display Name",
"actionCardContent":"My Action Card Content - {{staticInput}}"
}
},
“published” : true,
“functions”:[
{
"functionType":"POST\_ACTION\_EXECUTION",
"functionSource":"exports.main = (event, callback) => {callback({outputFields: { myOutput: {{staticInput}} }});}"
}
]
}