Query Remote Site Setting?

Can we get all remote site settings in apex ?

I would like to check if a remote site setting exists or not.


You can use ToolingAPI to access the RemoteSiteSettings. This works either via Apex using this https://github.com/afawcett/apex-toolingapi or even via JavaScript using that approach http://andyinthecloud.com/2014/07/29/post-install-apex-metadata-api-configuration-solved/

Of course both options would require some serious understanding and adaption on your end.

Source : Link , Question Author : Eric , Answer Author : Uwe Heim

Leave a Comment