Hi Willie,
Unfortunately, the settings for automatic reference code generation are rather limited - right now there is no way in its settings to drop the ZA but keep the RSM.
Right now, the reference code is built using:
- The country code of the Country value from the linked repository's address - this is where the ZA is coming from
- The repository identifier - this is the RSM
- The top-level description identifier
- The reference code separator - this is another setting (described here), which by default uses the hyphen
- The identifiers of any descendant records, each separated by the reference code separator.
So, unfortunately, at present your options are:
- Remove the country from the related repository's address - this will prevent the ZA from being added
- Do not manually add the ZA to the repository's identifier - if I understand what you are describing correctly, this is why you are getting two different ZA's in the resulting reference codes, instead of one
- Disable the Reference code inheritance setting completely, and manually create reference codes for your descriptions in the identifier field
- If you are a developer, you can potentially trace and modify the code so the repository country code is not included
At least, these are the options I can think of at present.
Note that we do have a Wishlist ticket for adding more flexibility to how reference codes can be constructed. See:
However, at present this work is not slated for any upcoming release.
Regards,