b2b-commerce-on-lightning-quickstart icon indicating copy to clipboard operation
b2b-commerce-on-lightning-quickstart copied to clipboard

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

Open peterTrifecta opened this issue 3 years ago • 2 comments

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

peterTrifecta avatar Jan 12 '22 15:01 peterTrifecta

Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support.

github-actions[bot] avatar Jan 12 '22 15:01 github-actions[bot]