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
Hithesh SaicharanHithesh Saicharan 

change the value of record after installation of unlocked package

Hi All, 
I am having one Custom metadata named Application_Configuration__mdt which is having a custom field as like below
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>Value__c</fullName>
    <externalId>false</externalId>
    <fieldManageability>DeveloperControlled</fieldManageability>
    <label>Value</label>
    <length>200</length>
    <required>false</required>
    <type>Text</type>
    <unique>false</unique>
</CustomField>

and having one record  as like below
 
<?xml version="1.0" encoding="UTF-8"?>
<CustomMetadata xmlns="http://soap.sforce.com/2006/04/metadata" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <label>API key</label>
    <protected>false</protected>
    <values>
        <field>Value__c</field>
        <value xsi:type="xsd:string">XXXXXXXXX</value>
    </values>
</CustomMetadata>

I created one 2GP unlocked package and installed in a scratch org. After installation I tried to change the value from XXXXXXXX to some other.But when i click on edit record the value field itself is not Visible. Only I can able to cenge the Label and configuration name. 

How I can able to change the value .If we cant cange custom metadata record value what is the other choice?
 
ShirishaShirisha (Salesforce Developers) 
Hi Hithesh,

Greetings!

I don't think the subscriber can add/edit the values to the fields.So,I would suggest you to make changes in packaging org and then upgrade the package.

Sample thread for the picklist field change:https://salesforce.stackexchange.com/questions/173856/new-picklist-value-not-being-added-to-upgraded-package

Please mark it as best answer if it helps you to fix the issue.

Thank you!

Regards,
Shirisha Pathuri
Hithesh SaicharanHithesh Saicharan
I went through the link you and also I didnt get the line "make changes in packaging org" . what does it mean? and what i have to change?