cancel
Showing results for 
Search instead for 
Did you mean: 

set phones value in sap cdc's api

stevendai
Explorer
0 Kudos

Hi guys ,

i meet some confusing things when called cdc's api.

when called account.setAccountInfo and set phones value like:

it's working well, but when called account.importFullAccount with the same parameter, the phones value can not be written in cdc, Could anyone help with this?

Thanks in advance.

View Entire Topic
olehi941
Active Participant

Hello skis,

For accounts.setAccountInfo API your phone payload works, but not for accounts.importFullAccount API. To make it work properly for both, I would recommend to modify the structure of the payload from this:

{
  "phones.number": "22221"
}

to this:

{
  "phones": {
    "number": "22221"
  }
}

It will be working for 2 Endpoints. Hope it helped.

stevendai
Explorer
0 Kudos

Hi Oleh,

yes you are right , new playload works well. but i would like to know why the original structure can work with setAccount, but do not working with importFullAccount, could you give some suggestions?

olehi941
Active Participant
0 Kudos

Hi skis,

I don't have an answer as I am not a designer of the product, just using it as you.
But like you, I would also prefer to keep it working consistently: work for all the same, or doesn't work.

Anyway I would recommend you use the second type of payload, I find it more correct.