Please help me to solve the problem with duplicates when receiving data via API.
I have an entity TradingAccount that has a unique key tradingAccountID. When changing data in an external source, sometimes a change comes to the CRM, and sometimes a new record.
I wrote to ignore duplicates in the file, but it didn't help.
in custom/Espo/Custom/Resources/metadata/entityDefs/TradingAccount.json
"tradingAccountID": {
"type": "int",
"tooltip": true,
"duplicateIgnore":true,
"isCustom": true
I tried to create a php file to check for a duplicate, as in this example, but I did not succeed, since in the example 2 keys are checked, and I have one, I just could not transform it to fit my needs and got a bunch of errors.
I have an entity TradingAccount that has a unique key tradingAccountID. When changing data in an external source, sometimes a change comes to the CRM, and sometimes a new record.
I wrote to ignore duplicates in the file, but it didn't help.
in custom/Espo/Custom/Resources/metadata/entityDefs/TradingAccount.json
"tradingAccountID": {
"type": "int",
"tooltip": true,
"duplicateIgnore":true,
"isCustom": true
I tried to create a php file to check for a duplicate, as in this example, but I did not succeed, since in the example 2 keys are checked, and I have one, I just could not transform it to fit my needs and got a bunch of errors.
Comment