-
Notifications
You must be signed in to change notification settings - Fork 79
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
Issue with "ReportFolder" resource path in sf org list metadata-types command #3190
Comments
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. |
I can repro this issue, the API that
|
Yes the command you use, in the org of the issue work: 18:43:34 ~/Documents/01_repo/xcustomer-global (MASTER_EUTEMP_20250117)
└─▶ $ sf org list metadata --output-file reportFolder.json --metadata-type ReportFolder && jq . reportFolder.json And this is some output line: [
{
"createdById": "----",
"createdByName": "Rosa ---",
"createdDate": "----",
"fileName": "reports/Leroy_Merlin",
"fullName": "Leroy_Merlin",
"id": "---",
"lastModifiedById": "---",
"lastModifiedByName": "----",
"lastModifiedDate": "----",
"manageableState": "unmanaged",
"type": "ReportFolder"
},
{
"createdById": "0051i000002pKkgAAE",
"createdByName": "DAVID ---",
"createdDate": "----",
"fileName": "reports/X7_SGE_CM_AE_DE",
"fullName": "X7_SGE_CM_AE_DE",
"id": "----",
"lastModifiedById": "0051i000002pKkgAAE",
"lastModifiedByName": "DAVID ----",
"lastModifiedDate": "----",
"manageableState": "unmanaged",
"type": "ReportFolder"
},
... The problem is with You think can be fix? |
@Alfystar I couldn't find an internal bug for the the API owners about this so I'll ask them if this is the expected behavior or a bug and get back to you. |
This is the expected behavior, see:
https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_report.htm |
Hi @cristiand391! I want to thank you for your answer, it enlightened me about the use of the "inFolder" option. In the past I was misled by staticresources, but now that I have more knowledge, I understand that it is because staticresources, in MetadataFormat format are a pair of "-meta.xml" and a compressed file, and only in the "SourceFormat" this compressed file can become a directory. May I ask you, before closing the case, to also explain the I report what I understood from the documentation on the command response {
"directoryName": "staticresources", # Directory Name
"suffix": "resource", # In "metadata-format" is the suffix of the resource
"xmlName": "StaticResource", # Tag name inside to use inside package.xml
"childXmlNames": [] # List of child sub-components for this component
"metaFile": true, # True if in "metadata-format" ???
"inFolder": false, #/ True if in "metadata-format" there are one folder, and one '-meta.xml' with the syntax: '<folderName>.<suffix>Folder-meta.xml'
#\ Inside the '-meta.xml' the xmlName will be: '<xmlName>Folder'
} Finally, after reading the documentation you linked me, I would like to know if there is an sf-cli equivalent to call A thousand thanks ! 😊 |
yep, here's the doc for the
|
Thanks @cristiand391 for all this informations! |
Summary
I am encountering an issue while performing a deployment log analysis using the
sf project deploy report
command. The command used is as follows:sf project deploy report --target-org 'PROD_DEVOPS' --job-id 0Afcl000000JeBRCA0 --wait 12000
One of the entries in the resulting JSON is:
To obtain the actual path of the resource and perform git analysis, I rely on the output of the command:
Where I search, based on the "componentType" of the report, for the rules of that metadata.
Issue:
I discovered that the "ReportFolder" resource, which my developers have placed in the
main/default/reports
folder, does not exist in this file. However, from the result of thesf
command, the deployment was successful and it is indeed in that directory.Additionally, in source format, the file seems to be named:
Gestionedelcredito.reportFolder-meta.xml
.Steps To Reproduce
sf project deploy report
command with the specified parameters.sf org list metadata-types
command and verify the absence of the "ReportFolder" resource.Expected result
The "ReportFolder" resource should be present in the JSON file generated by the
sf org list metadata-types
command.Actual result
The "ReportFolder" resource is not present in the generated JSON file, despite the deployment being successful.
Thank you very much for your attention and cooperation.
System Information
The text was updated successfully, but these errors were encountered: