Skip to main content

#Salesforce Field Service35 人がディスカッション中

Hi community! 

 

I added the 'Create Service Report' lightning action the de Service Appointment Page Layout. This way the back-office user is able to generate a new service report if needed. That part works great.

 

The 'Service Report Preview' panel has two buttons: 

  • Create and Send Service Report
  • Create Service Report

Remove option on Service Report Preview screen to email Service Report immediately

 

For our scenario we want to remove the first button which triggers the Global Email action after the Service Report is generated. This functionality is unwanted since all e-mail communication from within Salesforce is guided through the Case Feed. Enabling the global email action will cause unwanted side effects in the process of case handling (i.e. Quick Texts, email-to-case). There is no requirement for e-mailing from immediately the preview screen. 

 

Leaving the button in place will likely cause more problems than it would solve. 

 

  • After some documentation diving I was unable to locate a setting or permission for this. Am I missing something here?
  • I tried CSS (from component on Service Appointment page and static resource from Field Service Settings) but was unable to get to the elements on the Service Report Preview panel. 
  • I was unable to locate the source of the panel (serviceReportTemplateDataViewer.apexp) to estimate if a modified clone might be an option.

 

It is annoying because every time a user hits that button a message is thrown that gives the impression that something is missing: "Email isn't set up yet. Ask your admin for help." 

SR2.pngHas anyone been able to hide the 'Create and Send Service Report' button?

 

Thanks for any help!

 

Regards, 

Maarten

4 件の回答
  1. 2023年9月21日 10:31

    Thanks for the answers and your thoughts. 

     

    We now know that it is not a small adjustment that we missed. For now we have accepted that the button will be there for a while.

0/9000

Good afternoon, can I create a single service appointment list so that each technician only sees that list with their assigned appointments? From the app, when multiple lists appear and I want only one to appear, thank you very much.

@* Salesforce Field Service * 

2 件の回答
0/9000

Hello, does anyone know if there is a way to edit the fields that appear on the Edit Objective screen when creating an Account Plan Objective from the Account Plan? 

 

I've edited the Account Plan Objective layout and I can see the fields I created but only when I navigate to the objective and click edit in the top right corner and not when I click edit objective or add objective.   

 

Thank you! 

@* Salesforce Field Service *

Account Plan Objective fields

 

objective fields.png

 

objective layout.png

 

#Salesforce Field Service

2 件の回答
0/9000

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
1 件の回答
  1. 10月8日 20:28

    @Suresh G I'd hang the public holiday on the country's operating hours, not on the big regional territory.

    Field Service stores a holiday on an Operating Hours record. The service territory points at those hours, and members inherit them unless that member has different hours of their own. One EURAFRIC territory with one operating hours record means every country under it shares the same closures. A holiday in France would also block Kenya.

    I'd make each country its own service territory, under the region if you still want that hierarchy. Give each country its own operating hours and add that country's public holidays there. People stay members of the countries they can actually cover. Primary can be home, and a secondary membership is how someone in the region still picks up work elsewhere.

    The service appointment needs to land on the country territory. Scheduling then uses that territory's hours, so the local holiday is unavailable time. Turn on Enhanced Scheduling and Optimization, otherwise the holiday shows on the calendar and the optimizer ignores it.

    Personal days are a different record. Those go on the resource's own operating hours, not on the country. If a holiday repeats every year, keep the next occurrence on those operating hours, because scheduling follows the upcoming date.

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 件の回答
  1. Heiko Lindner (Privat) Forum Ambassador
    8月13日 5: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 件の回答
  1. 9月24日 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 件の回答
  1. 2024年1月2日 4: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 件の回答
  1. 9月14日 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 件の回答
  1. Divs Chauhan (kcloud) Forum Ambassador
    9月9日 6: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 件の回答
  1. 9月8日 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