2022
Find the target field "ItemServiceAddRq/ItemServiceAdd/Name". Then, replace the source code by copy-pasting the following:
IF(EXACT(VALUE("PricebookEntry/Product2/AVSFQuickBooks__QuickBooks_ItemType__c"),"ItemService"), RSPLIT(VALUE("PricebookEntry/Product2/Name"),":"),"")
Add the mapping where target field = "ItemServiceAddRq/ItemServiceAdd/ParentRef/FullName" and source field as the following:
IF(EXACT(VALUE("PricebookEntry/Product2/AVSFQuickBooks__QuickBooks_ItemType__c"),"ItemService"), (IF(VALUE("PricebookEntry/Product2/Name").contains(":"), LSPLIT(VALUE("PricebookEntry/Product2/Name"),":"),"")),"")
Find the target field "ItemInventoryAddRq/ItemInventoryAdd/Name" and replace the source code by copy-pasting the following:
IF(EXACT(VALUE("PricebookEntry/Product2/AVSFQuickBooks__QuickBooks_ItemType__c"),"ItemInventory"), RSPLIT(VALUE("PricebookEntry/Product2/Name"),":"),"")
Find the target field "ItemNonInventoryAddRq/ItemNonInventoryAdd/Name". Replace the source code by copy-pasting the following:Add the mapping where target field = "ItemInventoryAddRq/ItemInventoryAdd/ParentRef/FullName" and source field as the following:
IF(EXACT(VALUE("PricebookEntry/Product2/AVSFQuickBooks__QuickBooks_ItemType__c"),"ItemInventory"), (IF(VALUE("PricebookEntry/Product2/Name").contains(":"), LSPLIT(VALUE("PricebookEntry/Product2/Name"),":"),"")),"")
IF(EXACT(VALUE("PricebookEntry/Product2/AVSFQuickBooks__QuickBooks_ItemType__c"),"ItemNonInventory"), RSPLIT(VALUE("PricebookEntry/Product2/Name"),":"),"")
Add the mapping where target field = "ItemNonInventoryAddRq/ItemNonInventoryAdd/ParentRef/FullName" and source field as the following:
IF(EXACT(VALUE("PricebookEntry/Product2/AVSFQuickBooks__QuickBooks_ItemType__c"),"ItemNonInventory"), (IF(VALUE("PricebookEntry/Product2/Name").contains(":"), LSPLIT(VALUE("PricebookEntry/Product2/Name"),":"),"")),"")