function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Vladimir BessonovVladimir Bessonov 

How to package metadata for cicd ?

I am trying to move from org development to source code development. 
i cannot find clear instructions on how to work with metadata. 

for example I declaratively created customapplication, objects, tabs, each object has page layout, custom field, etc. 
How to import it into my source code and update package.xml now? Import with all dependent fields, objects, etc?

if I import some custom object and try to push code, it fails as some relevant objects, fields are missing. 

I have no issue with Sfdx-project-cicd, but I don't understand how to import metadata with relevant objects, fields. 

Please some one show how to do with examples, not general phrases 


VinayVinay (Salesforce Developers) 

There is no such mechanism to auto-detect the relevant objects and fields you need to manually check and include it in your package.xml file and check.

usmaan khanusmaan khan
If you think you got the solution then it's fine but If you haven't checked then you must get into it.
Vladimir BessonovVladimir Bessonov
It is possible to use Salesforce Package.xml Generator, but I am not sure if custom fields are included when I select custom objects. 
Still, Salesforce Metadata is a mystery to me.