# We have requirement to call REST api from compound?

**URL:** <https://community.bloomreach.com/t/we-have-requirement-to-call-rest-api-from-compound/1429>\
**Category:** Experience Manager (PaaS/OnPrem)\
**Created:** [September 20, 2019, 6:00am UTC](https://community.bloomreach.com/t/we-have-requirement-to-call-rest-api-from-compound/1429 "2019-09-20T06:00:04Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![gkr](https://avatars.discourse-cdn.com/v4/letter/g/e480ec/32.png) [@gkr](https://community.bloomreach.com/u/gkr)\
**Post date:** [September 20, 2019, 6:00am UTC](https://community.bloomreach.com/t/we-have-requirement-to-call-rest-api-from-compound/1429/1 "2019-09-20T06:00:04Z")

</div>

Hello guys,

We have a requirement, we have created compound with 2 text boxes.  
as soon as user enters text in the both boxes we want to make REST call is it possible ?

or else we can give button to make Rest call after entering the text ?

please let me know either one of above scenarios are possible in hippo…

kindly let us know, it would be great help.

thanks & regards  
Ganesh

---

<div class="post-metadata">

**Author:** ![jeroen.hoffman](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/jeroen.hoffman/32/43_2.png) [@jeroen.hoffman](https://community.bloomreach.com/u/jeroen.hoffman)\
**Post date:** [September 20, 2019, 7:50am UTC](https://community.bloomreach.com/t/we-have-requirement-to-call-rest-api-from-compound/1429/2 "2019-09-20T07:50:54Z")

</div>

In the content perspective, this would require a customization in a Wicket plugin, derived from NodeFieldPlugin. In the Channel Manager’s visual editor, it is not possible.

HTH  
Jeroen

---

<div class="post-metadata">

**Author:** ![bcanvural](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/bcanvural/32/235_2.png) [@bcanvural](https://community.bloomreach.com/u/bcanvural)\
**Post date:** [September 20, 2019, 8:06am UTC](https://community.bloomreach.com/t/we-have-requirement-to-call-rest-api-from-compound/1429/3 "2019-09-20T08:06:21Z")

</div>

I recommend you re-evaluate the solution. What if the rest calls fail? How would you recover from that? Are you doing some kind of a validation? What are you trying to achieve?

---

<div class="post-metadata">

**Author:** ![woonsanko](https://avatars.discourse-cdn.com/v4/letter/w/b5a626/32.png) [@woonsanko](https://community.bloomreach.com/u/woonsanko)\
**Post date:** [September 20, 2019, 8:16am UTC](https://community.bloomreach.com/t/we-have-requirement-to-call-rest-api-from-compound/1429/4 "2019-09-20T08:16:40Z")

</div>

> [@gkr](#):
>
> We have a requirement, we have created compound with 2 text boxes.  
> as soon as user enters text in the both boxes we want to make REST call is it possible ?

Could you elaborate what it should do for the user after texts entered?  
Do you want to set another field by the input values?  
Or do you want to read some external data to use for some reason?  
Or both? Or something else?

Woonsan

---

<div class="post-metadata">

**Author:** ![gkr](https://avatars.discourse-cdn.com/v4/letter/g/e480ec/32.png) [@gkr](https://community.bloomreach.com/u/gkr)\
**Post date:** [September 20, 2019, 8:19am UTC](https://community.bloomreach.com/t/we-have-requirement-to-call-rest-api-from-compound/1429/5 "2019-09-20T08:19:24Z")

</div>

Hi Woonsanko,

after entering the text user should able to search weather that string exists or not with rest call.  
user should be able to save that text box with that value.

thanks

---

<div class="post-metadata">

**Author:** ![woonsanko](https://avatars.discourse-cdn.com/v4/letter/w/b5a626/32.png) [@woonsanko](https://community.bloomreach.com/u/woonsanko)\
**Post date:** [September 20, 2019, 8:27am UTC](https://community.bloomreach.com/t/we-have-requirement-to-call-rest-api-from-compound/1429/6 "2019-09-20T08:27:18Z")

</div>

Hi Ganesh,

> [@gkr](#):
>
> after entering the text user should able to search weather that string exists or not with rest call.  
> user should be able to save that text box with that value.

I assume you want to save two fields: one for input text and the other for weather code or something similar.  
In that case, External document picker plugin is a practical solution:

- [Hippo CMS External Document Picker Base – Hippo CMS External Document Picker Base](https://bloomreach-forge.github.io/external-document-picker/index.html)

Just use a simple External Document Field Picker option by implementing/configuring an ExternalSearchServiceFacade implementation which may invoke an external REST API, when user enters a text and clicks on the search button:

- [Hippo CMS External Document Picker Base – Architecture (External Document Field Picker)](https://bloomreach-forge.github.io/external-document-picker/field/architecture.html)

You can save as many extra fields as you want with the ExternalSearchServiceFacade implementation.

Regards,

Woonsan

---

<div class="post-metadata">

**Author:** ![gkr](https://avatars.discourse-cdn.com/v4/letter/g/e480ec/32.png) [@gkr](https://community.bloomreach.com/u/gkr)\
**Post date:** [September 20, 2019, 8:39am UTC](https://community.bloomreach.com/t/we-have-requirement-to-call-rest-api-from-compound/1429/7 "2019-09-20T08:39:49Z")

</div>

HI Woonsan,

thanks for you time, i will try to implement

regards  
Ganesh
