Announcement

Collapse
No announcement yet.

Example calling API from inside view

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Example calling API from inside view

    Hi,

    I was wondering whether anyone may be able to help by providing an example of how to call an API from inside my view? And how to have actions inside the view to be able to update parameters that would recall the API and then rerender the view? Such as a search component?

    Thanks




  • #2
    Easy:

    Code:
    Espo.Ajax.getRequest('MyEndpont').then(response => {
    
    });
    Code:
    Espo.Ajax.postRequest('MyEndpont', {param1: value1}).then(response => {
    
    });

    Comment

    Working...
    X