cancel
Showing results for 
Search instead for 
Did you mean: 

How store ID only on last changed customer?

shabakov
Participant
212

Hello experts,

We implemented integration with Mobile APP and faced with the issue.

In our case, different customers can use one device. In this case, 2 or more customer have the same mobile token.

We want to add token only for customer, who logged in later.

Example:

1. Customer A login to the mobile app. The app sends token to SMC. SMC stores this token in customer data.

2. Customer A logout from the mobile app. The app sends this token to anonymous customer. SMC keeps this token anonymous and removes the token from Customer A.

3, Customer B log into the mobile app. The application sends the token to the SMC. SMC stores this token in Customer B data and removes the token from anonymous.

If we set "mobile app token' as "for identification' we get the error like this:

Only one ID ('CUSTOMER A' or 'CUSTOMER B') may occur for origin 'SAP_HYBRIS_CONSUMER' in entry MOBILE_APP_TOKEN-tokenTEST

And token saves only for first customer.

Any idea how we could achieve this and save the token for the last logged customer?

PS In addition, we did not find a method for removing one specific identifier from the client, this may be a workaround for us. According https://api.sap.com/api/API_MKT_CONTACT_SRV_0003/resource we can delete only full contact or all additional id with specific ID Origin.

View Entire Topic
KunalBansal
SAP Champion
SAP Champion

Hi shabakov,

This is quite a different use-case, I think you need to define a new System ID Origin and try to store these values in Custom Fields like token1, token2... not sure.

best regards,

Kunal