Trying to Upsert in PerEmail entity and getting below error message-
Expected System behavior
This is an expected system behavior and that is- We cannot use the same emailType to capture more than one email information irrespective of 'Primary' or 'non Primary' email id. We need to use separate email type for this.
So in order to confirm whether there is already an email entered for the same emailType as in the 'Upsert' request, you can query as follows and verify the result-
https://apiXpreview.sapsf.com:443/odata/v2/PerEmail?$select=personIdExternal,emailType,emailAddress,isPrimary&$filter=personIdExternal eq <personIdExternal> &$format=json
****<personIdExternal> in the above query should be the one from the failed upsert request.
KBA , LOD-SF-INT-API , SF API & Adhoc API Framework , LOD-SF-INT , SF Integrations - EC Payroll, Boomi/ HCI, API , Problem