Replies: 3 comments 2 replies
-
Hi @sheidasf GenAIPromptTemplate are handled by SGD (since v5.40.0). To get it you need to use the api version 60+ or above. According to the doc, GenAIPromptTemplate files should be in a Could you show how you execute the plugin please ? (what parameters) |
Beta Was this translation helpful? Give feedback.
-
Thank you! So much!
I have a lot of confusion on how the package.xml is generated. (albeit I am not the expert in git from a commit perspective), but I don’t know what it looks at to generate the package.xml. if you have a dumb down version of this material for not-so-smart people like me, I would love to see it.
For example, this time around it didn’t pick up the files from that folder, and I am looking at my options on how to deploy them, since they were already committed and merged to the branch.
ANY WAY!!!
This is the line from our yaml file:
```yaml
- mkdir changed-sources && sfdx sgd:source:delta -t HEAD -f $LAST_DEPLOYED_COMMIT -r . --output changed-sources/ -d --loglevel=trace
```
Our api was indeed set to 59.
```json
{
"packageDirectories": [
{
"path": "force-app",
"default": true
}
],
"namespace": "",
"sfdcLoginUrl": "https://test.salesforce.com",
"sourceApiVersion": "59.0"
}
```
Best,
-Sheida
|
Beta Was this translation helpful? Give feedback.
-
Hi Sebastian,
Thank you so much for your quick response. I updated the package to 61 and it indeed picked it up, but may be salesforce is not quite ready for sfdx deploy of the prompts. But no, I get an error:
Error (1): /opt/atlassian/pipelines/agent/build/changed-sources/force-app/main/default/genAIPromptTemplates/Account_Open_Opportunities_Slalom_Sales.genAiPromptTemplate-meta.xml: Could not infer a metadata type
612
On this page, https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_genaiprompttemplate.htm under special access rules, it says ‘To send GenAiPromptTemplate components from one Salesforce org to another, you must use change sets.’
Have you seen a successful deployment for this meta data?
Best,
-Sheida
|
Beta Was this translation helpful? Give feedback.
-
we have a new folder in our repo called GenAIPromptTemplates but sdg is not picking it up. It is not in the packcage.xml that is generated. Thanks community!
Beta Was this translation helpful? Give feedback.
All reactions