cancel
Showing results for 
Search instead for 
Did you mean: 

C4C Utility Move-In; Accessing Customer Object During Contract Account Scripts

Former Member
0 Kudos

Hello Community.

I have a question that I hope someone can help with. Within the Utilities Guided Move-In process I obviously have scenarios where a new contract account is required. When the end-user chooses "New" the fields for the new Contract Account appear. I would like to derive some default values for these fields based on attributes on the Customer (new or pre-existing) that would have already been designated at this point. However, I cannot find where I have an extensibility option to readily access the customer object. I have already extended the UtilitiesActionBO object for some fields on Contract Account and I see in the data model for this page that there is a Cust_info association object in addition the node CustomerDetails that exists as a sub-node on the UtilitiesActionBO. But, during my script processing for Contract Account the only other element I have access to is the Root UIID. I'm confused as to what I cannot access the customer object related to the move-in process being executed. If there is any guidance/hints someone can suggest I would appreciate it.Thank you.

James

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hi James,

Few Pointers:-

If you are in the scope of ContractAccountDetails, below is how you can get details of other Nodes.

Other useful information is if the customer you have selected is existing already in C4C it's relevant data will be filled under Contract Node like highlighted above and you can use Customer BO to fetch further details of him.

But if you choose to create a new customer as a part of Guided process then you can get's those details as a part of Customer Details, as those information will be not yet there in C4C.

I hope this helps.

Thanks & Regards,

John

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello again Sir. I think I understand a bit better now. Up to this point I had been using pre-existing BPs which appear not to populate this node. But..if I use the New Customer option and enter information there does appear to be info loaded into that node. So...I'm guessing that this node only populates for new customer/accounts during the move-in?

Former Member
0 Kudos

Hello John Paul, thank you for the feedback. Going via the Contract node worked. Not sure why I didn't try that previously. I was attempting to go via the CustomerDetails node. Any particular reason why that isn't available during the AfterModify event for ContractAccountDetails?

(1) Shown here, I have a pre-existing customer I've identified.(2) Here on the Contract Account tab I check new then make a selection.(3) And in debug when I check the Customer node I'm unable to fetch anything. I thought by observing the data model for this page I would have expected that node to have been available.

With the new code you suggested I can get it via Contract, just not sure what CustomerDetails isn't set, or isn't available. Is there something in reviewing the screen properties in the UI designer that should have alerted me to use the Contract node vs CustomerDetails node. Apologies if these are questions with obvious answers...it just seems to puzzle me.

Thanks again for your feedback.

James

0 Kudos

It depends on how the customer is selected - if you opt for an exist customer through OVS like you highlighted above application will assume you are interested of an existing customer and store customer info (UUID) in contract node and make use of existing information available as part of Customer BO.

But if you opt to choose a new customer, then Contract Node store the choice of new customer selection as an indicator and make use of Customer details Node to persist customer data which you might have provided in the first step.

In nutshell if you opt to create a new customer as a part of Guided process then you have to look for customer info in the customer details node and if you have opted for existing customer you get customer UUID as a part of Contract Node.

I hope this helps.

Regards,

John

Former Member
0 Kudos

Good stuff...thank you sir. Much appreciated.