Skip to content

W-17043234 - fix: support retrieving agent pseudo type#1285

Merged
WillieRuemmele merged 1 commit intomainfrom
sh/retrieve-agent-pseudo
Feb 11, 2025
Merged

W-17043234 - fix: support retrieving agent pseudo type#1285
WillieRuemmele merged 1 commit intomainfrom
sh/retrieve-agent-pseudo

Conversation

@shetzel
Copy link
Contributor

@shetzel shetzel commented Feb 10, 2025

What does this PR do?

Agents can be retrieved using the Bot API name (as a pseudo-type).

What issues does this PR fix or reference?

@W-17043234@

@WillieRuemmele
Copy link
Contributor

QA Notes


 ➜  pd project retrieve start -m Agent

 ────────────── Retrieving Metadata ──────────────

 Retrieving v60.0 metadata from epic.42844c000e1a@orgfarm.out using the v64.0 SOAP API

 ✔ Preparing retrieve request 9ms
 ✔ Sending request to org 297ms
 ✔ Waiting for the org to respond 5.95s
 ✔ Done 0ms

 Status: Succeeded
 Elapsed Time: 6.38s


Retrieved Source
┌─────────┬───────────────────────────┬──────────────┬───────────────────────────────────────────────────────────┐
│ State   │ Name                      │ Type         │ Path                                                      │
├─────────┼───────────────────────────┼──────────────┼───────────────────────────────────────────────────────────┤
│ Created │ Copilot_for_Salesforce    │ Bot          │ force-app/main/default/bots/Copilot_for_Salesforce/Copilo │
│         │                           │              │ t_for_Salesforce.bot-meta.xml                             │
│ Created │ Copilot_for_Salesforce.v1 │ BotVersion   │ force-app/main/default/bots/Copilot_for_Salesforce/v1.bot │
│         │                           │              │ Version-meta.xml                                          │
│ Created │ EmployeeCopilotPlanner    │ GenAiPlanner │ force-app/main/default/genAiPlanners/EmployeeCopilotPlann │
│         │                           │              │ er.genAiPlanner-meta.xml                                  │
└─────────┴───────────────────────────┴──────────────┴───────────────────────────────────────────────────────────┘

✅ : specifying agent name, reduced it to only bot MD, since genAiPlanner was named differently

 ➜  pd project retrieve start -m Agent:Copilot_for_Salesforce

 ────────────── Retrieving Metadata ──────────────

 Retrieving v60.0 metadata from epic.42844c000e1a@orgfarm.out using the v64.0 SOAP API

 ✔ Preparing retrieve request 9ms
 ✔ Sending request to org 228ms
 ✔ Waiting for the org to respond 872ms
 ✔ Done 0ms

 Status: Succeeded
 Elapsed Time: 1.14s


Retrieved Source
┌─────────┬───────────────────────────┬────────────┬─────────────────────────────────────────────────────────────┐
│ State   │ Name                      │ Type       │ Path                                                        │
├─────────┼───────────────────────────┼────────────┼─────────────────────────────────────────────────────────────┤
│ Created │ Copilot_for_Salesforce    │ Bot        │ force-app/main/default/bots/Copilot_for_Salesforce/Copilot_ │
│         │                           │            │ for_Salesforce.bot-meta.xml                                 │
│ Created │ Copilot_for_Salesforce.v1 │ BotVersion │ force-app/main/default/bots/Copilot_for_Salesforce/v1.botVe │
│         │                           │            │ rsion-meta.xml                                              │
└─────────┴───────────────────────────┴────────────┴─────────────────────────────────────────────────────────────┘

✅ : retrieving the GenAiPlanner that way worked as well

 ➜  pd project retrieve start -m Agent:EmployeeCopilotPlanner

 ────────────── Retrieving Metadata ──────────────

 Retrieving v60.0 metadata from epic.42844c000e1a@orgfarm.out using the v64.0 SOAP API

 ✔ Preparing retrieve request 8ms
 ✔ Sending request to org 236ms
 ✔ Waiting for the org to respond 866ms
 ✔ Done 0ms

 Status: Succeeded
 Elapsed Time: 1.13s


Retrieved Source
┌─────────┬────────────────────────┬──────────────┬──────────────────────────────────────────────────────────────┐
│ State   │ Name                   │ Type         │ Path                                                         │
├─────────┼────────────────────────┼──────────────┼──────────────────────────────────────────────────────────────┤
│ Created │ EmployeeCopilotPlanner │ GenAiPlanner │ force-app/main/default/genAiPlanners/EmployeeCopilotPlanner. │
│         │                        │              │ genAiPlanner-meta.xml                                        │
└─────────┴────────────────────────┴──────────────┴──────────────────────────────────────────────────────────────┘

@WillieRuemmele WillieRuemmele merged commit 832360e into main Feb 11, 2025
40 of 45 checks passed
@WillieRuemmele WillieRuemmele deleted the sh/retrieve-agent-pseudo branch February 11, 2025 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants