# How to change the template connector properties compontent

**URL:** <https://forum.camunda.io/t/how-to-change-the-template-connector-properties-compontent/56446>\
**Category:** Discussion & Questions\
**Tags:** zeebe\
**Created:** [October 28, 2024, 10:10am UTC](https://forum.camunda.io/t/how-to-change-the-template-connector-properties-compontent/56446 "2024-10-28T10:10:30Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![andyqier88](https://forum.camunda.io/user_avatar/forum.camunda.io/andyqier88/32/22220_2.png) [@andyqier88](https://forum.camunda.io/u/andyqier88)\
**Post date:** [October 28, 2024, 10:10am UTC](https://forum.camunda.io/t/how-to-change-the-template-connector-properties-compontent/56446/1 "2024-10-28T10:10:30Z")

</div>

![image](https://forum.camunda.io/uploads/default/original/3X/9/2/92261379473096ef87a0c8c84fd62ca74de4e136.png)

I have a request to change the URL component indicated on the diagram to a Table component. For example, when I click on the URL, there will be a dialog where a set of URL data is obtained from an API. Users can choose the URL they want. What should I do?  
I explored the ‘bpmn-js-properties-panel’ and ‘bpmn-js-element-templates’ libraries, but I don’t know where to modify them  
If anyone knows, can you tell me? Thank you very much！

---

<div class="post-metadata">

**Author:** ![cpbpm](https://forum.camunda.io/letter_avatar_proxy/v4/letter/c/919ad9/32.png) [@cpbpm](https://forum.camunda.io/u/cpbpm)\
**Post date:** [October 28, 2024, 11:07am UTC](https://forum.camunda.io/t/how-to-change-the-template-connector-properties-compontent/56446/2 "2024-10-28T11:07:11Z")

</div>

you can use templates to modify the fields displayed in the desktop modeler.

refer the documentation: [Configuring templates | Camunda 8 Docs](https://docs.camunda.io/docs/components/modeler/desktop-modeler/element-templates/configuring-templates/)

---

<div class="post-metadata">

**Author:** ![nathan.loding](https://forum.camunda.io/user_avatar/forum.camunda.io/nathan.loding/32/24171_2.png) [@nathan.loding](https://forum.camunda.io/u/nathan.loding)\
**Post date:** [October 28, 2024, 11:54am UTC](https://forum.camunda.io/t/how-to-change-the-template-connector-properties-compontent/56446/3 "2024-10-28T11:54:36Z")

</div>

Hi @andyqier88, welcome to the forums! To elaborate on the previous answer, you can fork and update any of the Connector Templates from Camunda; you can find them in the [camunda/connectors repository on GitHub](https://github.com/camunda/connectors). Then you would use the new template in your projects.

As long as the inputs and outputs aren’t renamed, you don’t need to build a custom Connector. However, if you change those names or add new ones, you’ll need to extend the Connector itself also; the the runtime code is available in the same repo above ([relevant docs](https://docs.camunda.io/docs/8.3/components/connectors/custom-built-connectors/connector-sdk/)).

However, the templates don’t support the dynamism I think you’re looking for. The options within the template are static, and you can hide/show them based on other selections within the template. It would require, I think, a custom build of Desktop Modeler.

There may be some creative workarounds, though. How often do the URLs change when designing processes? Are they different per user?

---

<div class="post-metadata">

**Author:** ![andyqier88](https://forum.camunda.io/user_avatar/forum.camunda.io/andyqier88/32/22220_2.png) [@andyqier88](https://forum.camunda.io/u/andyqier88)\
**Post date:** [October 29, 2024, 1:02am UTC](https://forum.camunda.io/t/how-to-change-the-template-connector-properties-compontent/56446/4 "2024-10-29T01:02:20Z")

</div>

Thank you for your reply! I know how to change the template files. In fact, I want to modify the source code of the template rendering UI, then I can change the UI style and it can be combined with the data from our internal system

---

<div class="post-metadata">

**Author:** ![andyqier88](https://forum.camunda.io/user_avatar/forum.camunda.io/andyqier88/32/22220_2.png) [@andyqier88](https://forum.camunda.io/u/andyqier88)\
**Post date:** [October 29, 2024, 1:11am UTC](https://forum.camunda.io/t/how-to-change-the-template-connector-properties-compontent/56446/5 "2024-10-29T01:11:50Z")

</div>

yeah@nathan.loding Thank you for your reply! We have some internal system data that is tenant isolated, so the URLs chosen by users may be different.In fact, I want to modify the source code of the template rendering UI, then I can change the UI style and it can be combined with the data from our internal system.  
From another perspective, what I want to change is the logic of UI rendering based on template JSON. I want to modify the source code of the template rendering UI, then I can change the UI style and it can be combined with the data from our internal system

---

<div class="post-metadata">

**Author:** ![nathan.loding](https://forum.camunda.io/user_avatar/forum.camunda.io/nathan.loding/32/24171_2.png) [@nathan.loding](https://forum.camunda.io/u/nathan.loding)\
**Post date:** [October 29, 2024, 12:12pm UTC](https://forum.camunda.io/t/how-to-change-the-template-connector-properties-compontent/56446/6 "2024-10-29T12:12:56Z")

</div>

@andyqier88 - very interesting use case and ask. I don’t think there’s any existing hooks for this, so you would be altering core code, which could be a maintenance headache. But I think it’s an interesting idea! I’ll see if I can get someone from the Modeler or Connector team to provide some direction.

---

<div class="post-metadata">

**Author:** ![andyqier88](https://forum.camunda.io/user_avatar/forum.camunda.io/andyqier88/32/22220_2.png) [@andyqier88](https://forum.camunda.io/u/andyqier88)\
**Post date:** [October 30, 2024, 8:11am UTC](https://forum.camunda.io/t/how-to-change-the-template-connector-properties-compontent/56446/7 "2024-10-30T08:11:59Z")

</div>

![微信截图_20241030160204](https://forum.camunda.io/uploads/default/original/3X/0/3/03aeb1ea7ea9a69fbf23e8a52b50e7694df91d41.jpeg)  
@nathan.loding Thank you for your detailed and serious response. I am sorry that the product manager has changed his requirements: he wants to click first task or click a button on the right panel to request a service api to fetch data  
and assign a value to properties panel on the right.  
e.g. we get URL data is ‘[http://abc.com](http://abc.com)’,then the URL input  
changes ‘[http://abc.com](http://abc.com)’ from ‘[http://192.168](http://192.168)…’,and Headers,  
Query params are the same.  
Do you have any good solutions or should I ask other teams?

---

<div class="post-metadata">

**Author:** ![nathan.loding](https://forum.camunda.io/user_avatar/forum.camunda.io/nathan.loding/32/24171_2.png) [@nathan.loding](https://forum.camunda.io/u/nathan.loding)\
**Post date:** [October 30, 2024, 1:40pm UTC](https://forum.camunda.io/t/how-to-change-the-template-connector-properties-compontent/56446/8 "2024-10-30T13:40:56Z")

</div>

@andyqier88 - I am now a bit confused on the requirements. Are these API calls you are expecting to happen at modeling time, or are you looking to achieve this after the process has been deployed? The second scenario is supported currently; the first seems like I’m misunderstanding the requirement, because you wouldn’t need a task in the process to fetch data at modeling time.

---

<div class="post-metadata">

**Author:** ![andyqier88](https://forum.camunda.io/user_avatar/forum.camunda.io/andyqier88/32/22220_2.png) [@andyqier88](https://forum.camunda.io/u/andyqier88)\
**Post date:** [October 31, 2024, 1:46am UTC](https://forum.camunda.io/t/how-to-change-the-template-connector-properties-compontent/56446/9 "2024-10-31T01:46:44Z")

</div>

@nathan.loding Thanks, ignore the first scenario, the second scenario is “click a button on the right panel to request a service api to fetch data to changes some properties values”, right?  
If that’s the case, are there any best practices that I can refer to？Or should I alter core code related to the bpmn-js-element-templates package? Maybe Caumnda, Zeebe, or BpmnModel provide some internal methods can i use?  
I’m sorry, I’ve asked too many questions 😅

---

<div class="post-metadata">

**Author:** ![nathan.loding](https://forum.camunda.io/user_avatar/forum.camunda.io/nathan.loding/32/24171_2.png) [@nathan.loding](https://forum.camunda.io/u/nathan.loding)\
**Post date:** [October 31, 2024, 12:00pm UTC](https://forum.camunda.io/t/how-to-change-the-template-connector-properties-compontent/56446/10 "2024-10-31T12:00:58Z")

</div>

@andyqier88 - as I understand it, you’re still asking about something to occur during the modeling process, not when the process is executed. That is entirely the domain of Modeler. As mentioned before, I believe you’ll need to alter core code in Modeler to achieve this (though I could be very wrong!), but I’d need an engineer from that team to share more detail. I’ve pinged that team again to see if someone can provide some guidance!

---

<div class="post-metadata">

**Author:** ![nathan.loding](https://forum.camunda.io/user_avatar/forum.camunda.io/nathan.loding/32/24171_2.png) [@nathan.loding](https://forum.camunda.io/u/nathan.loding)\
**Post date:** [October 31, 2024, 2:53pm UTC](https://forum.camunda.io/t/how-to-change-the-template-connector-properties-compontent/56446/11 "2024-10-31T14:53:18Z")

</div>

@andyqier88 - and I stand corrected by the engineers! 😂 They think you should be able to achieve this using a plugin for Desktop Modeler. Here’s some resources they shared to get you started:

- [GitHub - camunda/camunda-modeler-plugins: Plugins for the Camunda Modeler.](https://github.com/camunda/camunda-modeler-plugins) - repository with existing plugins that you can reference
- your plugin will probably be a bpmn-js extension, so they suggested you take a look at this plugin for inspiration: [bpmn-js-examples/properties-panel-async-extension at main · bpmn-io/bpmn-js-examples · GitHub](https://github.com/bpmn-io/bpmn-js-examples/tree/main/properties-panel-async-extension)
- plugin documentation: [Plugins | Camunda 8 Docs](https://docs.camunda.io/docs/components/modeler/desktop-modeler/plugins/)

---

<div class="post-metadata">

**Author:** ![andyqier88](https://forum.camunda.io/user_avatar/forum.camunda.io/andyqier88/32/22220_2.png) [@andyqier88](https://forum.camunda.io/u/andyqier88)\
**Post date:** [November 1, 2024, 5:44am UTC](https://forum.camunda.io/t/how-to-change-the-template-connector-properties-compontent/56446/12 "2024-11-01T05:44:50Z")

</div>

Thank you, I’ll take a look

---

<div class="post-metadata">

**Author:** ![system](https://forum.camunda.io/uploads/default/original/3X/5/8/58d50142eacca605d35cb1ef9e6b86ae85f49436.png) [@system](https://forum.camunda.io/u/system)\
**Post date:** [November 8, 2024, 5:45am UTC](https://forum.camunda.io/t/how-to-change-the-template-connector-properties-compontent/56446/13 "2024-11-08T05:45:49Z")

</div>

Closed on November 8, 2024, 5:45am UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
