Skip to main content
12 votes
Accepted

Can't work with Location object in FSL

You need to explicitly reference the field service Location object as Schema.Location since just saying Location implicitly refers to the older System.Location class.
Paul H.'s user avatar
  • 1,348
11 votes
Accepted

FSL Service Appointment Test class

After a quick research, I realized a few status transitions are auto-created by package but not all of them. When you are runnning test, you do not have access those, so you need to use following ...
oozkan's user avatar
  • 599
7 votes

Activate Field Service Lightning feature in a Salesforce DX scratch org?

I heard from the DX team that as of today (October 2017), this is not possible, as I suspected. However, I was told that it is possible via a new process called "shape orgs", which is currently in ...
ArtieBrosius's user avatar
6 votes

Can't work with Location object in FSL

You can access FSL Location by using Schema.Location. This worked for me: for(Schema.Location loc : [SELECT Id,Name FROM Location]) { System.debug(loc.Name); }
Shivani Bhatia's user avatar
6 votes
Accepted

2GP Extension Package With Dependencies on External Packages

The answer is yes, absolutely. Unfortunately the Scratch Org creation mechanism isn't yet smart enough to deal with this for you and Salesforce suggested writing scripting to deal with installing the ...
Phil W's user avatar
  • 38.1k
5 votes

Can't add certain fields to field set

Field sets in managed packages require the developer to explicitly mark each one as eligible to be added to the field set. https://salesforce.stackexchange.com/a/63416/55332 There is an idea to be ...
Andy R's user avatar
  • 51
5 votes
Accepted

In Field Service Lightning Test Class on ServiceReport throws Methods defined as TestMethod do not support Web service callouts

Here is my theory. From Salesforce docs here: A service report is a PDF that summarizes a work order or service appointment and can be signed by customers and your team members. To control ...
Pranay Jaiswal's user avatar
5 votes

SDLC with data-dependent applications (CPQ and FSL)

Disclaimers: I am on the team at Salesforce.org responsible for building this free and open source toolchain, and I haven't worked on an FSL/CPQ project with it. Salesforce.org's CumulusCI (CCI) hits ...
David Reed's user avatar
  • 93.7k
5 votes
Accepted

Service resource not appearing on Gantt chart in Field service lightning

The Service Resource visibility also depends on the FSL Resource permission assignments on the User record associated to Service Resource record. Basically a technician user(associated to Service ...
Hemant Jain's user avatar
  • 2,785
4 votes

2GP Extension Package With Dependencies on External Packages

It's definitely possible to create 2GP dependent packages where the Parent Package is Health Cloud, FLS, or any other Managed/Unlocked package app. You will need the Health Cloud Package to be ...
Mohith Shrivastava's user avatar
3 votes

How can I edit Service Appointments via Field Service Lightning Mobile App?

Go to Setup Enter and go to "Field Service Mobile settings" Find the "Enable Full Edit on Records" checkbox and check it and click save. ----In the Mobile App----- Go to "Settings" Tap "Clear Purged ...
Armando Segura's user avatar
3 votes

Activate Field Service Lightning feature in a Salesforce DX scratch org?

Salesforce has updated their syntax for some features. This is now possible if you specify the feature, values for those features, and settings in your project-scratch-def.json file like so: { &...
Kyle's user avatar
  • 1,200
3 votes
Accepted

ServiceAppointment sObject Type not supported in Java Script Button

ServiceAppointment object is available in API version 38.0 and later. So, use {!REQUIRESCRIPT("/soap/ajax/38.0/connection.js")} {!REQUIRESCRIPT("/soap/ajax/38.0/apex.js")}
Santanu Boral's user avatar
3 votes

SDLC with data-dependent applications (CPQ and FSL)

This is what we do: Talend: For moving CPQ data(Product Rules, Custom Script etc) between environments, I created a ETL job in Talend and made it an executable jar file. We have also a created ETL ...
javanoob's user avatar
  • 8,957
3 votes

Remove 'Reshuffle' button in GANTT- FSL

The visibility of these buttons is controlled by custom permissions assigned to the user via profile or permission set. Refer to the documentation Reshuffle - Reshuffle appointments from the ...
Oleksandr Berehovskyi's user avatar
2 votes

Open aura:application from link on Salesforce1

There are two methods to access this Lightning App (https://myOrg.lightning.force.com/c/MyApp.app?recordId=ABCD) Create a Connected App(Under Manage Apps>New Connected App) and specify the Lightning ...
Hemant Jain's user avatar
  • 2,785
2 votes

Field Service Lightning Managed Packages

Below is a link through which you can install the Field Service Lightning Managed Package. There are also links to the documentation and a guide for migration to the new standard object model of FSL....
smukov's user avatar
  • 5,623
2 votes

Field Service Lightning Mobile Notifications

To enable push notifications for the iOS or Android app: Ensure that the connected app (different from the app itself!) has been downloaded. Enable notifications in Setup. From Setup, enter Field ...
Thomas Callahan's user avatar
2 votes
Accepted

Give create permission to Work Order Line Item

The work order and work order line item shares a master detail relationship. Work order is parent and Work order line item is child. Hence the permission will be derived through the Parent. If someone ...
sanket kumar's user avatar
  • 15.6k
2 votes
Accepted

Creating Service Resource with Asset record type

Found the answer on same link to give Lightning Scheduler permission:
वरुण's user avatar
  • 1,306
2 votes
Accepted

Not able to create Service Resource

if you manually create a ServiceResource and then query it you will find that resourcetype is set as 'T' not as 'Technincian' hence you need to pass 'T'which is a valid value for this picklist. ...
User6670's user avatar
  • 3,055
2 votes

Salesforce Field Service Lightning > Service Appointment is not appearing on the Mobile App

Make sure you have these settings in place under Field service Mobile Settings/Field service Settings. Permission set assignments as shown below for a mobile worker user in your org. Install the ...
Reddy Kumar Elisetty's user avatar
2 votes
Accepted

Field is not writeable: SkillRequirement.RelatedRecordId

From the docs it appears that the relatedrecordid does not support update. RelatedRecordId: Properties - Create, Filter, Group, Sort However, you can Insert a new record. So, instead of updating the ...
Mahmood's user avatar
  • 6,006
1 vote
Accepted

Not able to find Service Analytics Admin permission set

Service Analytics Admin and Service Analytics User are type of licenses for the permission sets. We can find the permission sets with the above licenses in Setup->Users->Permission Sets:
वरुण's user avatar
  • 1,306
1 vote

Flow failing in Field Service Lightning Mobile App but not when run in Browser

This is because there is a VERY limited number of formulas available on flows on the FIeld Service Lightning (FSL) App. Here's Salesforce's List: https://help.salesforce.com/articleView?id=...
Fosnez's user avatar
  • 11
1 vote

While offline in the Field Service Lightning mobile app, how can I determine if a record has been deleted?

I'd recommend you add a custom field to ProductConsumed called IsDeleted__c that's a boolean checkbox and create an action or component that executes offline which causes IsDeleted__c to be set to ...
crmprogdev's user avatar
1 vote
Accepted

Field Service Lightning (FSL) Scheduling

Things you have mentioned Resource Territory, Earliest Start Permitted, Working Hour, Match Territory, Resource Availability - are called Work Rules under Scheduling Policies. The Work Rules differs ...
Vinu M Shankar's user avatar
1 vote

Lightning Component - Detect Data Change from Another Source

I managed to get everything wired up leveraging lightning:empApi and a Platform Event while moving away from the force:recordData concept. Below is a working example that anyone can leverage with ...
Drew Kennedy's user avatar
1 vote

FSL App Action Layout

I dont think you can do this with configuration. Conditional required based on field values is not possible . You other options are Validation rule(which you have mentioned) Trigger code
RedDevil's user avatar
  • 7,861
1 vote

FSL Service Appointment Test class

Assuming you do not care what the previous status was. If testing an update trigger on ServiceAppointment where Status changed from A to B: In your test method update all statuses to null first and ...
Paul Juneau's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible