Open jonathanstegall opened 6 years ago
I haven't tested the Fields API, but it is possible that this would be worked out if #44 is ever a reality.
This becomes especially problematic if people create a fieldmap and then need to add more fields to it, because the plugin caches the data and we don't have a specific way to clear it.
We need to think about how to clear that specific field, I think. That is not as hard a problem to solve as #106 is.
The above pull request addresses this issue only if it is caused by cache.
This issue was first mentioned in #110 as part of a WooCommerce question, which itself was at least partially fixed in #118.
We also need to put in some documentation about this. Documentation is totally not a fix for this issue, as I think it is hard to even imagine this as an issue, but at least we can point to an explanation when users are understandably confused.
We could at least show this on the fieldmap add screen as help text, close to the WordPress field picker.
We have a branch for this issue now. https://github.com/MinnPost/object-sync-for-salesforce/tree/119-new-meta-fields
The reason I mentioned this is that this issue is deeper still, in which meta fields don't get added when an object is created, but after as a subsequent update.
When you go to create a fieldmap, if the WordPress object you are mapping has custom meta fields (such as
wp_postmeta
,wp_termmeta
, etc.) each field will only show up in the dropdown for mappable fields if there is at least one value in the database for that field.That is, if you want to map a user zip code, you have to have at least one user that has at least a blank value for zip code.
This is not easy to address because:
Either of these would fix this problem. I am not sure whether such a thing is in the scope of this plugin, but I want to put it out there anyway.