# Pass input fields as output in workflow extension

**URL:** <https://community.hubspot.com/t/pass-input-fields-as-output-in-workflow-extension/54051>\
**Category:** Data Hub\
**Created:** [March 30, 2022, 6:46am UTC](https://community.hubspot.com/t/pass-input-fields-as-output-in-workflow-extension/54051 "2022-03-30T06:46:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![VJeganathan](https://avatars.discourse-cdn.com/v4/letter/v/8dc957/32.png) [@VJeganathan](https://community.hubspot.com/u/VJeganathan)\
**Post date:** [March 30, 2022, 6:46am UTC](https://community.hubspot.com/t/pass-input-fields-as-output-in-workflow-extension/54051/1 "2022-03-30T06:46:04Z")

</div>

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](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}} }});}"

}

```

]

}

---

<div class="post-metadata">

**Author:** ![JenWeiss](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jenweiss/32/93582_2.png) [@JenWeiss](https://community.hubspot.com/u/JenWeiss)\
**Post date:** [March 31, 2022, 2:08pm UTC](https://community.hubspot.com/t/pass-input-fields-as-output-in-workflow-extension/54051/2 "2022-03-31T14:08:14Z")

</div>

Hi @VJeganathan,  
Thank you for reaching out!  
I understand that you are trying to send values to another workflow. I would like to tag in some of your experts in on this [@Phil\_Vallender](https://community.hubspot.com/t5/user/viewprofilepage/user-id/74), @DavidDennison and @Josh. Would you be able to offer some advice to @VJeganathan on how to achieve this?  
Best,  
@JenWeiss

---

<div class="post-metadata">

**Author:** ![VJeganathan](https://avatars.discourse-cdn.com/v4/letter/v/8dc957/32.png) [@VJeganathan](https://community.hubspot.com/u/VJeganathan)\
**Post date:** [April 1, 2022, 4:52am UTC](https://community.hubspot.com/t/pass-input-fields-as-output-in-workflow-extension/54051/3 "2022-04-01T04:52:58Z")

</div>

Yes @JenWeiss . I want to take input from users via UI and forward that as output

---

<div class="post-metadata">

**Author:** ![FPortillo6](https://avatars.discourse-cdn.com/v4/letter/f/b782af/32.png) [@FPortillo6](https://community.hubspot.com/u/FPortillo6)\
**Post date:** [January 13, 2023, 8:55pm UTC](https://community.hubspot.com/t/pass-input-fields-as-output-in-workflow-extension/54051/4 "2023-01-13T20:55:40Z")

</div>

Were you able to figure this out?
