Set E-market toggle to ON at creating a new person imported from Outlook

A trigger is created as Sales: After saving contact  and this trigger toggles the E-Market switch to ON when creating a new Contact:

 

 

Is it possible to include this setting to be set as above when a person is imported from Outlook and created as a new contact ?

The trigger used seen below:

 

 

RE: Set E-market toggle to ON at creating a new person imported from Outlook

Hello Henrik,

CRMScript triggers are not run when doing something that is not done in the Web client. (So not run when doing something from PocketCRM, Maillink or some other external program).

What you could do is create a scheduled task that would update the emarketing toggle for all newly registerd persons, you would need to add some kind of mechanism/logic to make sure you only do it once.

If this is an OnSite customer you could also use NetServer scripting. An other possibility is to register a webhook for the person.created event and let that call an CRMScript script.

By: David Hollegien 14 Oct 2020