on 2022 Oct 07 5:45 PM
Hello Experts: In a CDC Update Profile Screen, we have a single textbox for users to enter their phone number. That field is mapped to profile.phones.number. We only want to collect one phone number per user. If a user enters their phone number on the screen, the phone number show up after they click Save and in the CDC Console under Additional Phones correctly.

The issue is if a person, like a Customer Service Representative, updates the phone number in the CDC Console using Additional Phones, no phone number is shown in the textbox that is mapped to profile.phones.number in the CDC Update Profile Screen.

I understand from the SAP CDC Docs that phones can be a single object or an array of objects, but for our client we just want to collect one phone number and have changes in the Console correctly displayed in the screen.

What would be the best way to resolve this issue?
Request clarification before answering.
Hi Aaron,
In CDC, we have two types of phone numbers:
1, phone number as a login identifier, if the account uses Phone Number Login. The phone number formatting is e.164. However this field cannot be mapped using the UI Builder or the Web SDK. If a user has logged in or registered with their mobile phone, that will appear in a user's profile page in Identity Access, in the Personal Information section, under Phone.
2, other phone numbers appear under Additional Phones - these are saved to the account and mapped to profile.phones fields, but are not a login identifier.
If you pull both types of phone numbers for a user account via the accounts.getAccountInfo API endpoint and pass "phones" to the extraProfileFields parameter, you see the phoneNumber field is returned as a login ID, but profile.phones.number is not a login ID.
Hope it helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.