forcedotcom / forcedotcom/b2b-commerce-on-lightning-quickstart

Modify the PLP's Apex to use the Connect API in Apex instead of callout to SF REST endpoint

Open
#62 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
Shell
Stars
191
Forks
211
PR merge metrics
No merged PRs in 30d

Description

https://github.com/forcedotcom/b2b-commerce-on-lightning-quickstart/blob/741479e9eca0ba6b73f4bf503427fe3357ba34c1/examples/lwc/force-app/main/default/classes/B2BSearchControllerSample.cls#L25

That code still uses the REST API, but there is a method in Apex now.
https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_CommerceSearch_static_methods.htm#apex_ConnectAPI_CommerceSearch_productSearch_1

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with examples/lwc/force-app/main/default/classes/B2BSearchControllerSample.cls at line 25 and compare its current REST API call with the linked Apex ConnectAPI CommerceSearch documentation. Done means the PLP search uses the Apex Connect API method instead of calling the Salesforce REST endpoint.

Written by the indexing model from the issue text.

Assessment

Domain
backend-api-design
Issue type
Refactor
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.