Hi All, Kindly help me on the below that we are fa...
# sdf
v
Hi All, Kindly help me on the below that we are facing using SDF. We are having Custom Records/Custom Lists with instances to send the data to the target account using SDF. During our development process our dev team has hardcoded the internal ids of the instances to write the logics. After we have deployed the SDF project in the target account instances internals ids are changing and our scripts are not working. Kindly provide us the solution/best practices how to hard code the internal ids and write the logics. Thanks in Advance.
a
As far as I know, internal ids are specific to the account, and are generated automatically. Why not reference scriptid's instead?
v
If we use script ids while saving the data or writing the conditions we were unable to set data
Or compare
s
best practice is to minimize hardcoding of internal ids. If you cannot avoid it, you might consider an SDF install script that autogenerates a mapping file of ids, or updates your hardcoded values wherever they live. I've not used this technique but it's something I've considered.
n
You could include your own "enums" style file which has details specific to each environment.