Skip to main content
The 2024 Developer Survey results are live! See the results
7 votes
Accepted

ConnectApi.ConnectApiException: This isn't a buyer account

Can you try below code and see if it works BuyerAccount buyerAccount = new BuyerAccount(); buyerAccount.BuyerId = account.Id; buyerAccount.Name = 'Test Buyer Account (BA-AJ)'; buyerAccount.IsActive = ...
Swetha Maddali's user avatar
5 votes

Customize the apex class in Cloudcraze to extend functionality

You have to reference all types, interfaces, and other identifiers that are part of a managed package with the appropriate namespace prefix. If the type ccLogicOrderCancel is part of the managed ...
David Reed's user avatar
  • 93.2k
4 votes

Storefront of Salesforce Commerce Cloud

Related to Salesforce B2C Commerce (pka Demandware): Nodejs is server-side technology, which at the moment is not compatible with Salesforce B2C Commerce. Instead the server-side code runs on Rhino ...
Zlatin Zlatev's user avatar
3 votes
Accepted

Do I need to buy Pardot to practice what I learn about it or is there a free version like developer orgs?

There is no free/developer accounts for pardot and marketing clouds, unfortunately.
user2815826's user avatar
2 votes
Accepted

SFDX: Cannot assign B2B Permission Set due to missing License

You cannot use scratch orgs with B2B CloudCraze because, as you noticed, the license is -unfortunately- not available in scratch orgs. So, you should use developer orgs or sandboxes for your ...
Louis Bompart's user avatar
2 votes
Accepted

Cloud Craze creation of ccrz Object

Hi Alessio hope you already received an answer for this but if not you are headed down the correct path. In order to get custom order fields in the CCRZ object you need to extend the ccrz....
myForceDotCom's user avatar
2 votes
Accepted

B2B Lightning - Retrieve store URL from Product Id

Hey @slaughterize good day. we had this instance on our project and would like to share how we constructed the URLs programmatically for consumption. Think of it as 2 parts: BaseURL: https://(domain)....
malacdon's user avatar
  • 321
2 votes
Accepted

Payment Gateway Authentication

Evidently this is a known issue when using CyberSource as the Payment Gateway for the B2B LE Checkout Flow. There is a documented workaround that I found in the B2B Commerce on Lightning Experience ...
Winston Henke's user avatar
2 votes
Accepted

What are the actual effects of enabling Enhanced Commerce Order?

This setting just changes the fields on the cart / order objects to make them play nice with the rest of the LEX product. It is for overall compatibility with CPQ billing (For example without "...
Anudeep Gopagoni's user avatar
2 votes

How to Debug LWC components from Community

if you are trying to debug the JavaScript, I would recommend using the Chrome dev console. You can pretty print the JS so it is easier to read and you can add your own breakpoints right there in the ...
binaryLady's user avatar
2 votes
Accepted

ConnectApi.CommerceCatalog.getProduct on inactive product

We've had this issue before in our project, here is what we did. ConnectApi Commerce class methods respects the structure of your storefront (I.E Entitlements, Pricebooks, Products) So as a workaround:...
malacdon's user avatar
  • 321
2 votes
Accepted

Apply Style to a div class in B2b LWR site

Where there isn't a CSS property, you can resort to using a CSS selector - many patterns are supported. For your case that could be: <style> div[name="header"].header { position: ...
Keith C's user avatar
  • 137k
2 votes
Accepted

sObject type 'Store' is not supported

Use this query SELECT Id, TypeOf SalesStore WHEN WebStore THEN Description END FROM OrderSummary WHERE Id = 'MY_ID' The TypeOf must name the relationship name (which is SalesStore) The reason you ...
cropredy's user avatar
  • 72.2k
1 vote

B2B Commerce Lightning - Product Media via REST or Apex

It seems that you can create ProductMedia records via Apex using ConnectApi methods from the ManagedContent class (https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/...
Moonpie's user avatar
  • 2,714
1 vote
Accepted

Apex Bulk API order of processing for CSV records

In my experience, Yes, all the records in the same file are processed in the same order as within the file if you're using Version 1 (V1) of the Bulk API. The chunking that happens within each batch ...
Luke Freeland's user avatar
1 vote
Accepted

B2B Experience site - Get Current CartId

You can import CartSummaryAdapter from commerce/cartApi and wire that to retrieve the current active cart Id: import { LightningElement, wire } from "lwc"; import { CartSummaryAdapter } ...
Tim's user avatar
  • 1,373
1 vote

OCAPI: using expand parameters returns status code 400

The documentation states to use 'stats' to get those three values. Please try: /coupons/aCoupon?expand=stats
Thomas Theunen's user avatar
1 vote

Error: You can add up to 5 000 Products to a Category

I have been informed that Salesforce can increase the limit by opening a case with them.
Pablo C's user avatar
  • 21
1 vote
Accepted

Enable B2B Commerce in Existing Salesforce Org

Your Salesforce Account Executives are the best people to reach out to for License related queries, cost, and org planning, and please confirm with them. From my knowledge, You can certainly enable ...
Mohith Shrivastava's user avatar
1 vote

How to get the redirect url, when we clicked on "Log is as user experience" in contact

You can see the redirect URL after you click on Log in to Experience as User https://yourDomain.my.salesforce.com/servlet/servlet.su? with the following parameters: oid= Your Salesforce Organization ...
Kris Goncalves's user avatar
1 vote
Accepted

Unable to create Scratch Org with B2B Commerce Lightning

The solution is fairly simple: Define the APIVersion as part of the scratch org creation. --apiversion 54.0 Example: sfdx force:org:create -f config/project-scratch-def-b2b.json -a ci_scratch -s -d 1 -...
Johann Furmann's user avatar
1 vote

How to migrate B2B store from sandbox to production?

https://help.salesforce.com/s/articleView?id=sf.comm_migrate_store.htm&language=en_US&r=https%3A%2F%2Fwww.google.com%2F&type=5 You can do it with change sets 1.Export the store that you ...
Toby's user avatar
  • 21
1 vote
Accepted

How do you maintain an org development cycle with a B2B LEX store?

The answer seemed to lie in this old blog post regarding communities, in which the Experience in both orgs - the source and target org - must have the same name. In short, as far as B2B is concerned, ...
Victor Lockwood's user avatar
1 vote

Add cart in the commerce cloud test class : ConnectApi methods are not supported in data siloed tests

This is unfortunately another case when Salesforce product team does not follow their own guidelines. SeeAllData=true should be a last resort. Especially that you might want to create a package which ...
Mateusz Michalczyk's user avatar
1 vote

Add cart in the commerce cloud test class : ConnectApi methods are not supported in data siloed tests

Happy new year! Most Connect in Apex methods require access to real organization data, and fail unless used in test methods marked @IsTest(SeeAllData=true). ConnectApi CommerceCart requires access ...
malacdon's user avatar
  • 321
1 vote

CloudCraze - Not able to place order using API

You can use Line-Level-Independence (LLI) to adjust the standard checkout flow and: Create multiple shipping groups for an order. Override shipping address, shipping method, shipping charge, and ...
shmuli's user avatar
  • 170
1 vote

SFDX: Cannot assign B2B Permission Set due to missing License

The license is now available, as outlined here: https://dreamevent.secure.force.com/articleView?id=release-notes.rn_scratch_org_b2b_commerce.htm&type=5&release=230
shmuli's user avatar
  • 170

Only top scored, non community-wiki answers of a minimum length are eligible