BlogBlogtypeA post on somebody's own site or a community platform. Nobody edits it after publication, so it dates from the day it was written.See every one →SAP CommunityPart 1 of 3

CAP: Consume External Service - Part 1

Builds a CAP Node.js service from scratch that consumes the public NorthWind OData V4 service: cds import turns its EDMX metadata into a CSN model under srv/external, and a CatalogService projects Products from it with a custom READ handler that runs the request through cds.connect.to('NorthWind'). Shows the same projection working two ways — against a CSV mocked under srv/external/data with the <service>-<entity>.csv naming the framework expects, then against the real service once credentials.url is added to the CAP configuration and @sap-cloud-sdk/http-client is installed — and defers routing that connection through the Cloud Foundry Destinations service to the next post in the series.

Where it sits

Explains
Service integrationCAPService integrationcapabilityUsing a service that runs somewhere else as if it were one of your own: its API imported into the model, a proxy that turns a local query into the remote protocol, and a mock that stands in for it on a laptop. Distinct from [destinations](capability:destinations), which is how the address and the credentials are found, and from [replication](capability:replication), which is holding the data locally.Seed dataCAPSeed datacapabilityGetting realistic data into a service so it can be developed and demonstrated — initial data, per-tenant content, and believable volumes for testing.
Since then
Seed data changed in @sap/cds-dk 7.9.1, 2024-05-02
Source
reachable

Who is behind it

Jhodel CailanJhodel CailanPersonWrote this
In the atlas: maintains 1, contributes to 1, wrote 3
@jcailan
author

In this series3

  1. 1
    CAP: Consume External Service - Part 1you are here
  2. 2
  3. 3

Before you read it

ApplicabilityCore changedSeed data changed in @sap/cds-dk 7.9.1, 2024-05-02.

This is a derived prompt to re-check the work, not a claim that the work is wrong. Exact stale statements are recorded separately after editorial review.

Properties

About this work

declared and crawled
Published
declared
Published on
declared
Views
crawled
79,527

For seed-data

on the edge
Applies in
authored
cap

More on this16

In topics
Building onedevatlasTopic, edition 11 entry named

Building onedevatlas: the idea, the back-and-forth with AI, the wrong turns, and an orb who lost his permanent spot in the atlas.

Group by15 of 15 pieces
Piece, what it offersStill applies
Also explainingService integration13
The ECC-to-CAP Starter Kit
YouTube — SAP Developers playlists, Sebastiano Marchesini
nothing recorded
Avoiding Data Loss When Loading Initial Data with CSV Files in CAP
SAP Community, MioYasutakeThe reasoningRunnable code
nothing recorded
Handling CSV Data Deployment in CAP HDI Without Data Loss
SAP Community, Sekar_SomasundaramThe reasoningA recipeRunnable code
nothing recorded
Avoid design time CAP server restarts when maintaining local data files
SAP Community, DJ AdamsThe reasoningRunnable code
Core changed
ISO content for common CAP types
SAP Community, DJ AdamsThe reasoningRunnable code
Core changed
#BTP #SAPCAP: Quirky Nuggets (N05-N06)
SAP Community, Lukas Schwabe
nothing recorded
CAP Service to Fetch + Create Sales Order in S4 HANA Public Cloud
SAP Community, Mujeeb
nothing recorded
Add useful Extensions to Dev spaces in SAP Business Application Studio
SAP Community, showkath_naseemThe reasoning
nothing recorded
Extend SAP SuccessFactors on SAP BTP with CAP - Create the CAP Service
SAP Community, Alessandro Biagi
nothing recorded
Extend SAP SuccessFactors on SAP BTP with CAP - Import SAP SuccessFactors OData Services definitions
SAP Community, Alessandro Biagi
nothing recorded
SAP CAP: Consume SAP API Hub Sandbox Data as an external service Part- 1
SAP Community, DebashishDas
nothing recorded
SAP CAP Adapter to expose OData as custom REST Service
SAP Community, Former Member
nothing recorded
Event-driven Extensions for SAP SuccessFactors on SAP BTP – Connecting the Dots
SAP Community, Former Member
nothing recorded
Keep the Core Clean with Rizing CDSX
SAP Community, Jhodel Cailan
nothing recorded
CAP: Consume External Service – Part 3
SAP Community, Jhodel Cailan, part 3 of 3
nothing recorded

Details

Graph5 edges
← POINTS HERE
POINTS OUT →
explainsService integrationcapability, core and community
explainsSeed datacapability, core and community
published onSAP Communitypublishing source
discovered viaSAP Communitycap-tag
Source
Type
blog
Published on
Host
community.sap.com
First seen
History2
  • explains → applies_to on capability:seed-data (cap)Door scope proposed from the title and summary, so a door page lists the piece only where it holds (docs/concepts/content-on-doors.md).
  • Entered the atlasDiscovered via SAP Community · cap-tag.
For your agent
Ref
content:cap-consume-external-service-part-1
JSON
/content/cap-consume-external-service-part-1.json
MCP
Connecting an agent