I have custom workflow action for creating document. I have outputFields in response. But when I’m using them in other actions in workflow they are empty.
{
"actionUrl": "https://example.com/create-document",
"objectTypes": [
"DEAL"
],
"inputFields": [
{
"typeDefinition": {
"name": "contractName",
"type": "string",
"fieldType": "text"
},
"supportedValueTypes": [
"STATIC_VALUE"
],
"isRequired": true
},
{
"typeDefinition": {
"name": "email",
"type": "string",
"fieldType": "text"
},
"supportedValueTypes": [
"STATIC_VALUE"
],
"isRequired": true
},
{
"typeDefinition": {
"name": "entityInput",
"type": "enumeration",
"fieldType": "select",
"optionsUrl": "https://example.com/entities"
},
"supportedValueTypes": [
"STATIC_VALUE"
]
},
{
"typeDefinition": {
"name": "templateId",
"type": "enumeration",
"fieldType": "select",
"optionsUrl": "https://example.com/templates"
},
"supportedValueTypes": [
"STATIC_VALUE"
]
}
],
"inputFieldDependencies": [
{
"dependencyType": "SINGLE_FIELD",
"dependentFieldNames": [
"entityInput",
"templateId"
],
"controllingFieldName": "email"
},
{
"dependencyType": "SINGLE_FIELD",
"dependentFieldNames": [
"templateId",
"email"
],
"controllingFieldName": "entityInput"
}
],
"outputFields": [
{
"typeDefinition": {
"name": "documentId",
"type": "string",
"fieldType": "text",
"label": "Document ID"
},
"supportedValueTypes": [
"OBJECT_PROPERTY"
]
},
{
"typeDefinition": {
"name": "documentName",
"type": "string",
"fieldType": "text",
"label": "Document Name"
},
"supportedValueTypes": [
"OBJECT_PROPERTY"
]
}
],
"objectRequestOptions": {
"properties": [
"email",
"contractName"
]
},
"labels": {
"en": {
"inputFieldLabels": {
"contractName": "Contract Name",
"email": "Sender email",
"entityInput": "Entity",
"templateId": "Template"
},
"actionName": "Create Document",
"actionDescription": "Create a document based on selected template and entity",
"appDisplayName": "Document Creator",
"actionCardContent": "Create document: {{contractName}}",
"outputFieldLabels": {
"documentId": "Document ID",
"documentName": "Document Name"
}
}
},
"functions": []
}


