+ Start a Discussion
Nethra RaghupathyNethra Raghupathy 

Insert Remote Site Setting from post install script

I have a lightning app which has the remote site settings dynamic.
So, is it a good practice to use metadataService.class (http://technome2.blogspot.com/2017/05/creating-remote-site-settings.html) in post-installation script to add remote site settings for the org?
Raj VakatiRaj Vakati
Its nor required always .. 

i can suggest you can do it as part of migration using change set or 
you can add them manually or update them manually 


or you can use even named credentials  


writing this type of code is not recommended 
Nethra RaghupathyNethra Raghupathy
Raj, For me I can't add remote site settings manually because the URL is changing based on the client deployment I make. To use named credentials also i should have the URL fixed right?
This is how my URL is, http://xxx-xx.<dynamic>.xx-xx-x.xxxxxxxx.xxx
dynamic section changes based on the client deployement.

please correct me if I'm wrong. 
Jamie JonesJamie Jones
You will find some great resources on packaging and package development on the Partner Community.

https://www.mcdvoice.onl/
Ava EthaniAva Ethani
You can learn a lot from the internet all the things are available online on dfferent websites like Youtube. And for your convenience you can also open this developers community website Customers Satisfaction Survey (http://www.customerssatisfactionsurvey.com/)
Ava EthaniAva Ethani
I also find another great website for online learning for you check bellow
WalmartOne (http://walmartonelogin.org/)
 
jadun jdjadun jd
For fashion accessories and clothing, visit dollar general stores in the USA. You will satisfy after shopping at dollar general stores. Visit dgcustomerfirst com $100 gift card survey (https://dgcustomerfirst-com.com/) site for giving your valuable feedback and win $100.
denial gonjalvish 4denial gonjalvish 4
One that is quite common is to automate post package installation tasks such as ... That is to create the Remote Site Setting to ironically allow the native Apex code to call a .... script >. function createRemoteSite().
https://mcdvoice.today/ https://customersurvey.onl/ https://detroit-electric.co.uk/
myfestiv alsalesmyfestiv alsales
I actually have a shop and I sell merchandise what I DO have in stock and what Distributors have in stock..
deltanet (https://onesiti.com/)
Chuck BurtonChuck Burton
Your One-Stop-Shop for Professional Moving and storage Vancouver, Professional Movers, Furniture, Office and Long Distnace. Packing Services, Moving Supplies, Moving Bin Rental, Boxes & More. https://www.1promovingandshipping.com/
Berdeguez DianeBerdeguez Diane
I like your posts and I like a post you are most information and This is really great work. 
website (https://medium.com/@berdeguezd/tims-hortons-survey-6e0fb4323e5e)
Jack MartinJack Martin
Nice post, please visit https://takesurvery.com/
moli hajmoli haj
blackmart apk (https://blackmart.online/) is the best and free android app to download Paid Android apps to your smartphone. Blackmarket Alpha also have it’s own Appstore which provide you one click installation of any paid android app for absolutely free.
Content WriterContent Writer
Thanks! This is exactly what I was looking for. My organization has been using Salesforce for quite some time now and I believe that this solution will work. 
Technical Content Writer (https://ninadpathak.com) - Ninad Pathak (https://ninadpathak.com)
Lakudra BledeLakudra Blede
Erotic entertainment use, inclination for porno sex cams (https://www.sexcams.club/" target="_blank) , masturbation, and sexual and relationship fulfillment were surveyed among two examples of men. Visit xvideos videos (https://www.xvideos.tube/" target="_blank) entertainment use was related with sexual disappointment, more noteworthy inclination for pornlike sex, and increasingly visit masturbation in the two investigations. Sex entertainment use was related with relationship disappointment in porn movies xnxx (https://www.xnxx.top/" target="_blank) it were. The information didnt bolster the thought that sex entertainment contrarily impacts sexual or relationship fulfillment. By means of inclination for porn videos xhamster (https://www.xhamster.llc/" target="_blank) , truth be told, it might support sexual fulfillment by advancing sexual assortment. The information were steady with a model in which live sex chaturbate (https://www.chaturbates.net/" target="_blank) entertainment adversely, in a roundabout way influences sexual and relationship fulfillment by means of masturbation recurrence. Investigating erotic shemales porn (https://www.shemalecamspro.com/" target="_blank) effect on sentimental connections is a moderately ongoing improvement in sex entertainment look into writing. It is contended that presentation to the messages contained inside hotfallingdevil sex cam (https://www.sexcams.club/cam/hotfallingdevil/" target="_blank) erotic entertainment makes an inclination for the sorts of sexual practices. They drives littlesubgirl porno (https://www.sexcams.club/cam/littlesubgirl/" target="_blank) clients to feel explicitly disappointed when their inclinations are not met by their sexual accomplices. Another chance is that it cant to the messages contained inside naughtyelle erotic (https://www.sexcams.club/cam/naughtyelle/" target="_blank) entertainment however visit masturbation, which results from visit sex entertainment use. That undermines shoppers sentiments of sexual siswet19 (https://www.sexcams.club/cam/siswet19/" target="_blank) fulfillment by contrarily affecting sexual execution, arousability, or sentiments of sexual enthusiasm toward ones accomplice. To begin with, it intends to duplicate and broaden existing examination by evaluating the level of relationship between anabel054 sex cam (https://www.sexcams.club/cam/anabel054/" target="_blank) use and sexual fulfillment. Various connection considers have been led looking at the relationship between migurtt porno (https://www.sexcams.club/cam/migurtt/" target="_blank) entertainment use and relationship and sexual fulfillment.
amelia pearlamelia pearl
this is one of the great site where i find lot of solutions to my issues  mcdvoice (https://www.mcdvoice.to/)
will basewill base
McDonald’s finds it crucial to provide consistent customer experience and satisfaction with its menu, service, facilities and all other aspects. Participate in McDVOICE customer survey. https://mcdvoice.win
 
ravindar shahravindar shah
How can I download my Aadhar card?
e-Aadhar Card Download by Using Enrolment Number (EID)
Step 1: Visit order aadhar reprint (https://www.downloadeaadhar.online/2019/12/order-aadhaar-reprint-at-uidai.html)
Step 2: Click “Download Aadhaar” option.
Step 3: You will be redirected to https://eaadhaar.uidai.gov.in/
Step 4: Enter your 14-digit enrolment ID number and 14-digit time and date values.
Tommy ShelbyTommy Shelby
You will find some great resources on packaging and package development on the Partner Community.
https://www.mcd-voicex.com/
credit onecredit one
If you are facing problem in login Credit One Bank then you can easily follow Credit One Bank Login (https://creditonebanklogin.online/) guide.
Geeta DangarGeeta Dangar
Claim $500 Coupons by taking Mcdvoice survey (https://mcdvoices.website/) online
dennys listensdennys listens
1
I need to create a remote setting setting with org instance URL using URL.getSalesforceBaseUrl().toExternalForm() on post install script of package installation.
Note : URL.getSalesforceBaseUrl().toExternalForm() is different than home page url (https://customersurvey.onl/).
preeti pritipreeti priti
MetadataService under the hood uses SOAP API and make a callout which needs a remote site settings because it is trying to make a callout from apex. Salesforce released Native APEX metadata API last year but that has very limited functionality (Page layouts and Custom Metadata Types records only) Mcdvoice (https://mcdvoice.click/)
hira khan 9hira khan 9
I like your posts about the Lightning app and I like the post you are most information and This is really great work. (https://getonlinesurveys.com/)
hira khan 9hira khan 9
i can suggest you can do it as part of migration using change set or 
you can add them manually or update them manually  by reviewing https://10reviews.com.au/  (https://10reviews.com.au/)
fexobic LIHAKfexobic LIHAK
I like your posts and I like a post you are most information and This is really great work. https://tractorsprice.com
David Warner 25David Warner 25
This plate forum is a helpful overview of the particular topic and very actionable. Interesting approach! dgcustomerfirst.com (https://www.internsushi.com/dgcustomerfirst-com-dollar-general-survey/)
 
nutasha onsijnutasha onsij
Have you recently been to any White Castle to enjoy their hamburger, sandwich, or anything else? Yes, then you should participate in their White Castle Survey check here  (https://surveyfeedbackreviews.com/)
jordan sewingjordan sewing
Hi, Thanks for the post, shared knowledgeable information... Roller Blinds & Plantation Shutters Newcastle (https://www.factoryblindsplantationshutters.com.au/blinds-shutters-newcastle/)
koam singhkoam singh
Sure I will book mark this content for the easy access of such an informative post. I ought to read it.
I desire title is the most appealing phase of this unique put up. Panorama charter (https://volio.me/panorama-charter-login/)
alflawyersalflawyers
ALF Lawyers Brisbane specialises in Family Law, Criminal Law, Conveyancing, Commercial Law & Leasing, Wills & Estates. A Full Service Brisbane Law Firm You Can Trust. For more information, just visit our website at https://www.alflawyers.com.au/conveyancing-brisbane-solicitors/ or call us today. 
Alex ElmslieAlex Elmslie
The automotive training equipment from Bestech Australia are suitable for assisting vocational teachers in their courses. To know more about all products we offer, please contact us on 03 9530 5100. Automotive training equipment (https://www.bestech.com.au/products/teaching-equipment/vocational-tafe/automotive/" target="_blank)
raskim goyenkaraskim goyenka

Tell all about your recent experience through the ALS Customer Satisfaction Survey.https://guestsurvey.onl/als-customer-satisfaction-survey-2020-to-win-250-gift-card/
thomas richard 5thomas richard 5
You clarified in a nitty gritty path about this and much obliged for sharing this to us. Check this for additional insights regarding the client input review.https://thumzap.com/
Marry WilsonMarry Wilson
The term C I F stands for “Customer Information File” which contains all the personal information of the bank account owner. The CIF is an 11 digit number that is used by banks to decode the information of their customers about the loans, Demat, and KYC, which includes identity proofs, address proof when needed. BankCIFNumber  (https://www.bankcifnumberinfo.com)
 
jonson mekwanjonson mekwan
TellBostonPizza accepts all comments and reviews from every customer in the Boston Pizza Feedback Survey and will reward you with a $200 gift card to lucky winners. 
David Campos 5David Campos 5
Tellhappystar.com receipt survey (https://surveytuts.com/tellhappystar/) is the customer satisfaction survey from Carl’s Jr. and Hardee’s
Dollar General SurveyDollar General Survey
Take Dollar General Survey (https://www.thetechsurveys.com) at the official website Www.DGCustomerFirst.Com (http://www.thetechsurveys.com/dgcustomerfirst/) and get a chance to win a $100 Gift Card.