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

Grounding Prompt Templates with Apex Merge Fields

 Hi, You can include an Apex merge field in a prompt template to surface data retrieved from a SOQL query or an external API. Apex is also u...