Get data from the api into a record and update using the replacement method.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Sab0tajue
    Senior Member
    • Jul 2019
    • 315

    Get data from the api into a record and update using the replacement method.

    I am trying to execute the request after saving the entry. The request must send a 12-digit value and receive the required data in the response. Tell me, how, after receiving a response, take this data into the desired record and update it by sending a request after clicking the update button?
  • emillod
    Active Community Member
    • Apr 2017
    • 1430

    #2
    You can do this through HOOK. Just send simple cURL request to endpoint and take save response through $entity, for example: $entity->set('name', $variable);

    Comment

    • Sab0tajue
      Senior Member
      • Jul 2019
      • 315

      #3
      I do not quite understand where this information is entered. Could you elaborate on the actions? Thank you in advance for your help.

      Comment

      • emillod
        Active Community Member
        • Apr 2017
        • 1430

        #4
        Do you have any experience in PHP? Here you have more information about hooks: https://docs.espocrm.com/development/hooks/

        Comment

        Working...