we must improve the merge of two or more identical records (e.g. lead to lead merge). Is there any hook point like "on before merge"?
There are no before merge logic hook. But you can try to customise merge functionality from sidecar.
Best RegardsTevfik TümerDeveloper Support Engineer
please help me a bit, I dont't find any point to start with. Before merging we need the information in PHP/database which IDs are in the merge list.
Sidecar calls the beans by a list of IDs, but sends no information about the point (module, view) I am like this: /rest/v10/Leads/filter?fields=[...]&max_num=20&filter%5B0%5D%5Bid%5D%5B%24in%5D%5B%5D=638a312b-234c-0c76-1e22-57b72de5d6f4&[...]
When I submit the form all calls (save, delete) are separated, there is no information I can handle in the backend.
It would be great to be able to send the ID list on save. There may be other workaround but I need a file to manipulate.
Okay, let me try. But before that could you please tell me what exactly (and why) are you trying to achieve? Can you please tell me step by step so that I can understand.
I'm little bit confused. If you give more information i can try to help.
it depends to the module view of "search duplicates". When I found a duplicate, I get the compare form with the input fields per bean, This form is limited: it has no textareas and is limited by the fields we provide.
For example on merging two leads:
We whant now merge some fields automatically, in primary we whant to add all description to the description field of the final lead. In addition, we need the audit entries of the campaigns which we whant to move to the final lead.
When I then click to merge these leads, the SugarCRM sends one save request and one delete request via REST. In a logic hook, which handles the lead save action, is no information about the second lead, from which we whant to copy the audit information about campaigns and read the description to add it to the first lead.
I hope you understand me now a better :-)
Thank you and regards
Retrieving data ...