Update geo_point in task

Options
hey, 

I am trying to update a geo_point field after getting the coordinates via the address in a task.

Everything works fine so far but I do not see how I can create a geo_point variable to update the database entry?

Comments

  • Chris Coleman
    Chris Coleman Administrator

    ADMIN

    Options
    Hey, Stefan. You don't need to create a special type of variable to update a geo_point -- this is basically just storing a latitude and a longitude. In this example, I'm querying a record with a geo_point field, and updating a variable with a new value.
    [CleanShot 2022-07-19 at 12.31.53.png]In my update variable step, this is how I'm changing the geo_point data.[CleanShot 2022-07-19 at 12.29.59.png]
  • Stefan Pointecker
    Options
    hey thanks for your response.
    in my case I am editing a record which has no geo_point at the beginning and a new one should be stored to this record.

    So do I need to create the whole object with the type: point too?[Bildschirmfoto 2022-07-20 um 14.46.20.png]
  • Stefan Pointecker
    Options
    Update

    Edit record query (home has a property position - the geo_point)[Bildschirmfoto 2022-07-20 um 15.06.20.png]
    Debugger result
    The message does not really makes sense to me to be honest.[Bildschirmfoto 2022-07-20 um 15.05.31.png]Debugger info[Bildschirmfoto 2022-07-20 um 15.05.14.png]
  • Stefan Pointecker
    Options
    Okay, I think I got it working by adding the whole geo_point structure into the edit record step:
    [Bildschirmfoto 2022-07-20 um 15.12.04.png]