Skip to main content
New
Stack Overflow Jobs powered by Indeed: A job site that puts thousands of tech jobs at your fingertips (U.S. only). Search jobs

Questions tagged [geolocation]

The Geolocation field type allows for SOQL queries based on location and distance. Functions DISTANCE and GEOLOCATION support distance and location-based SOQL queries.

Filter by
Sorted by
Tagged with
0 votes
0 answers
27 views

Error with Google map API

I have an aurra component with an embed VF in IFRAME. The VF is displaying map using the google map API, I have some fonctionality in it, and it is working very well. When I try to access to the ...
Raphael D's user avatar
  • 616
-2 votes
1 answer
40 views

Get Distance between 2 records [closed]

Get Distance between 2 records while creating the record in lead object lead assign automatically near owner base upon zipcode anyone have Apex logic how to create the logic? for(Lead ld:[Select Id, ...
sfdcCoder's user avatar
0 votes
0 answers
11 views

FSL Assignments

My organization is now on Salesforce. FSL assigns calls based on the drivers original location. We are seeing our drivers pulled from one side of the state to the other when there are drivers who are ...
Paula Charette's user avatar
0 votes
1 answer
35 views

Using location object to create a new Instance of a location error out

I am trying to make it as an Apex invocable method action to find the nearby vendors based on the customers address. When trying to push the code to my instance I get an error on the line location....
sumchans's user avatar
  • 777
-1 votes
1 answer
94 views

soql query to retrieve nearby vendors for an account

I have a request to show nearby vendors for a customer account. I am using the Account object to store both the customer accounts and the vendor accounts. but with different record types which are ...
sumchans's user avatar
  • 777
0 votes
0 answers
77 views

Latitude and Longitude not saving to record in Flow (other values are saving except for these)

I need geolocation for my person accounts but Salesforce does not support this, So i created a flow as a workaround since Salesforce only support GeoCoding on Accounts, Contacts and Leads Basically ...
sfNewbie's user avatar
1 vote
0 answers
126 views

Error when deploying Geolocation field - no such column

I have an Apex class that allows me to calculate distances between two records using a geolocation field as these are required when using the DISTANCE function. Everything is great until I am trying ...
Jan Tonnet's user avatar
2 votes
1 answer
318 views

Geotagging of Salesforce record from Salesforce Mobile Application

We have a Lightning Web Component, which will be viewed from the Salesforce mobile application. When the user will save a record from the Lightning Web Component, we would like to Geotag the record ...
Ashish's user avatar
  • 2,370
0 votes
2 answers
468 views

How to pass an value of lightning-input-address to apex class?

I'm trying to find Opportunity records with an address within X amount of miles from an entered location. I'm using the lightning-input-address and passing the value to an Apex class and am getting ...
Luke Higgins's user avatar
0 votes
1 answer
171 views

Distance Formula not working while comparing 2 variables on Flow

I have created a button on the Accounts page which launches a Screen flow to potentially show nearby accounts to the one the user is currently viewing. Below is the screen flow: I am having a problem ...
Tim's user avatar
  • 1
1 vote
0 answers
67 views

Get Integration Data Rules Status

Is it possible to get information about current status of integration in apex? In this case it is Geocodes service I would like to give community user feedback if their address that their just ...
UglyShrimp's user avatar
0 votes
1 answer
220 views

How to get geolocation using getRecord to show the mapMarkers?

pokemonLocation.html <template> <lightning-card title={cardTitle}> <lightning-map map-markers={mapMarkers} > </lightning-map> </lightning-card> </...
Aneela Oad's user avatar
3 votes
0 answers
319 views

Dynamic MobilePush Content using ContactKey in Ampscript

Need to get the contact key of a person who entered a location (using location based push message) and retrieve firstname from a different data extension. Since there is no Data extension used here, (...
SFMC Guru's user avatar
-2 votes
2 answers
2k views

Convert zip/postal code to coordinates, city, county, region etc in Salesforce?

Is there any possibility in Salesforce to extend on location data such as postal code and convert to coordinates, city, county, region etc? E.g. Transform postal code: GU1 3DA and country: UK into ...
Salesforce's user avatar
0 votes
1 answer
234 views

Can you help point out the issues in the code

This is a code I have done to fetch all the accounts near a closedwonAccount. I have fetched the closedwonAccount using a flow and called it to the apexclass using @invocable method. I have debugged ...
user avatar
0 votes
1 answer
760 views

I have to check whether an account has closed won opportunity and if yes find all the accounts nearby

Create a custom field to show whether that account has closed won opportunity Create a custom button to get the number of closed won Accounts in below ranges a) >50 km b) Accounts between 30 km and ...
user avatar
0 votes
0 answers
173 views

How can I make navigator.geolocation.getCurrentPosition work on deployed app

I am building a Next-js app that should work only within a specific geo-radius. I am using navigator.geolocation.getCurrentPosition to get the current location of the user. When I test the app locally,...
David's user avatar
  • 101
0 votes
1 answer
710 views

I have trouble creating Map location hyper link using geolocation fields

We have a requirement to create hyperlink which will take the user to the google maps page of the address. I followed the salesforce standard solution on creating the link. as per the below link https:...
Samuel Robert's user avatar
1 vote
0 answers
142 views

Email-to-Case to recognise IP and associate with a Country

Is it possible for the Email-to-Case functionality to recognise the Country of the originating Email by IP Address? When Email-to-Case creates a Case, we would like to automatically update the Country ...
Lakis Juzwa's user avatar
1 vote
0 answers
279 views

Geolocation class is not working

I'm trying to use the Geolocation class and trying to get the Longitude value of my current location. But I'm getting null always. I came to know from the documentation that I'll need to enable ...
Knowledge Seeker's user avatar
1 vote
0 answers
243 views

Set a geolocation to null

I have a trigger as: trigger GeoCodeContact on Contact (after update) { if (Trigger.new[it].MailingStreet != null && Trigger.new[it].MailingCity != null && Trigger....
hugo PREVOST's user avatar
0 votes
1 answer
183 views

DML Error trying to save a custom Geolocation field

Have a custom compound geolocation field on standard Event object called 'Event_Location__c'. I then populate the lat and long attributes of the field - so far so good. Now I try to update the Event ...
CloudHugger's user avatar
  • 1,757
0 votes
0 answers
513 views

Trailhead Geolocation App Project: Cannot Read Property Length of Null

So I’m trying to follow the “Develop an Account Geolocation App with Aura Components ” project tutorial but for a custom object, and I’ve run into a problem with implementing the Map Component and ...
Apex_rookie's user avatar
0 votes
1 answer
257 views

Bulk API upsert error for a Field type Location

I'm using the Bulk API v2 for upserting data into a CustomObject. When i try to upsert data without the CustomField Location, it works correctly, but when i add in the CSV the Location__c header, i'm ...
kassam housseny's user avatar
1 vote
0 answers
246 views

Insert Work Orders with randomized Latitude and Longitude Values for testing bulk scheduling in Field Service Lightning (FSL)

This code is supposed to insert 50 work orders with randomized geolocations. It's meant to create enough records of sample data to set the stage for demonstrating the power of bulk-scheduling/...
Christopher Ryan's user avatar
2 votes
1 answer
1k views

Lightning Web Component | navigator.geolocation not able to assign value to track variable

I am trying to get the current location coordinates using navigator.geolocation.getCurrentPosition inside a Lightning Web Component. Expected : I am getting the coordinates correctly in the position....
Junaid P Khader's user avatar
1 vote
1 answer
813 views

Field Service Lightning(FSL) Track field users location and being able to report on?

Is there any way to report on the history of LastKnownLatitude and LastKnownLongitude on the Service Resource Object? An example use case is Service Resource "Bob" performs 3 Service appointments on a ...
Salesforce_Beginner's user avatar
0 votes
1 answer
2k views

Account Object Geocode Fields Not Showing On Page Layout

I am unable to get standard geocode fields like Account:Shipping Latitude and Account:Shipping Longitude on Page Layout.I want to display these fields on my Account details page but unable to it. I ...
Utkarsh Verma's user avatar
0 votes
1 answer
122 views

What is the easiest way to select all Geofence locations for push messages

Lets say we have over 500+ locations and we want to set up a push message for all of them. What is the easiest way to select all the locations to prevent us from having to click each of the 500+ store ...
JLRob's user avatar
  • 23
1 vote
1 answer
586 views

How to conditionally display a geofence notification - not mobile PUSH notification?

I understand that geofence triggered notifications are actually downloaded and triggered upon fence transitions - not a PUSH notification. Like the poster of this question, I have a data extension ...
ElHaix's user avatar
  • 135
2 votes
1 answer
257 views

Geo Location Push Messages Exclusion List

Is there a way to apply an exclusion list to Geo location Push message through Salesforce Marketing cloud? Let's say I want to send anyone who is within the proximity of xyz hotel a geo location push -...
Jimmy Yamaha's user avatar
0 votes
1 answer
397 views

Filter soql contact records using Google Location API in LWC

Here's what I'm trying to do: Search and find a list of contact records with zip codes. Filter those records using zip codes that are in 5 km radius. I'm unable to perform the 2nd point. Is there ...
MnZ's user avatar
  • 3,170
0 votes
1 answer
233 views

Web 2 lead latitude and longitude values are not inserted

I'm using a Web2Lead form, and on submit pass all input values. But when I try to insert latitude and longitude values, they are not inserted in SF record. I'm try to use different ways, but still no ...
Viktor's user avatar
  • 360
1 vote
1 answer
4k views

FSL How to Track Users Locations?

"When service resource tracking is enabled, the Field Service Lightning mobile app uploads the geolocation of app users to Salesforce at regular intervals." https://help.salesforce.com/articleView?id=...
Behiç Acar's user avatar
2 votes
1 answer
1k views

Geofencing push notifications in Marketing Cloud

Can i send a push notification when the contact enter the location and satisfy additional conditions, like for instance owns a membership card or age range? Basically I don't want to send to everyone ...
Emanuela Giraudo's user avatar
0 votes
1 answer
1k views

Geo-Coordinates in custom object

I need a latitude and longitude field in one of my custom object. I tried data integration rule but it is available only for account,contact and lead. How can i populate coordinate in custom object ...
Ajith Kumar's user avatar
1 vote
0 answers
51 views

Adding User Geolocation to Task Record

I’m looking to add functionality to the new and edit Task layouts (specific to Salesforce Mobile), so that when a user completes a task their current location is added to a custom geolocation field on ...
resedasue's user avatar
  • 303
0 votes
1 answer
170 views

Fetching latitude longitude datat from image on IOS in SF1 App

I need to to fetch the Latitude and Longitude of Image captured or uploaded using SF 1 App.I am using EXIF to fetch the same in javascript(helper) While it is working on android , same does not work ...
Pankaj Andhale's user avatar
0 votes
4 answers
3k views

Error while retrieving location coords with navigator.geolocation.getCurrentLocation in LWC

So, I was just trying to get current location by using navigator.getlocation.getCurrentLocation method in Lightning Web Components. When I check if(navigator.getlocation), this returns true. But ...
Lokesh Sagi's user avatar
3 votes
1 answer
109 views

Is Contact othergeocodeaccuracy a legitimate field?

Many of our Continuous Integration builds just failed with hundreds of this error: System.QueryException: No such column 'othergeocodeaccuracy' on entity 'Contact'. Our code does describe calls ...
Keith C's user avatar
  • 136k
1 vote
1 answer
379 views

Geolocation Query [closed]

I have two lists within SFMC that both have latitude and longitude values. I need to be able to compare them and find the distance between them in miles, then include or exclude records based on the ...
Tara's user avatar
  • 11
0 votes
1 answer
97 views

How to store zipcode in salesforce sales cloud if I've latitude & longitude available?

We've build an Andoird App which store users location as latitude & longitude at the time of registration. This data is being pushed into salesforce sales cloud. Can I convert this piece of ...
ASHISH's user avatar
  • 556
2 votes
2 answers
707 views

Incorrect Longitude and Latitude

The Geolocation Longitude and Latitude coordinates I am getting out of Salesforce are not the same as the Google coordinates for the same address. When I load an Account or Contact address the Map ...
Roger Stoddart's user avatar
2 votes
1 answer
2k views

Contact Mailing Latitude & Longitude is zero despite map feature working

Looking for some help. I am trying to display geolocation on mailing address in Contact object. Any address I enter, the map renders perfect, but no Longitude or Latitude, I get nothing. I have ...
Roger Stoddart's user avatar
2 votes
2 answers
863 views

Distance between two places based on geolocation

I am trying to write a query to find contacts within a radius of 50 miles and here is the SOQL i have select Id,Name,mailingStreet,mailingState,mailingCity,mailingPostalCode,mailingcountry,...
Prady's user avatar
  • 12.3k
1 vote
3 answers
107 views

Marketing Cloud SDK - geolocation fence error

I try to receive a push notification when I'm in a specific place but each time the Marketing Cloud SDK send my position to his API service it sent the request with a wrong syntax. Currently the ...
Frogmouth's user avatar
  • 200
0 votes
2 answers
1k views

How to use Geocode field to display address info?

I have a custom field which is of Geolocation type. I just need to display the corresponding address information on the page. For ex, the field name is branch_location_id which contains the Lat Long ...
Salesforce Tech Enthusiast's user avatar
0 votes
1 answer
182 views

Capture location through smart capture or form on custom cloud pages in salesforce marketing cloud

I want to capture location of customers via smart capture or custom form. As there is a huge list of locations (city,state), I want to integrate the same with google map or any other similar database ...
ASHISH's user avatar
  • 556
0 votes
1 answer
3k views

Geolocation location fields in Contacts/Account

I know Salesforce has some custom hidden fields that stored geolocation coordinates based on the Mailing and Billing address fields. (and I believe this is how the plot Markers in the inline Google ...
Deployment Failure's user avatar
1 vote
0 answers
128 views

How can I update user goelocation to account record when selecting pin on map?

I have incorporated google map to display pins on a map for Account records. I am using navigator.geolocation.getCurrentPosition(function(position) to center the map when it load and to get the users ...
Kevin Butt's user avatar