Questions tagged [work-order]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
0 answers
29 views

The price book entry is in a different price book than the one assigned to the Work Order, [closed]

hi i'm trying to test a class with price book entry and work order and Product Consumed but i got this error when i insert a product consumed: FIELD_INTEGRITY_EXCEPTION, The price book entry is in a ...
user avatar
  • 11
0 votes
1 answer
42 views

Where can I find standard validation rules?

In a developer org, although validation rule lists are empty, checks are performed against data. E.g. trying to create an Entitlement record may lead to an error "The number of Remaining Work ...
user avatar
  • 13
0 votes
0 answers
24 views

Standard Class to get all available slots for a Service Resource?

I'm searching on Developer Guides and I'm getting with several classes about Service Assignment, Service Resources... I see classes that, given a Service Appointment, search for slots for Service ...
user avatar
  • 185
1 vote
1 answer
429 views

Adding an FSL flow based quick Action on FSL Mobile App

I have quick action on Work Order Object. This quick action is a type of Field Service Mobile Flow - https://help.salesforce.com/articleView?id=sf.mfs_flow_build.htm&type=5 I have added it to the ...
user avatar
  • 4,591
1 vote
0 answers
268 views

FSL: Unable to retrieve slots using GetABSlots (AppointmentBookingService)

I'm trying to use the getABSlots method of the AppointmentBookingService class, after setting up the "complex work" of service appointments in our field service settings. This is how our ...
user avatar
0 votes
0 answers
12 views

Need to create a specific workOrder when Maintaince Plan is created

I need help with some stuff, I need to create suppose 5 workOrder when the Maintain Plan is created via APEX ? When i access it's field's via apex it give me error. I have the Field Level Access (...
user avatar
  • 31
1 vote
0 answers
124 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/...
user avatar
1 vote
0 answers
801 views

Auto Generation of Work Orders from Maintenance Plans Failing

We are trying to get auto generation of Work Orders and Service Appointments working, however when we try to generate Work Orders with the following generation types it always fails: Work Order ...
user avatar
  • 187
1 vote
1 answer
731 views

Give create permission to Work Order Line Item

I am creating a permission set. Need to give Create permission to the Work Order Line Item. Usually, I see the below section for the object, to give Create, Read, Edit and Delete access: But not ...
user avatar
1 vote
1 answer
318 views

Retrieving StandardValueSet member WorkOrderPriority returns WorkOrderLineItemPriority

I'm struggling with retrieving standard picklist Priority from the WorkOrder object. I'm trying to determine if I'm doing something massively wrong, or if there is a bug in the metadata API. I have ...
user avatar
  • 51
1 vote
1 answer
335 views

Activate WorkOrder object with project-scratch-def.json file

I'm trying to define my project-scratch-def.json file to enable the standard WorkOrder object, it appears the object is enabled under the Field Service section of the setup menu. I added the ...
user avatar
  • 1,844
3 votes
1 answer
1k views

Available edits to Work Order Overview FSL mobile

I am attempting to make edits to what Salesforce refers to as the "work order carousel" on FSL mobile. Particularly the Work Order Overview layout. I would like to edit the Service Appointment card ...
user avatar
1 vote
0 answers
46 views

EndDate and StartDate on Canceled WorkOrders

WorkOrders have a set of standard fields called StartDate and EndDate. According to the SOAP API documentation, they are defined as such: StartDate: The date when the work order goes into effect. ...
user avatar
0 votes
1 answer
340 views

Standard Lightning Spinner turns constantly after a screen flow action execution on Work Order Object

I have a flow action on the work order object under the activity tab because its a classic behaviour in salesforce for Work Order and Case Object. When I launch the screen flow, the execution is good ...
user avatar
0 votes
1 answer
395 views

Process Builder: How can I call another object while creating Work Order?

I'm trying to make the following happen. When creating a Work Order there are two fields that hold a master-relationship (Accounts & Assets). I want to create a process that allows me to call the ...
user avatar
1 vote
0 answers
218 views

SFDX FieldService setting [duplicate]

I'm trying to work with WorkOrder object on my scratch org, but when I pull changes I'm getting error: sfdx force:source:pull -f -u 13285 --loglevel debug ERROR: Settings type: 'FieldService' is ...
user avatar
  • 155
0 votes
1 answer
747 views

Work Order Line Item not being inserted in test class

I have a piece of code in my apex class which queries a work order with the corresponding Case ID. I have written the corresponding test method for this class, as follows: Case c = new Case(); insert ...
user avatar
  • 331
0 votes
2 answers
2k views

Field is inaccessible in this context

We have a managed package app which makes dynamic queries where the customer can set which fields to query on an object. The customer has enabled in her org the service called 'Field Service ...
user avatar
1 vote
0 answers
81 views

How to enable Work Orders using Metadata API

I was hoping to deploy a package to my production org, but it seems that I must check off "Enable Work Orders" in Field Service Settings on my own. Is that the case? I was hoping that there'd be a ...
user avatar
1 vote
1 answer
313 views

Illegal assignment from List<WorkOrder> to List<WorkOrder>

Trying to run this very simple operation and getting exception as in title: list<workorder> o = [select id from workorder]; Wat?
user avatar
  • 4,528
0 votes
1 answer
339 views

Not able to access the WorkOrder object in visualforce page. Throwing System.Visualforexecution exception

I wrote following visualforce page <apex:page standardController="Case" extensions="WorkOrdersController" sidebar="true"> <apex:repeat var="testWorkOrder" value="{!...
user avatar
  • 23
1 vote
1 answer
548 views

Uses for Work Orders [closed]

I'm excited by Work Orders, but only if they add improved reporting or trackability. I would love to see something like Taskray's or Jira's boards on WorkOrders, and to be able to report on our speed ...
user avatar