... a contemporary perspective on how to integrate B2C Commerce and the Salesforce Customer 360 Platform to power frictionless customer experiences in the B2C domain.
Describe the bug
Error element ia_persistAndAuditB2CAuthToken (FlowActionCall).
An Apex error occurred: System.DmlException: Insert failed. First exception on row 0; first error: STRING_TOO_LONG, B2C AuthToken: data value too large:
<a large access token which is definitely greater than 80 characters>
(max length=80): [Name]
Flow Details
Flow API Name: B2CCommerce_PlatformEvent_ProcessContactUpdate
Type: Autolaunched Flow
To Reproduce
Steps to reproduce the behavior:
Whenever a new customer is created in SFCC and it gets syncs to SFOMS, we get the above error
When we deep dived, it seems that the class "B2CIAPersistB2CAuthToken" is trying to insert records of B2C_AuthToken__c object and while doing so is storing the access token in the standard name field, which is limited to 80 characters.
Expected behavior
Since the token size is usually more than 80 characters, I would expect to store this in another field like a text area field
Your local environment details:
Node version (node -v): v18.2.0
NPM version (npm -v) 8.9.0
SFDX version (sfdx -v) sfdx-cli/7.140.0 win32-x64 node-v16.14.0
Describe the bug Error element ia_persistAndAuditB2CAuthToken (FlowActionCall). An Apex error occurred: System.DmlException: Insert failed. First exception on row 0; first error: STRING_TOO_LONG, B2C AuthToken: data value too large: <a large access token which is definitely greater than 80 characters> (max length=80): [Name]
Flow Details Flow API Name: B2CCommerce_PlatformEvent_ProcessContactUpdate Type: Autolaunched Flow
To Reproduce Steps to reproduce the behavior:
Expected behavior Since the token size is usually more than 80 characters, I would expect to store this in another field like a text area field
Your local environment details:
node -v
): v18.2.0npm -v
) 8.9.0sfdx -v
) sfdx-cli/7.140.0 win32-x64 node-v16.14.0Your remote environment details: