Applicaiton with API key
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2024 10:46 AM
Hi community,
I need to build an app that will be published in the marketplace and allow our users to integrate with our service. To integrate with our service, each user has their own API key.
How will they easily (input when installing/configuring our ServiceNow application) add their API key to our ServiceNow application?
Or will they need to update the Outbound Rest message based on this?
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2024 05:41 AM
Hi Ambroz,
In order to allow it to be configurable you could create a system property within the scoped app.
Whenever a customer is installing/configuring the application , one of the installation instruction step would be to populate the system property with their unique API Key.
Then in the Outbound rest message just point to the system property when sending out your Rest Call.
If you are unsure how to use system properties in a script there is a video I did for an earlier question that provides an example:
https://youtu.be/QLQHzARFqJ4
Hope that makes sense.
Kind Regards,
Wind