HTTP Request

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kodexof731
    Junior Member
    • Aug 2023
    • 2

    HTTP Request

    Hello,

    I have been trying for a few days to update a field of a Lead entity.

    My flow is the following, from the entity Mail (when creating) I trigger a flowchart that will create a Lead. I then send an HTTP request to a third party service and get the value returned by this service.
    Then I try to update the 'language' field (custom text field) of the newly created Lead entity.
    I have tried several ways to assign this value to the language field but the change is never taken into account.
    https://kodi.software/ https://dltutuapp.com/tutuapp-download/​
    Could you help me with this? Thanks

    Here is the code is used in Formula after the Http request, to retrieve the value fetched from third party service, and to assign this value to my custom field.


    $detectedLanguage = json\retrieve($_lastHttpResponseBody, "translations.0.detected_source_language");

    language = string\lowerCase($detectedLanguage); // First way to update - Doesnt working

    record\update('Lead', parentId, 'language', string\lowerCase($detectedLanguage)); // // Second way to update - Doesnt working

    record\update('Lead', id, 'language', string\lowerCase($detectedLanguage)); // Third way to update - Doesnt working​
    Last edited by kodexof731; 08-12-2023, 12:00 PM.
Working...