You are here:
Recommended Approach for Identifying Problem Areas
Salesforce recommends you do a code inspection before testing to identify problems in custom-code. Issues regarding custom-code sensitivity to the data model changes are not always readily apparent and may pass a cursory test.
Before You Begin
-
Ensure you are familiar with the GUIDs Performance in Industries CPQ.
-
Have a general understanding of the feature and familiarity with Apex coding on the Salesforce platform.
To perform the code inspection:
-
Search the custom code for keywords ParentItemId and RootItemId.
-
Watch for search results that may occur in variable names or within SOQL queries and may include the suffix
‘__c’, depending on the context. Examine all such results and flag them if they relate to the value stored in either aParentItemId__cfield orRootItemid__cfield. -
If there are no search results, then conduct thorough testing. However, if no results were found, then it’s likely that no changes are necessary.
-
-
For search results found in step 1, determine if the result is for a SOQL
statement. For references within SOQL statements, look for the
following:
-
Is the reference to
vlocity_cmt__RootItemId__corvlocity_cmt__ParentItemId__cfields one of the affected types (Asset, OrderItem, QuoteLineItem or OpportunityLineItem)? If not, you can safely remove it from consideration. -
Is the check for null or not null only? If so, you can safely remove it from consideration.
-
If the checks above do not remove the search result from consideration, then you must modify the result. See the next section.
-
-
For hits found in step 1, determine if the hit is within non-SOQL Apex
code. For references within non-SOQL Apex code, look for the following:
-
Is the reference to the
vlocity_cmt__RootItemId__corvlocity_cmt__ParentItemId__cfield value of one of the affected SObject types (Asset, OrderItem, QuoteLineItem or OpportunityLineItem)? If not, you can safely remove it from consideration. -
Is the reference only to compare the value for null or not-null? If so, you can safely remove it from consideration.
-
If the checks above don’t remove the search result from consideration, then you must modify the result. See the next section.
-
- After inspecting and correcting the custom code, test the code to confirm proper operation.

