Skip to main content

#Salesforce Field Service42 utenti parlano di questo argomento

We have territories and countries under each territory. How do we capture Public Holidays specific to Country under a specific Territory? Should this be done at operating hours or ?

Users are tied to the Primary Territory and some time to a secondary territory. So, anyone in EURAFRIC territory can take up service appointment in any of the countries under Eurafric. And same thing applies to ASIA, Middle East etc.

We want to make sure that we know the public holidays in that country and avoid setting up service Appointments

#Salesforce Field Service
0/9000

Hi everyone,

I’m working on a custom LWC in Salesforce Field Service Mobile and have two related requirements.

1. Trigger LWC JavaScript when Standard Data Sync runs

I have a Work Order in Field Service, and based on that Work Order I need to fetch dynamic data from an external API.

My current flow is roughly:

Work Order → LWC → External API → Build data packet → Download packet → Store in IndexedDB

I would like to know if there is any supported way to trigger/execute my LWC JavaScript automatically when Field Service Mobile’s standard offline data sync runs or completes.

For example:

Field Service Standard Data Sync

          ↓

      Work Order synced

          ↓

   Trigger my LWC JS

          ↓

 Start external API process

Is there a supported Field Service Mobile event, hook, callback, or extension point that allows an LWC JavaScript process to be triggered by the standard data sync?

I am specifically looking for a solution using LWC/JavaScript, without requiring a native SDK if possible.

 

2. Continue processing when the user closes Field Service Mobile

The external API takes some time to build the data packet. Once the packet is ready, my LWC downloads it and stores it in IndexedDB for offline use.

The problem is that the API processing/download can take a significant amount of time.

Ideally I want:

User starts sync

      ↓

API starts building packet

      ↓

User closes/minimizes Field Service Mobile

      ↓

API continues processing

      ↓

Packet becomes available

      ↓

Packet is downloaded/stored

      ↓

User opens Field Service again

      ↓

LWC detects that the data is ready

I understand that an LWC/Web Worker cannot necessarily remain alive after the mobile application is completely closed, but I’m wondering if there is any Field Service Mobile-specific mechanism that can support this use case.

I have considered using a Web Worker for the API polling/download process, but I understand that a Web Worker is still subject to the mobile WebView lifecycle and may be terminated when the application is closed or suspended.

Questions

  1. Is there a supported way to hook into Field Service Mobile Standard Data Sync from an LWC?
  2. Can an LWC JavaScript process be triggered automatically when offline sync completes?
  3. Is there any supported mechanism for executing JavaScript/background processing when the Field Service Mobile app is closed?
  4. Can a Web Worker be used reliably for this scenario?
  5. Is there a recommended Field Service Mobile architecture for downloading external API data into IndexedDB based on Work Order data?

Any guidance or examples would be greatly appreciated.

 

@* Salesforce Developers * @* Salesforce Field Service * 

1 risposta
  1. Heiko Lindner (Privat) Forum Ambassador
    13 ago, 05:43

    To be honest I cannot anwser these questions. I assume it's not possible. The question is, what is your  business requirement to do it?  

    There is an option in field service mobile settings to automatically change the status of an appointment. Maybe this can be used to trigger your automations.

0/9000

Hi everyone, 

 

We are experiencing an intermittent issue when generating reports in Salesforce.

Sometimes, when a user tries to run/generate a report, Salesforce displays the following error message: 

 

 

Has anyone experienced a similar issue recently?

Intermittent ā€œIt looks like there was a problemā€ Message When Generating Reports

 

 

 

 

#Salesforce Field Service  #Generate Document

1 risposta
  1. 24 set, 19:18

    The screenshot of the message didn't come through in your post, but "It looks like there was a problem" is Lightning's generic, unhandled-error message, so the text itself doesn't tell you the root cause. Because it is intermittent, the fastest route is to capture the underlying error the next time it happens and narrow down which layer is failing. 

     

    1. Capture the real error. When the message appears, expand the "Show details"/"More details" link if present and copy the text and error ID. Also open the browser developer console (F12 > Console/Network) before reproducing; the failing request usually shows the real exception (for example a timeout, a limit, or an Apex/Flow error). 

     

    2. Check whether it is a platform issue. Look at

    trust.salesforce.com

    for your instance at the time of the failures and search the Known Issues site for your feature (Reports, Service Reports, Document Builder). Intermittent errors that affect several users at the same time often line up with a performance incident or a known issue. 

     

    3. If it's a standard Salesforce report: very large or complex reports (many rows, cross filters, many groupings, formulas, long date ranges) can hit the report run-time limit or fail intermittently under load. Try adding filters to reduce the data, running it in another browser/incognito with extensions disabled, and running it as another user with the same profile. 

     

    4. If "generating reports" means Field Service service reports or generated documents (your tags mention Generate Document): check the template for large images, many related list sections or rich-text fields, and whether the failure is tied to specific work orders/service appointments with lots of related records, line items or attachments. Also check any Flow or Apex that runs when the report/document is created (Setup > Paused and Failed Flow Interviews, Apex exception emails, debug logs for an affected user). Testing the same record with a simpler template quickly shows whether the template is the cause. 

     

    5. If you can reproduce it with the error ID, open a case with Salesforce Support and include the error ID, timestamp, user, instance and record Id. Support can look up the error ID in their logs. 

     

    References: 

    Salesforce Known Issues:

    https://help.salesforce.com/s/articleView?id=000386216&type=1

     

    Salesforce Trust status:

    https://status.salesforce.com

     

    Report limits, limitations and allocations:

    https://help.salesforce.com/s/articleView?id=analytics.reports_limits.htm&type=5

     

    Field Service service reports:

    https://help.salesforce.com/s/articleView?id=service.fs_service_reports.htm&type=5

     

     

    Assumption: without the screenshot, error details or confirmation of whether these are standard reports or Field Service service reports/documents, this is general troubleshooting guidance rather than a confirmed root cause. If you can share the full error text and which feature you use, the community can narrow it down.

0/9000

Dear all friend,

I have a customer, they already use Sales & Service Cloud. They are a Trucking Company.

Now they want to find a system which help them Assign Available Truck for specific shipment & help their driver optimize routing to save Time & Cost.

I think Field service can use in the same case. Mobile worker as a Driver, they will receive task from manager & drive their care to pickup cargo.

 

Please help me to give some advice if you already go through this case.

 

Thank you

2 risposte
  1. 2 gen 2024, 04:32

    Hi @HoĆ ng Mįŗ”nh

     

    Salesforce Field Service has capabilities that are definitely good fit for truck - transportation, and management of fleets etc.    Salesforce Field Service also has map routing features.   

     

    However, often I come across the question on another inter-related product "Salesforce Map" from some customers, and whether to go with full-blown "Salesforce Field Service" product or an almost subset of "Salesforce Maps" product.

     

    Here is one article that compares/contrasts both the products and outlines their purposes, which may be helpful

     

    https://medium.com/creme-de-la-crm/salesforce-maps-vs-field-service-646690b2ff01

     

    Regards,

    Kannan

0/9000

Based on the Field Service Guide, our understanding is that if a Resource Absence is created without an address, it will calculate drive time for surrounding Service Appointments using the address on the Service Territory Member for the Service Resource. 

 

"If an absence doesn’t have an address, optimization uses the resource’s home base to calculate travel time to the next service appointment. For a more precise travel estimate, add an address to the absence, such as the location of the previous appointment or an address for the break."

 

We have been seeing examples where this is not the case. Below are screenshots showing the drive time for an Absence without an address versus the drive time when it's been updated with the Service Resource's home base.

 

Absence without an address:

Resource Absences Without Addresses Not Calculating Drive Time Using Resource's Home Base

 

Absence with the Service Resource's home address:

RA with Home Base Address.png

 

Updating the Absence with the address of the previous Service Appointment does not change drive time. Confirming that, without an address, the drive time for the Service Appointment following the Absence is being calculated using the address of the Service Appointment before the Absence.

 

Curious if there is something we are missing or if our understanding is incorrect.

 

Thanks!

9 risposte
  1. 14 set, 20:33

    I'm aware this is old post, but this could be useful for someone else. The issue is due to ESO feature. according to this article https://help.salesforce.com/s/articleView?id=service.fs_create_absences.htm&type=5  "If you're using Enhanced Scheduling and Optimization and there’s no address on the resource absence, optimization and scheduling actions use the location of the last event (Service Appointment or Resource Absence) that has a location to calculate the travel time to the next event. If the resource absence overlaps with the shift end, the resource’s home base location is used to calculate the travel time. If you're not using Enhanced Scheduling and Optimization and there’s no address on the resource absence, optimization uses the resource’s home base to calculate travel time to the next service appointment. For a more precise travel estimate, add an address to the absence, such as the location of the previous appointment or an address for the break."

0/9000

Hello.  

We have a field Work_Type__c picklist field on the Milestone object that references a Picklist value set. We want to instead add picklist values manually. Is this conversion possible or do I have to create a new pick list field and then add my picklist values manually? 

 

Thank you, 

Nancy  

 

#Salesforce Field Service  #Field Service Lightning  #Salesforce FIeld Service Lightning  #Global Value Sets  #Salesforce Admin  #Salesforce  #Salesforceadmins  #Systems Administrator

4 risposte
  1. Divs Chauhan (kcloud) Forum Ambassador
    9 set, 06:59

    Hi Nancy, 

    No, you can't convert it  — Salesforce doesn't provide a button/toggle in Setup to switch a picklist from "uses a Global Value Set" to "enter values manually"

    (or vice versa) for an existing field. 

     

    Go to Setup → Object Manager → Your Object → Fields & Relationships → Your Field 

    Click Edit 

    You'll see the picklist is tied to a Global Value Set — there is

    no option

    here to detach it and switch to manual values. This choice is locked in at field creation and isn't editable afterward. 

    Hi Nancy, No, you can't convert it — Salesforce doesn't provide a button/toggle in Setup to switch a picklist from

     

     

0/9000

Hello.  

We have turned on Account Plans in our Sandbox environment. For the Relationship Map we would like to somehow show a parallel org chart. For example. The CEO of Google and the CEO of our company Syska Hennessy Group. Is this possible?  

 

It seems that the native Salesforce Account plans is limited regarding customization.  

Please let me know if further information is needed.  

 

Is there another account plans tool that is recommended that offers more flexibility to make customizations? 

 

Thank you,  

Nancy 

 

 

 

#Account Planning  #Salesforce Admin  #Systems Administrator  #Salesforce  #Salesforce Developer  #Salesforce Field Service  #Salesforcecommunity  #Salesforceadmins

5 risposte
  1. 8 set, 12:10

    @Nancy MagalhaesOne limitation I’d consider is the underlying data model: the native Relationship Map is primarily account/contact relationship-focused, so a true side-by-side ā€œcustomer org + our internal orgā€ hierarchy is difficult to maintain dynamically.

    If this is a recurring sales use case, I’d model the internal stakeholders and customer contacts as related records with an explicit relationship type (Decision Maker, Executive Sponsor, Account Owner, etc.), then surface those relationships through a custom LWC. That would keep the visualization data-driven instead of relying on manually added cards, while still keeping everything inside Salesforce.

0/9000

Hi all,

I'm trying to use Maintenance Plans, specifically the "Generate on a floating schedule" functionality. My understanding is that this should allow the system to reschedule subsequent Work Orders based on the completion date of the previous one.

Here is my scenario and what I am trying to achieve:

  • I set the frequency to every 30 days (on the Maintenance Work Rule, linked to the Maintenance Asset).
  • The first Work Order (WO-1) is scheduled for November 15.
  • The next Work Order (WO-2) is therefore initially planned for December 15.

My expectation (the "floating" logic):

  • Scenario A: If I complete WO-1 early on November 10, the next Work Order (WO-2) should be automatically rescheduled for December 10 (30 days after the new completion date).
  • Scenario B: If I complete WO-1 late on November 20, the next Work Order (WO-2) should be rescheduled for December 20.

The Problem: I have run several tests, but it seems that the SuggestedMaintenanceDate on the next Work Order never gets updated. It always stays at the original December 15 date, regardless of when I complete the first Work Order.

My Questions:

  1. What configuration am I missing to make this floating schedule logic work correctly?
  2. Which specific DateTime field on the completed Work Order does the system use to trigger this recalculation? Is it the EndDate on the Work Order object, or the ActualEndTime from the related Service Appointment?

Thanks so much for your help,  Salvatore

@* Salesforce Field Service * 

4 risposte
  1. Heiko Lindner (Privat) Forum Ambassador
    7 set, 19:02

    @Joelle Greene can you please give some more context and details, what you want to achive. Thanks

0/9000

Hello.  

 

Are there any trailhead recommendations that I can take for Einstein Activity Capture.  

I am looking to get this turned on for our firm.  

 

 We use Outlook.  

 

Thank you, 

Nancy 

 

 

 

#Systems Administrator  #Salesforce Admin  #Salesforce  #Salesforce Field Service  #Salesforcecommunity  #Salesforceadmins  #Einstein For Service

1 risposta
  1. Smitha Thomas (CIBC) Forum Ambassador
    4 set, 20:01
0/9000

I disabled the Calculate travel and breaks setting in Field Service Settings but the travel time is still being calculated!!

Is there any other settings that I missed that would allow me to prevent the travel time calculation?

5 risposte
  1. 3 mar 2023, 14:52

    So I don't recall ever having to do this, but you might try disabling the routing methods to see if that has any impact at all.  Usually that checkbox for Calculate Travel and Breaks should do the trick, at least in my experience.

0/9000