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

cli is not able to edit existing genAiFunctions #3075

Open
mulecalle opened this issue Oct 22, 2024 · 3 comments
Open

cli is not able to edit existing genAiFunctions #3075

mulecalle opened this issue Oct 22, 2024 · 3 comments
Labels
bug Issue or pull request that identifies or fixes a bug owned by another team The Salesforce CLI team does not own this work but will pass on the information to the correct team.

Comments

@mulecalle
Copy link

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 [email protected] 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

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

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

@shetzel
Copy link
Contributor

shetzel commented Oct 22, 2024

@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.

@shetzel shetzel added bug Issue or pull request that identifies or fixes a bug owned by another team The Salesforce CLI team does not own this work but will pass on the information to the correct team. labels Oct 22, 2024
Copy link

git2gus bot commented Oct 22, 2024

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

Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue or pull request that identifies or fixes a bug owned by another team The Salesforce CLI team does not own this work but will pass on the information to the correct team.
Projects
None yet
Development

No branches or pull requests

2 participants