Edit in GitHubLog an issue

Expose Commerce data

This runtime action is responsible for notifying the external backoffice application when an <object> is created, updated, or deleted in Adobe Commerce.

Incoming event payload

The incoming event payload specified during event registration determines the incoming information.

publish info from commerce

The order runtime action requires the created_at and updated_at fields.

Copied to your clipboard
{
"id": 1,
"created_at":"2000-12-31 16:52:40",
"updated_at":"2000-12-31 16:48:40"
}

The params also specify the event_code and event_id.

Payload transformation

If necessary, make any transformation changes necessary for the external backoffice application's formatting in the transformData function in the transformer.js file.

Connect to the backoffice application

Define the connection information in the sendData function in the sender.js file. Include all the authentication and connection information in the sender.js file or an extracted file outside index.js.

Parameters from the environment can be accessed from params. Add the necessary parameters in the actions/<object>/commerce/actions.config.yaml under created -> inputs, updated -> inputs, or deleted -> inputs as follows:

Copied to your clipboard
created:
function: commerce/created/index.js
web: 'no'
runtime: nodejs:16
inputs:
LOG_LEVEL: debug
HERE_YOUR_PARAM: $HERE_YOUR_PARAM_ENV
annotations:
require-adobe-auth: true
final: true
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.