You need to sign in to do that
Don't have an account?

How to create a new remote site setting through apex code ?
I get the endpoint where the request has to be sent at runtime. Later i want to send an HTTP post request to this endpoint, so I have to create a remote site setting too at runtime.
Is there a way to create a remote site setting through apex code?
Thanks,
Rupali.
Hi Rupali,
I think you are correct, unfortunately there isnt. You have to add it for once.
Adi.
It is possible to create remote site through apex code. If u still need the solution please let me know.
Hi Aforank,
i have a requirement to create "Remote Site Settings" programatically. could you please provide assistance on how to do that.
i am looking into the MetaData API but unable to find out a way.
please requesting you to tell me the solution which you have.
Regards,
Rakesh
http://exceptionlesscode.com/index.php/how-to-create-remote-site-settings-through-apex/
please find below link:
http://technome2.blogspot.com/2017/05/creating-remote-site-settings.html