Developer forum

Forum » Feature requests » New User sets ExternalId to be the same as Username

New User sets ExternalId to be the same as Username

Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Hi,

 

Request

We would like to have a setting that, when a user is created set the ExternalId to be the same as the Username (which is their email address).

 

Scenario

When there are new accounts that are created on the web, including newsletter subscribers, we use their email address as the Username. All good as this is normal, specially in B2C.

In Integration scenarios, if in the future that user becomes a customer/login, the integration jobs need to use the ExternalId as Primary Key (job settings), so that it matches in the ERP.

When this happens, we end up with duplicate users.

To address this, we have to set newsletter subscribers to populate the ExternalId when they are created, that way, if an integration job runs, it will match on this record and update it accordingly (instead of creating a duplicate one). This will for all newsletter stats and logs to remain, because the AccessUserId never changes. 

It would be nice for this to be in Swift (when the time comes) so that we don't need to maintain the customization. This setting seems like a reasonable default.

 

Best Regards,

Nuno Aguiar


Replies