-
Notifications
You must be signed in to change notification settings - Fork 39
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
Error adding picklist value #479
Comments
🎉 This issue has been resolved in version 2.8.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
@Raptor399 Thanks for you report! I wasn't aware of the StandardValueSet Please note that you'll have to provide {
"metadataType": "StandardValueSet",
"metadataFullName": "ForecastCategoryName",
"newValue": "Most Likely",
"statusCategory": "Most Likely",
"active": true
} P.S.: Unfortunately it's difficult to keep track of available StandardValueSets. |
Thank you for the update and the correction, @amtrack ! I'm getting an error when trying to apply the modified
|
@Raptor399 OK, I'm able to reproduce this. Will look into it. |
@Raptor399 Sorry for the wrong config I provided last time! The I've tried the following config, and it seems to work now:
{
"$schema": "https://raw.githubusercontent.com/amtrack/sfdx-browserforce-plugin/master/src/plugins/schema.json",
"settings": {
"security": {
"loginAccessPolicies": {
"administratorsCanLogInAsAnyUser": true
}
},
"picklists": {
"picklistValues": [
{
"metadataType": "StandardValueSet",
"metadataFullName": "ForecastCategoryName",
"newValue": "Most Likely",
"statusCategory": "Most Likely"
}
]
}
}
} $ sfdx browserforce:apply -f config/project-scratch-browserforce.json
logging in... done
Applying definition file config/project-scratch-browserforce.json to org test-3akzhbwfgno5@example.com
[Security] retrieving state... done
[Security] no action necessary
[Picklists] retrieving state... done
[Picklists] changing 'picklistValues' to '[{"metadataType":"StandardValueSet","metadataFullName":"ForecastCategoryName","statusCategory":"Most Likely","newValue":"Most Likely"}]'... done
logging out... done
$ sfdx browserforce:apply -f config/project-scratch-browserforce.json
logging in... done
Applying definition file config/project-scratch-browserforce.json to org test-3akzhbwfgno5@example.com
[Security] retrieving state... done
[Security] changing 'loginAccessPolicies' to '{"administratorsCanLogInAsAnyUser":true}'... done
[Picklists] retrieving state... done
[Picklists] no action necessary
logging out... done |
Excellent! Can confirm this works on my end as well. Thank you for investigating! |
I am trying to add a picklist value and get the following error message:
I don't understand which "url" argument the error message is talking about, or what I can do to prevent the problem.
To reproduce, use the following files:
sfdx-project.json
config/project-scratch-def.json
config/project-scratch-browserforce.json
With these files, run the following commands:
Notice how the security action seems to run fine, whereas the picklist action doesn't.
The text was updated successfully, but these errors were encountered: