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.
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 ...
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 ...
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);
}
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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:
{
&...
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")}
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 ...
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 ...
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 ...
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....
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 ...
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 ...
2
votes
Accepted
Creating Service Resource with Asset record type
Found the answer on same link to give Lightning Scheduler permission:
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.
...
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 ...
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 ...
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:
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=...
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 ...
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 ...
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 ...
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
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
field-service-lightning × 116fieldservice × 37
fsl × 24
apex × 12
visual-workflow × 11
work-order × 8
mobile × 7
salesforce1-app × 6
lightning × 5
servicecloud × 5
lightning-web-components × 4
salesforcedx × 4
permission-sets × 4
unit-test × 3
managed-package × 3
validation-rule × 3
permissions × 3
service × 3
salesforce-mobile-app × 3
visualforce × 2
lightning-aura-components × 2
rest-api × 2
integration × 2
lightning-apps × 2
customer-community × 2