In Salesforce Field Service, contractor users operate with a community user license. When a contractor user opens a dispatched service appointment in the Field Service mobile app and attempts to complete the service report, the following error occurs:'WorkTypeId' in type 'WorkOrder is undefined'
Additionally, work steps that are associated with the work type of the work order do not appear in the mobile app for the contractor user. The issue persists even when:
The root cause is a missing object-level permission on the Work Type object for the contractor/community user's profile or permission set. When the Field Service mobile app's internal flow (or any auto-launched flow used during service report generation) includes a Get Work Order flow element that queries the Work Type object (via the WorkTypeId field), the system throws an undefined field error if the user does not have at least Read access to the Work Type object. This also prevents work steps — which are linked to the work type — from loading for that user.
Secondary cause: Other fields referenced within the Get Work Order element of the flow may also be inaccessible to the contractor user, compounding the errors.
To resolve the 'WorkTypeId' undefined error and missing work steps for contractor users in the Field Service mobile app, follow these steps:
Step 1: Grant Read Access to the Work Type Object
Step 2: Verify Field-Level Security on Work Order Fields Used in Flows
Step 3: Review the Flow Configuration
Step 4: Test the Configuration
005317695

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.