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
0answers
12 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 ...
4
votes
1answer
900 views

Display a count of records within 15 miles of a subscriber ZIP code

I have an ExactTarget question. I have a data extension of _subscribers. One of the fields is their zip_code I have another data extension of _widgets which includes the widgets' zip_code1 I also ...
0
votes
0answers
32 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 ...
1
vote
0answers
32 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....
8
votes
2answers
432 views

Error when setting “rendered” attribute on apex:mapMarker

I am trying to show/hide some map markers on an <apex:map> by assigning a boolean value coming from an Apex attribute to the rendered tag. However, I am receiving a compile error on save: ...
0
votes
1answer
32 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 ...
0
votes
0answers
45 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 ...
0
votes
1answer
37 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 ...
0
votes
0answers
14 views

Maps and Locations's Auto complete feature in Custom Fields

With the help of 'Maps and Locations' feature, I am able to utilize the out of box functionality of Auto-complete of Address fields on Standard fields of Standard Objects. However, is there a way if ...
1
vote
0answers
49 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/...
2
votes
1answer
200 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....
1
vote
0answers
89 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 ...
1
vote
1answer
795 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=...
0
votes
1answer
133 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 ...
0
votes
3answers
1k 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 ...
0
votes
1answer
35 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 ...
0
votes
1answer
99 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 ...
0
votes
0answers
13 views

How do you add permissions for creating a geofence message and new geofence points via Users -> Roles

I want to assign a role with permissions to send push messages and geofence entry and exit messages. Currently the role can set up and send messages but can't set new geofence points, I am have ...
1
vote
1answer
44 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 -...
0
votes
1answer
95 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 ...
0
votes
1answer
66 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 ...
1
vote
1answer
277 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 ...
0
votes
1answer
297 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 ...
1
vote
0answers
23 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 ...
0
votes
1answer
60 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 ...
3
votes
1answer
56 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 ...
7
votes
1answer
7k views

Are latitude and longitude saved automatically?

I'm wanting to use the BillingLatitude and BillingLongitude fields attached to my Account object in a workflow rule, but I can't seem to get them to work. I pulled an export via Data Loader of the ...
1
vote
1answer
110 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 ...
0
votes
1answer
742 views

Using ESRI Maps in Salesforce via Javascript API

I am building a visualforce page that displays the geo-location of users in an ESRI Map (Not Google Map for reasons). The data is in a cusotm Location object with username, latitude and longitude. I ...
0
votes
1answer
31 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 ...
2
votes
1answer
146 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 ...
0
votes
1answer
382 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 ...
1
vote
3answers
62 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 ...
2
votes
2answers
192 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,...
0
votes
2answers
318 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 ...
0
votes
1answer
96 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 ...
0
votes
1answer
548 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 ...
1
vote
0answers
51 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 ...
1
vote
0answers
613 views

Capturing user's current location from a Quick action standard layout [closed]

I have a created quick action on a custom object (Address). Below are the details: Object Name: Address Action Type: Create a record Target Object:Task The quick action has his layout set for ...
5
votes
3answers
2k views

Is “Maps and Location (New!)” missing in the setup of Developer Orgs?

In Production- and Sandbox-Orgs (on EU0) there is a menu-entry in the setup called Maps and Location (New!) It is located between "Tab Names and Labels" and "Home" As an unfortunate this menu ...
3
votes
0answers
257 views

Cannot read property 'appendChild' of undefined

I want to show the geoposition on a leaflet map lightning component. I enter an Id and get geolocation data accordingly. When I first enter an Id everything works fine, for the second time it shows ...
2
votes
1answer
76 views

Geolocation of all leads and accounts in Sales Cloud

my fashion organization is planning to buy Sales Cloud. One of the requirements of the sales men is to see in a map (Google Maps style) all leads and accounts (with type = "store") and also the ...
0
votes
3answers
1k views

Getting lat/lng for person accounts

Based on my understanding the mailing address on a person account will not be auto geolocated as is the case with normal accounts. What is the easiest way to get a lat/lng for a person account? I ...
0
votes
1answer
328 views

Display nearest shop to one user thanks to ampscript and latitude longitude

I have 2 database with - the geographical address of users (latitude and longitude) - the geographical address of my shops (latitude and longitude) I want to display in an email the 3 nearest shops ...
-2
votes
1answer
122 views

Reverse geocoded address

Is it possible to get the address and map it into Account's standard addressess based on the long lat? I have a code which gets the current long and lat and updates the details of the account in ...
0
votes
1answer
48 views

MobilePush getting lat/long from user

so for iOS MobilePush, i have location based and outbound based push notifications working, and configured the following ETPush pushManager with proper services enabled, and other changes I need to ...
2
votes
0answers
371 views

Geolocation has been disabled in this document by feature policy

We have built a custom viusalforce page (testpage) to fetch and update current geolocation coordinates on the contact object. working fine on all the devices, but from the last one week, getting ...
0
votes
2answers
275 views

Retrieve Attributes of Mobile Push Locations

I was trying to use Mobile Push API to create Locations in Marketing Cloud. But I didn't understand how to use Location Attributes to pass Location-based parameters to the message context and/or ...
3
votes
0answers
251 views

Salesforce1 stopped supporting geolocation

I have a Visualforce page enabled for Lightning, which has one button that gets the geolocation in coordinates and shows the location in a Google map embedded in the page. This was working until last ...
0
votes
1answer
78 views

Coordinates of few accounts are not updating on bulk insert and update through data loader

//Refactored code after getting inputs from @David public void HandleAfterInsert(){ system.debug(LoggingLevel.DEBUG, '***Inside after insert- ' ); for(Account account : newAccs){ ...