ccrz.ccLogicAddressBookCreateAddressBook.processAddressBook
Constructs a ccrz__E_AccountAddressBook__c sObject
from the input values.
Compatibility
This reference applies to:
Release | Managed Package Version | API Version |
---|---|---|
B2B Commerce for Visualforce Winter ’21 | 4.13 | 12 |
B2B Commerce for Visualforce Spring ’20 | 4.12 | 11 |
B2B Commerce for Visualforce Summer ’19 | 4.11 | 10 |
B2B Commerce for Visualforce Spring ’19 | 4.10 | 9 |
B2B Commerce for Visualforce Summer ’18 | 4.9 | 8 |
Signature
global virtual Map<String, Object> processAddressBook(Map<String, Object>)
Inputs (Required)
This method accepts the working Map<String, Object> after the ccrz.ccLogicAddressBookCreateAddressBook.processInput method completes.
This method requires the following keys in the working map:
- ccrz.ccApiAddressBook.ADDRESSBOOKS
- List<Map<String, Object>>, where each Map<String, Object> contains the fields and values to use for creating an account address book record.
- ccrz.ccService.TRANSFORMINDEX
- Map<String, Object> that the ccrz.ccServiceCart data service provider generates for defining how the fields in a map convert to sObject data.
Inputs (Optional)
If the working map includes the following key, this method evaluates it:
- ccrz.ccApi.SKIP_OWNERID
- Boolean
Value Usage true Set the Owner field on the new sObject to a default value. false (default) Set the Owner field on the new sObject to the value of ccrz.cc_CallContext.currUserId.
Logic Performed
This method completes the following actions:
- For each address book represented in ccrz.ccApiAddressBook.ADDRESSBOOKS, this method evaluates ccrz.ccService.TRANSFORMINDEX and serializes the input data to a ccrz__E_AccountAddressBook__c sObject.
- Evaluates ccrz.ccApi.SKIP_OWNERID for setting the Owner field on each ccrz__E_AccountAddressBook__c sObject.
Outputs
This method returns the working Map<String, Object>, and sets the following key:
- ccrz.ccApiAddressBook.AB_TO_INSERT
- List<ccrz__E_AccountAddressBook__c> of the account address book sObject data to insert.