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
493 stars 78 forks source link

cli is not able to edit existing genAiFunctions #3075

Open mulecalle opened 3 days ago

mulecalle commented 3 days ago

Steps:

  1. retrieve a genAiFunctions from an org Screenshot 2024-10-22 at 10 40 50 AM

  2. modify the output/schema.json file Screenshot 2024-10-22 at 10 40 18 AM

  3. execute a sf project deploy start --source-dir force-app/main/default/genAiFunctions/* ...

    
    ❯ make deploy
    sf project deploy start --source-dir force-app/main/default/genAiFunctions/* --target-org builders-automation --ignore-errors --ignore-conflicts --ignore-warnings --verbose
    Deploying v61.0 metadata to scalle@epicstage.org using the v62.0 SOAP API.
    Deploy size: 6.74 KB of ~39 MB limit
    Deployed files count: 10 of 10,000 limit
    Deploy ID: 0AfEE000000mKCX0A2
    Status: Succeeded | ████████████████████████████████████████ | 3/3 Components

Deployed Source

| State Name Type Path | ───────── ─────────────────────────────────── ───────────── ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── | Unchanged call_integration_service GenAiFunction force-app/main/default/genAiFunctions/call_integration_service/call_integration_service.genAiFunction-meta.xml | Unchanged call_integration_service GenAiFunction force-app/main/default/genAiFunctions/call_integration_service/input/schema.json | Unchanged call_integration_service GenAiFunction force-app/main/default/genAiFunctions/call_integration_service/output/schema.json


### Expected result
The agent action is updated in the org.

### Actual result
The agent action is not being updated in the org.

See the `Unchanged` state in (3)

### Additional information
<!-- Feel free to attach a screenshot -->

### System Information

CLI: @salesforce/cli/2.62.6 darwin-x64 node-v20.17.0

Plugin Version: @oclif/plugin-autocomplete 3.2.5 (core) @oclif/plugin-commands 4.1.3 (core) @oclif/plugin-help 6.2.14 (core) @oclif/plugin-not-found 3.2.22 (core) @oclif/plugin-plugins 5.4.14 (core) @oclif/plugin-search 1.2.11 (core) @oclif/plugin-update 4.6.3 (core) @oclif/plugin-version 2.2.14 (core) @oclif/plugin-warn-if-update-available 3.1.18 (core) @oclif/plugin-which 3.2.15 (core) @salesforce/cli 2.62.6 (core) apex 3.5.1 (core) api 1.3.1 (core) auth 3.6.65 (core) data 3.7.0 (core) deploy-retrieve 3.12.17 (core) info 3.4.9 (core) limits 3.3.32 (core) marketplace 1.2.26 (core) org 4.6.0 (core) packaging 2.8.11 (core) schema 3.3.34 (core) settings 2.3.23 (core) signups 2.5.21 (user) sobject 1.4.41 (core) source 3.5.21 (core) telemetry 3.6.15 (core) templates 56.3.22 (core) trust 3.7.33 (core) user 3.5.32 (core) sfdx-plugin-prettier 1.0.5 (user)

SF ENV. VARS. SF_BINPATH,/Users/scalle/.local/share/sf/client/bin/sf SF_AUTOUPDATE_DISABLE,true SF_DISABLE_AUTOUPDATE,true SF_UPDATE_INSTRUCTIONS,Use "npm update --global @salesforce/cli" to update npm-based installations.

Windows: false Shell: zsh Channel: stable


---
### Diagnostics
:white_check_mark: pass - salesforcedx plugin isn’t installed
:white_check_mark: pass - you don't have any linked plugins
:white_check_mark: pass - [@salesforce/plugin-trust] can ping: https://registry.npmjs.org
:white_check_mark: pass - [@salesforce/plugin-trust] can ping: https://registry.yarnpkg.com
:white_check_mark: pass - [@salesforce/plugin-trust] can ping: https://registry.npmjs.org/
:white_check_mark: pass - using latest or latest-rc CLI version
:white_check_mark: pass - [@salesforce/plugin-deploy-retrieve] sourceApiVersion matches apiVersion
:x: warn - [@salesforce/plugin-deploy-retrieve] sourceApiVersion matches default target org max apiVersion
:white_check_mark: pass - can access: https://test.salesforce.com
:white_check_mark: pass - can access: https://appexchange.salesforce.com/services/data
:white_check_mark: pass - can access: https://developer.salesforce.com/media/salesforce-cli/sf/channels/stable/sf-win32-x64-buildmanifest
:x: fail - [@salesforce/plugin-auth] CLI supports v2 crypto
shetzel commented 3 days ago

@mulecalle - thanks for reporting. The CLI is sending the correct request to the metadata API. This is an issue for the metadata type owner of GenAiFunction.

git2gus[bot] commented 3 days ago

This issue has been linked to a new work item: W-17039395

github-actions[bot] commented 3 days ago

We have determined that the issue you reported exists in code owned by another team that uses only the official support channels. To ensure that your issue is addressed, open an official Salesforce customer support ticket with a link to this issue. We encourage anyone experiencing this issue to do the same to increase the priority. We will keep this issue open for the community to collaborate on.