Được dịch bằng AI. Cộng đồng chưa xem xét. Đọc bằng tiếng Anh

JSON Jamboree: Fixed vs. Dynamic Deserialization Showdown for Apex Callouts (in English)

Updated 2026-11-07
Published 2023-09-04 · update checked 2026-11-07 · Watch on YouTube

What's changed since the video

Each change is dated and checked against Salesforce's own documentation.

  • The flight data API now needs a different sign-in. The demo calls the OpenSky Network's public API. OpenSky's own guide says that "Since March 18, 2026, basic authentication with username and password is no longer supported" and that "Authentication now uses the OAuth2 client credentials flow" (opensky-api, OpenSky Network, checked 2026-11-07). If you try the calls yourself, sign in that way, through a named credential.
  • Where the mapping lives, in more depth. The course teaches the same idea, the mapping as data, with who owns it and how it changes (chapter 3, module 5). Not a platform change.

Still right

  • Three ways to turn a JSON answer into Salesforce data in Apex: an Apex class that matches the answer exactly, read in one line; a hand-written parser for an answer you can only read by position; and a mapping kept in custom metadata.
  • The custom metadata mapping is the one to remember: which field in the answer goes to which field on the record is data, not code, so it can change in production without a deployment.

All videos in this series: Kiến trúc tích hợp

Video chỉ được tải từ YouTube khi bạn nhấp vào.