Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple fieldmaps for a WordPress object based on the Salesforce Record Type #394

Open
jonathanstegall opened this issue May 17, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@jonathanstegall
Copy link
Member

Is your feature request related to a problem? Please describe.
See this forum post.

So we have a setup where there is 1 WordPress Post Type that has a field that indicates a Type. This is mapped to a Salesforce object that has 3 different record types. I need to be able to dictate to the sync process which of the 3 field mappings should be used based on this Type field in WordPress. What I see happening is that since a since WordPress Post Type has 3 different Salesforce mappings, due to this Object Type field in Salesforce, it’s running a Create based on the first field mapping in the list instead of the correct one based on the WordPress type field.

Describe the solution you'd like
Maybe the code that loads the fieldmap could check to see if there's a Salesforce record type specified on the fieldmap.

This might be complicated, since there are multiple record types allowed for many Salesforce object types. I'm not sure it's doable in a visual way. But it's worth thinking about.

@jose-dvm
Copy link

Setting different mappings for the same WP object would be great. In the Drupal plugin, for example, different mappings can be used for different webform submissions based on Entity Bundle if I'm not wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants