forcedotcom / b2b-commerce-on-lightning-quickstart

Creative Commons Zero v1.0 Universal
176 stars 207 forks source link

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

Open peterTrifecta opened 2 years ago

peterTrifecta commented 2 years ago

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

github-actions[bot] commented 2 years ago

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.

HeartlyHarsh commented 1 year ago

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

Thanks for suggestion under issue. This help me a lot with saved my so much time.!!