• Rafal
  • NEWBIE
  • 0 Points
  • Member since 2022

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 4
    Replies

I am developing managed package, following documentation have created protected custom metadata type witch is used to store api keys

`Only Apex code in the same managed package can see the type. The name of the type and the record are visible if they're referenced in a formula.`

I can retrieve api key in my own org which is the same namespace as package (package has this metadata type included)

however when i install package in another org, metadata records are not visible and i can not retrieve my api key

I have looked into many examples and based what i understand it should work out of the box. what am i missing ?

in this video https://youtu.be/aqztf1nJv-k?t=1948 which the same setup it seems to work, why it is not working for me ?

  • August 29, 2023
  • Like
  • 0

I am developing managed package, following documentation have created protected custom metadata type witch is used to store api keys

`Only Apex code in the same managed package can see the type. The name of the type and the record are visible if they're referenced in a formula.`

I can retrieve api key in my own org which is the same namespace as package (package has this metadata type included)

however when i install package in another org, metadata records are not visible and i can not retrieve my api key

I have looked into many examples and based what i understand it should work out of the box. what am i missing ?

in this video https://youtu.be/aqztf1nJv-k?t=1948 which the same setup it seems to work, why it is not working for me ?

  • August 29, 2023
  • Like
  • 0