Sustainability Activities
sustainabilityActivities Based on 26C
Create, change, delete and look up Sustainability Activities, with emissions, measures and validation messages. Actions include cancel activity and post to ledger.
- Operations
- GET (list)GET (one)POST (create)PATCH (update)DELETE3 actions
- Record key
ActivityId- Required on create
ActivityDate- At a glance
- 56 fields1 finders5 children
Try it
Only attributes Oracle marks as searchable are offered.
GET /fscmRestApi/resources/11.13.18.05/sustainabilityActivities?fields=ActivityDate,ActivityId,ActivityNumber,AlertFlag,CalculationDate&limit=25&onlyData=true
{
"items": [
{
"ActivityDate": "2026-01-31",
"ActivityId": 0,
"ActivityNumber": "<string, max 100>",
"AlertFlag": false,
"CalculationDate": "<string, max 255>"
}
],
"count": 25,
"hasMore": true,
"limit": 25,
"offset": 0
}Shapes and placeholders, not real data. Replace https://<your-pod> and the login with your own: this site never sees them. Based on Oracle's 26C REST specification.
Fields 56
| Attribute | Type | Use |
|---|---|---|
ActivityDate | date | Required on createUpdatableSearchable |
ActivityId | number | Read-onlySearchable |
ActivityNumber | text · max 100 | Read-onlySearchable |
AlertFlag | yes/no | Read-onlySearchable |
CalculationDate | text · max 255 | Read-only |
CalculationOverride | text · max 255 | Optional on createUpdatableSearchable |
CalculationOverrideCode | text · max 100 | Optional on createUpdatableSearchable |
ClassificationCategory | text · max 255 | Read-onlySearchable |
ClassificationCategoryId | number | Read-onlySearchable |
ClassificationRuleId | number | Read-onlySearchable |
ClassificationRuleName | text · max 255 | Read-onlySearchable |
Comments | text · max 4000 | Optional on createUpdatableSearchable |
ConsumptionEndDate | date | Optional on createUpdatableSearchable |
ConsumptionStartDate | date | Optional on createUpdatableSearchable |
Country | text · max 255 | Optional on createUpdatableSearchable |
CountryCode | text · max 2 | Optional on createUpdatableSearchable |
CreatedBy | text · max 64 | Read-onlySearchable |
CreationDate | date-time | Read-onlySearchable |
DataQuality | text · max 255 | Optional on createUpdatableSearchable |
DataQualityCode | text · max 30 | Optional on createUpdatableSearchable |
Description | text · max 4000 | Optional on createUpdatableSearchable |
DistributionLineNumber | number | Optional on createUpdatableSearchable |
EntryType | text · max 255 | Optional on createUpdatableSearchable |
EntryTypeCode | text · max 30 | Optional on createUpdatableSearchable |
EsgLedgerId | number | Read-onlySearchable |
ExternalReferenceNumber | text · max 100 | Optional on createUpdatableSearchable |
InventoryItemId | number | Optional on createUpdatableSearchable |
InvoiceDistributionId | number | Optional on createUpdatableSearchable |
InvoiceId | number | Optional on createUpdatableSearchable |
InvoiceLineNumber | number | Optional on createUpdatableSearchable |
InvoiceNumber | text · max 80 | Optional on createUpdatable |
ItemDescription | text · max 255 | Read-onlySearchable |
ItemNumber | text · max 255 | Optional on createUpdatableSearchable |
LastUpdateDate | date-time | Read-onlySearchable |
LastUpdatedBy | text · max 64 | Read-onlySearchable |
Ledger | text · max 255 | Read-onlySearchable |
LegalEntity | text · max 255 | Optional on createUpdatableSearchable |
LegalEntityId | number | Optional on createUpdatableSearchable |
OriginalActivityId | number | Optional on createUpdatableSearchable |
OriginalActivityNumber | text · max 255 | Optional on createUpdatableSearchable |
Period | text · max 255 | Optional on createUpdatableSearchable |
PeriodId | number | Optional on createUpdatableSearchable |
PostingDate | date-time | Read-onlySearchable |
Scope | text · max 255 | Optional on createUpdatableSearchable |
ScopeCategory | text · max 80 | Optional on createUpdatableSearchable |
ScopeCategoryCode | text · max 30 | Optional on createUpdatableSearchable |
ScopeCode | text · max 30 | Optional on createUpdatableSearchable |
SourceType | text · max 255 | Optional on createSearchable |
SourceTypeCode | text · max 100 | Optional on createSearchable |
Status | text · max 255 | Read-onlySearchable |
StatusCode | text · max 30 · default ORA_SUS_STATUS_DRAFT | Read-onlySearchable |
Supplier | text · max 255 | Optional on createUpdatableSearchable |
SupplierId | number | Optional on createUpdatableSearchable |
TotalCo2e | number | Read-onlySearchable |
TotalCo2eUOM | text · max 3 | Read-onlySearchable |
TotalCo2eUOMName | text · max 255 | Read-onlySearchable |
Names, types, labels and flags from Oracle's REST specification (26C). Flexfield and custom attributes vary by pod: check /describe for yours.
Finders 1
Predefined searches: ?finder=Name;variable=value,variable2=value2. Pick one in Try it to build the call.
ActivityIdFinder·ActivityId
Check a payload
Checked in your browser only; nothing you paste is sent anywhere. Checks names and flags, not values.
Children 5
Child resources sit under one record: /fscmRestApi/resources/11.13.18.05/sustainabilityActivities/{ActivityId}/child/<name>. Add them to a GET with expand.
ActivityDffGET · POST · PATCH · DELETE Activity Descriptive Flexfields · 3 fieldsActivityId__FLEX_Context__FLEX_Context_DisplayValueEmissionFactorMapDFFGET · POST · PATCH · DELETE Activity Emission Factor Map Descriptive Flexfields · 3 fieldsActivityId__FLEX_Context__FLEX_Context_DisplayValueEmissionsGET · POST · PATCH · DELETE Emissions · 27 fieldsActivityEmissionIdActivityIdActivityMeasureIdCo2eEmissionQuantityCo2eUOMCo2eUOMCodeDenominatorCurrencyDenominatorCurrencyCodeDenominatorUOMDenominatorUOMCodeDescriptionEmissionFactorEmissionFactorMappingIdEmissionQuantityEmissionTypeEmissionTypeCodeEmissionUOMEmissionUOMCodeFactorSourceGwpFactorGwpIdMeasureMeasureTypeMeasureTypeCodeMeasureUnitNumeratorUOMNumeratorUOMCodeMeasuresGET · POST · PATCH · DELETE Activity Measures · 8 fieldsActivityMeasureIdCurrencyCurrencyCodeMeasureMeasureTypeMeasureTypeCodeUOMUOMCodeValidationMessagesGET Validation Messages · 9 fieldsActivityIdEmissionTypeCodeMessageMessageCodeMessageLevelMessageLevelCodeMessageSummaryMessageSummaryCodeValidationMessageId
Actions 3
POST …/{ActivityId}/action/cancelActivityPOST …/{ActivityId}/action/postToLedgerPOST …/{ActivityId}/action/validateActivity
Actions use Content-Type: application/vnd.oracle.adf.action+json. A path with a {key} runs on one record.
Use in AI Agent Studio
- Point a Business Object or REST tool at
/fscmRestApi/resources/11.13.18.05/sustainabilityActivitiesand ask only for the fields the agent needs withfields=. Big responses cost tokens and slow the agent. - Prefer a finder such as
ActivityIdFinderfor the agent's main search: its variables become clean tool parameters. - Narrow with
q=on searchable fields and a smalllimit; for a count usetotalResults=true&limit=1. - Call once and pass the result on to later steps rather than calling the same endpoint again.
- This resource can change data. Put a human approval step before any create, update, delete or action call.
More in For Builders.
Pitfalls
- Attribute names are case-sensitive in
q,fieldsand bodies:ActivityDate, notactivitydate. - 21 fields are read-only: sending them in POST or PATCH fails or is ignored. The builder leaves them out.
- Send dates as
YYYY-MM-DD; date-time fields take ISO 8601 with a time zone. - A list returns 25 rows unless you set
limit; readhasMoreand moveoffsetto page through. - Text fields have maximum lengths (shown in the field table). Longer values are rejected.