Wednesday, 16 December 2020

Convert Source to Metadata Format and Deploy

 Hi ,

Here we are going learn how we can Convert Source format to Metadata Format and Deploy with the help of SFDX commands.

We can do this via command prompt or vs code terminal after opening the project.

Let's look into following simple steps:

  1. Create a folder to put the converted files called "mdapioutput" (any name can be given for Folder or directory name)
    • mkdir mdapioutput
  2. Run the convert command
    • sfdx force:source:convert -d mdapioutput/
  3. Deploy it to your testing environment or production 
    • sfdx force:mdapi:deploy -d mdapioutput/ 
  4. Assign permission set if there is any
    • sfdx force:user:permset:assign --permsetname <permset_name> --targetusername <username/alias>



Reference:

No comments:

Post a Comment

What’s the difference between Einstein Article Recommendations and Suggested Articles?

How Does Einstein Article Recommendations Work? Einstein Article Recommendations helps support agents resolve customer cases efficiently by ...