Tuesday 16 November 2021

How to get Object Translation and Custom Label Translations

 Hi,

Here we are going to learn how to retrieve Object Translations and Custom Label Translations.


Object Translations with Fields:


   <types>

                <members>Account-de</members>

                <members>Department__c_de</members>

               <name>CustomObjectTranslation</name>

    </types>

   <types>

                <members>Account.Status__c</members>

                <members>Department__c.Type__c</members>

               <name>CustomField</name>

    </types>

In the above we are trying to retrieve Object Translations for the German Language (de) for Account,Department__c with Fields Translations "Account.Status__c","Department__c.Type__c".


Custom Label Translation:

    <types>

      <members>*</members>

      <name>CustomLabels</name>

    </types>

     <types>

      <members>*</members>

      <name>Translations</name>

    </types>

Reference:
https://help.salesforce.com/s/articleView?id=sf.cl_translate_edit.htm&type=5
https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_customobjecttranslation.htm
https://salesforce.stackexchange.com/questions/310123/retrieve-custom-translations-for-a-custom-label-via-the-metadata-api








How to include a screen flow in a Lightning Web Component

 Hi, Assume  you have a flow called "Quick Contact Creation" and API Name for the same is "Quick_Contact_Creation". To i...