Hi everyone,
I have been facing issues with the deployment of picklist value assignment with record types. We do this through VS Code - we raise pull requests in Github. I will try to explain the issue as clearly as possible.
Context
Whenever a new picklist value needs to be created and made it selectable for a record type, I always retrieve in VS Code both the picklist field and the record type. Then, I go inside the record type XML field and I manually modify it to ensure that the change is reflected at my branch level. For example, here I am adding 'Onward/Trove' in the record type XML file (and nothing else). Again, this is because my scenario is:
--> Create a single picklist value called 'Onward/Trove' and made is selectable ONLY for a record type.
This is the screenshot from Github:
However, once Pull Request is merged, this is what happens:
I cannot understand why ALL of the picklist values have been made selected and NOT only Onward/Trove.
Thanks so much for your help and support!
Best,
Niccolo
#Salesforce Developer
Deploying the corrected RecordType XML via your PR will override the current assignments in Salesforce so you do not need to change the UI