FuelType

Represents a custom fuel type in an org.

Parent Type 

This type extends Metadata and inherits its fields.

File Suffix and Directory Location 

FuelType components have the suffix .fuelType and are stored in the fuelTypes folder.

Version 

Introduced in API version 57.0.

Special Access Rules 

The Net Zero Cloud permission set license is required to access this object along with the user access for carbon accounting and org access for custom fuels and unit of measures (UOMs).

Fields 

description 

  • Type: string

  • Required: No

  • Description: Field Type: string

    Description: Description about the fuel type.

isActive 

  • Type: boolean

  • Required: No

  • Description: Field Type: boolean

    Description: Indicates whether the fuel type is active (true) or not (false).

    The default value is false.

isProtected 

  • Type: boolean

  • Required: No

  • Description: Field Type: boolean

    Description: An auto-generated value that doesn’t impact the behavior of the metadata type.

    The default value is false.

isStationaryAssetFuel 

  • Type: boolean

  • Required: No

  • Description: Field Type: boolean

    Description:

    Indicates whether the fuel type is used in stationary assets (true) or not (false).

    The default value is false.

isVehicleAssetFuel 

  • Type: boolean

  • Required: No

  • Description: Field Type: boolean

    Description: Indicates whether the fuel type is used in a vehicle asset (true) or not (false).

    The default value is false.

masterLabel 

  • Type: string

  • Required: Yes

  • Description: Field Type: string

    Description:

    Required.

    A user-friendly name for FuelType, which is defined when the FuelType is created.

Declarative Metadata Sample Definition 

The following is an example of a FuelType component.

1<?xml version="1.0" encoding="UTF-8"?>
2<FuelType xmlns="http://soap.sforce.com/2006/04/metadata">
3    <description>This is Petrol Fuel Type</description>
4    <isProtected>true</isProtected>
5    <isActive>true</isActive>
6    <isStationaryAssetFuel>true</isStationaryAssetFuel>
7    <isVehicleAssetFuel>true</isVehicleAssetFuel>
8    <masterLabel>Petrol</masterLabel>
9</FuelType>

The following is an example package.xml that references the previous definition.

1<?xml version="1.0" encoding="UTF-8"?>
2<Package xmlns="http://soap.sforce.com/2006/04/metadata">
3   <types>
4      <members>Petrol</members>
5      <members>Diesel</members>
6      <members>Kerosine</members>
7      <name>FuelType</name>
8   </types>
9   <version>57.0</version>
10</Package>

Wildcard Support in the Manifest File 

This metadata type supports the wildcard character * (asterisk) in the package.xml manifest file. For information about using the manifest file, see Deploying and Retrieving Metadata with the Zip File.