Closed ValeriyRCG closed 1 year ago
Hi @ValeriyRCG, this is likely a bug as there's no configuration that could lead to such an issue. I fixed a similar problem earlier. Can you tell me which version of the client you're using? If it's not the latest, can you upgrade and let me know if the issue persists.
Hi @pozil I am using the latest client package version. These are the dependencies in my package json.
"dependencies": { "jsforce": "^1.11.0", "salesforce-pubsub-api-client": "^2.3.0" }
Could it be because I have person accounts enabled?
I haven't tested with person accounts and I don't know if this can introduce some extra complexity. The truth is that I'm struggling with the way change fields are encoded. I'll keep this issue open for now but I'm a bit short on time to diagnose this at the moment, sorry.
Thank you @pozil. I will try to fix this on my end and maybe I can submit a solution if I find it myself.
Hi @ValeriyRCG sorry for the delay but I managed to dedicate some time to this and finally found the issue. Please use the latest version of the library for a fix.
I installed this as a package in a brand new project and I seem to be having issues. The changeFields array does not contain the actual fields that were changed. I changed the website on an account record as an example and I receive AnnualRevenue and TickerSymbol fields in the changedFields but when I look at the payload itself it shows the website and lastmodifieddate fields as the ones with actual changed data. Here is a preview of what I am looking at, I promise I did not edit this in any way. I replace the sfids just in case.
As you can see from my payload, it does not match up with what is in the changedFields array. Is there some sort of setting or configuration issue on my end that is making this happen?