Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
The user object has been modified at this point, but it has not been stored in database yet. The before/after user update triggers share the same variables.So when user update his profile, the trigger BeforeUserUpdate allow to fire my Post request1 BEFORE new or modified data are entered inside database...right ?
No, use var1 and var3 usage as shown in my above reply. So for example BeforeUserUpdate would be [var3_firstname] and AfterUserUpdate would be [var1_firstname].Correct ??
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Just use a Code action with PHP method then set a plugin error to interrupt profile update. You can do your custom HTTP request in the PHP method. Example of how to trigger an error as follows.Then instead to use Auto-Action, I use now a custom CB plugin because I need to know the returned response of remote server before continue or interrupt CB update process
Correct, CB Auto Actions does its best not to interrupt normal processes on purpose as it could easily cause too many issues if configured wrong. I don't really suggest interrupting CB due to an HTTP request failing though.(unfortunately Auto-Action do not allow this)
Not really. You're making a simple synchronize too complicated.This make sense ?
Yes, use the after profile update trigger and just fire an HTTP request as follows using a Request action. Disregard whether your 3rd party system fails or not as you don't want it negatively impacting your main site.Have you some other suggestion ?
Please Log in or Create an account to join the conversation.