Question

How to update Latiude/Longitude via API on Customer Center?

  • 3 April 2023
  • 1 reply
  • 47 views

Badge +2

Hi all,

 

I need to update some Latitude/Longitude Values of Customer Center Addresses, als they are missformatted.

 

 

Can someone please support with an API Template? I guess something like this should do the job:

 

<root xmlns:dt="urn:schemas-microsoft-com:datatypes">
    <session email="" alias="">
        <state bc_name="??????">
            <action name="data">
                <main>
                    <row number="1" search_key="address_id;3886">
                        <longitude in_var="" out_var="">7.21</longitude>
                        <latitude in_var="" out_var="">51.45</latitude>
                    </row>
                </main>
            </action>
        </state>
    </session>
</root>

 

Thanks.

Michael


1 reply

Badge +2

For now, I took the long way home and used customer_request.

<root xmlns:dt="urn:schemas-microsoft-com:datatypes">
  <session email="" alias="">
      <state bc_name="customer_request" use_cache_refresh="False">
          <action name="data">
              <main lock="false">
                  <row>
                      <company_id>abc123</company_id>
                  </row>
              </main>
              <address_xref>
                  <row number="1" search_key="address_id;1234">
                      <longitude>8.41</longitude>
                      <latitude>49.31</latitude>
                  </row>
              </address_xref>
          </action>
      </state>
  </session>
</root>

 

Reply