I have been trying to understand custom metadata types in Salesforce, but there's still a lot of confusion on my end.
I understand that hardcoding record ids is not a best practice, and I would like to follow it as much as possible.
Meanwhile, I am planning to insert multiple combinations through custom metadata types. One text field will handle the id of an image stored in Files object. The value of this text field will be referenced in a formula field in a custom object that will display an image.
I know this will be possible through Apex, but I am concerned about the post deployment action of the custom medatada type as it is said that file ids vary from sandbox to production.
If this is the case, I will still have to modify file ids in custom metadata type when deployed in production. Is this action normal upon post deployment?
This is kind of confusing as I read somewhere that deployment with custom metadata type is less hassle compared to custom settings.
Hoping that someone with experience on it can enlighten me more about it.
Thanks in advance!