Newer Version Available

This content describes an older version of this product. View Latest

FuelType

Represents a custom fuel type in an org.

Parent Type

This type extends the Metadata metadata type and inherits its fullName field.

File Suffix and Directory Location

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

Version

FuelType components are available in API version 57.0 and later.

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

Field Name Description
description
Field Type
string
Description
Description about the fuel type.
isActive
Field Type
boolean
Description
Indicates whether the fuel type is active (true) or not (false).
The default value is false.
isProtected
Field Type
boolean
Description
An auto-generated value that doesn’t impact the behavior of the metadata type.
The default value is false.
isStationaryAssetFuel
Field Type
boolean
Description

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

The default value is false.
isVehicleAssetFuel
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
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.