# Custom workflow for property

**URL:** <https://community.hubspot.com/t/custom-workflow-for-property/85892>\
**Category:** CRM\
**Tags:** professional\
**Created:** [July 21, 2023, 9:59pm UTC](https://community.hubspot.com/t/custom-workflow-for-property/85892 "2023-07-21T21:59:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mjuozokas](https://avatars.discourse-cdn.com/v4/letter/m/7993a0/32.png) [@mjuozokas](https://community.hubspot.com/u/mjuozokas)\
**Post date:** [July 21, 2023, 9:59pm UTC](https://community.hubspot.com/t/custom-workflow-for-property/85892/1 "2023-07-21T21:59:32Z")

</div>

I am trying to write a workflow with custom code but cannot seem to get it to work using the format data action.

I want to take the text in an existing contact property and in a separate contact property, combine it with and after a line of text.

I tried doing a concat function and it didn’t work. I don’t understand how I am supposed to implement where this formatting is happening.

Any ideas?

---

<div class="post-metadata">

**Author:** ![karstenkoehler](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/karstenkoehler/32/68554_2.png) [@karstenkoehler](https://community.hubspot.com/u/karstenkoehler)\
**Post date:** [July 22, 2023, 5:13am UTC](https://community.hubspot.com/t/custom-workflow-for-property/85892/2 "2023-07-22T05:13:36Z")

</div>

Hi @mjuozokas,

Can you please share the code the what exactly you’re trying to concatenate?

You might not even need custom code, by the way.

Let’s assume your existing contact property is the record ID and you want to prepend the line of text “ID-”, so that a result would look like this: ID-132435

If so, you could simply use the “Set property value” action in your workflow. It accepts personalization tokens and text.

 ![karstenkoehler_0-1690002758990.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/0/0dd91b4c6cee02ea44b0e8e5a285ae23e0d50d9a.png)

Hope this helps!

---

<div class="post-metadata">

**Author:** ![Niloy\_Islam](https://avatars.discourse-cdn.com/v4/letter/n/90db22/32.png) [@Niloy\_Islam](https://community.hubspot.com/u/Niloy_Islam)\
**Post date:** [September 11, 2024, 11:52am UTC](https://community.hubspot.com/t/custom-workflow-for-property/85892/3 "2024-09-11T11:52:11Z")

</div>

I have a question quite similar this topic:

I’m trying to create custom workflow action. I need to send **internal\_name** of a selected input property “propertyName”. I’m attaching the payload that I’m sending via postman. Can anyone please guide me here how I can send those data to the endpoint. It send the value but i need the **internal name** or the property name.  
Thanks in advance.

```lia-code-sample
{
 "actionUrl": " ******",
 "objectTypes": [
 "CONTACT"
 ],
 "published": true,
 "inputFields": [
 {
 "typeDefinition": {
 "name": "propertyName",
 "type": "object_coordinates",
 "fieldType": "text"
 },
 "supportedValueTypes": [
 "OBJECT_PROPERTY"
 ],
 "isRequired": true
 }
 ],
 "outputFields": [
 {
 "typeDefinition": {
 "name": "message",
 "type": "string",
 "fieldType": "text"
 },
 "supportedValueTypes": [
 "STATIC_VALUE"
 ]
 }
 ],
 "labels": {
 "en": {
 "actionName": "test",
 "inputFieldLabels": {
 "propertyName": "Property to save the result (Optional)"
 },
 "outputFieldLabels": {
 "message": "Message"
 }
 }
 },
 "functions": [
 {
 "functionType": "PRE_FETCH_OPTIONS",
 "functionSource": "exports.main = (event, callback) => {\n callback(transformRequest(event));\n}\n\nfunction transformRequest(request) {\n return {\n webhookUrl: ' ******',\n body:{\n Property_name: request.inputField.propertyName },\n contentType: 'application/json',\n accept: 'application/json',\n httpMethod: 'POST'\n };\n}"

 }
 ]
}

```
