Applicaiton with API key

ambroz
Tera Contributor

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

1 REPLY 1

Wind0004
Mega Guru

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