forcedotcom / cli

Salesforce CLI
https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_reference.meta/sfdx_cli_reference/
BSD 3-Clause "New" or "Revised" License
491 stars 78 forks source link

skipRecordTypeSelect not set via MetaData #2936

Closed jhgihub0 closed 3 months ago

jhgihub0 commented 3 months ago

We are currently using the following version of Salesforce CLI

@salesforce/cli/2.46.6 darwin-arm64 node-v20.14.0

We are using these commands to deploy the metadata to the sandbox:

sf org login web --alias OrgAlias --instance-url https://test.salesforce.com
project deploy start --target-org OrgAlias --wait 120 --test-level "NoTestRun" --source-dir ./sfdx-source
sf org logout --target-org OrgAlias --no-prompt

In our Escalations object, we are trying to set the "Skip record type selection page" option

image

Our metadata looks like this

image

It is not being set in the sandbox when we do the metadata deployment

Pulling the metadata works fine using this command:

sf project retrieve start --target-org OrgAlias --source-dir sfdx-source --wait 180

If its unchecked, the metadata pulls as

<skipRecordTypeSelect>false</skipRecordTypeSelect>

If its checked, its

<skipRecordTypeSelect>true</skipRecordTypeSelect>

Thank you.

github-actions[bot] commented 3 months ago

Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support.

github-actions[bot] commented 3 months ago

Hello @jhgihub0 :wave: It looks like you didn't include the full Salesforce CLI version information in your issue. Please provide the output of version --verbose --json for the CLI you're using (sf or sfdx).

A few more things to check:

Thank you!

jhgihub0 commented 3 months ago
{
  "architecture": "darwin-arm64",
  "cliVersion": "@salesforce/cli/2.46.6",
  "nodeVersion": "node-v20.14.0",
  "osVersion": "Darwin 23.5.0",
  "rootPath": "/Users/work/.local/share/sf/client/2.46.6-191291b",
  "shell": "zsh",
  "pluginVersions": [
    "@oclif/plugin-autocomplete 3.1.2 (core)",
    "@oclif/plugin-commands 4.0.2 (core)",
    "@oclif/plugin-help 6.2.1 (core)",
    "@oclif/plugin-not-found 3.2.3 (core)",
    "@oclif/plugin-plugins 5.2.4 (core)",
    "@oclif/plugin-search 1.1.2 (core)",
    "@oclif/plugin-update 4.3.5 (core)",
    "@oclif/plugin-version 2.2.3 (core)",
    "@oclif/plugin-warn-if-update-available 3.1.5 (core)",
    "@oclif/plugin-which 3.2.2 (core)",
    "@salesforce/cli 2.46.6 (core)",
    "apex 3.1.18 (core)",
    "auth 3.6.21 (core)",
    "data 3.4.6 (core)",
    "deploy-retrieve 3.9.4 (core)",
    "info 3.3.6 (core)",
    "limits 3.3.12 (core)",
    "marketplace 1.2.12 (core)",
    "org 4.2.1 (core)",
    "packaging 2.4.6 (core)",
    "schema 3.3.11 (core)",
    "settings 2.3.1 (core)",
    "sobject 1.4.11 (core)",
    "source 3.4.2 (core)",
    "telemetry 3.4.0 (core)",
    "templates 56.2.11 (core)",
    "trust 3.7.5 (core)",
    "user 3.5.13 (core)"
  ]
}
shetzel commented 3 months ago

@jhgihub0 - Did this behavior ever work with the CLI? In other words, is this a regression from a previous version of the CLI that used to work? I suspect that this is broken on the server side and that specific property is being ignored. Are you able to deploy a change to that property either way? I.e, changing it from true (in the org) to false, or from false (in the org) to true.

jhgihub0 commented 3 months ago

I tried previous versions and I could not find a version that ever worked.

shetzel commented 3 months ago

The CLI is sending the correct metadata changes, so this issue is due to something outside of CLI control. I suspect that the server side team who owns that metadata has a bug that does not apply changes to that field.

The best path forward is to create a support case so the proper team can prioritize and fix the bug. Reference: https://help.salesforce.com/s/articleView?id=000393090&type=1

Tell support about this issue and let them know that the internal team to contact is called, "Platform Actions". Apologies, but this is not an issue that can be fixed by the Salesforce CLI team.