I'm developing the salesforce app using salesforce LWC components, I have requirement where I should process the salesforce data from an external system, for this I'm sending the data to the external api, say 'https://myapi.com/contact', but when I render the app, I'm getting an error as unauthorized access, so I setup my api url in the remote site settings, since my app will be downloaded and used by any salesforce user, It's not possible to set this manually, is there a way I can set the remote site settings programmatically when my app is installed or is there any other way I can solve this without any user intervention
How to setup remote site origin programatically in salesforce during the app installation
336 Views Asked by R_M_R At
1
There are 1 best solutions below
Related Questions in SALESFORCE
- Flask-Restful, oauth, and Salesforce
- i am using Command line dataloader in Salesforce & create simple “process-conf.xml” file ,i want to give relative path insted of absolute path
- VBA automation to upload data into Salesforce
- "Operation in progress..." Never Ends When Previewing Rows in Kettle Spoon via Salesforce
- How to download attachments using c#
- Opportunity Field Dependency
- Create a dynamic SOQL Query using variable objects
- Salesforce - HubSpot API calls
- When does Time Dependent workflow rule executes?
- Customize 'Send with Docusign' Button in Salesforce
- How do I use a publicly hosted image as the background for a visualforce page?
- How to get access token and make salesforce rest api requests with paw?
- List button in Salesforce1
- Visualforce page is not refreshing after deleting a row from table
- Docusign Salesforce Logout/switch account
Related Questions in APEX
- Create a dynamic SOQL Query using variable objects
- Visualforce page is not refreshing after deleting a row from table
- The value 'core.apexpages.el.adapters.RuntimeTypeMetadataELAdapter@12230cc5' is not a valid number
- I need some help in my html page
- Get Grandchild Object Field Values from Parent Object
- Access a variable on a controller on two seperate visualforce pages
- Test class for Apex Trigger
- Loading CSS in lightning component as static resource?
- Apex trigger for Number of Time Record is Viewed
- Syntax Error when using jQuery Selector on ID's with colons
- Salesforce: how to schedule a task to run on the first day of every quarter
- Apex- no viable alternative at character ' ' while substring
- get parent values inside a set
- How to get event for mailgun when attachment get download or click?
- How to check permission on custom setting from apex code
Related Questions in LWC
- What does the below snippet mean?
- Highcharts : Mouse Over on Legend throwing error in LWC Component
- custom carousel in LWC
- Is there a way to change a font color in Lightning input rich text field when maximum character limit is exceeded in LWC JS?
- How to stop conversion of the timezone on new date object in javascript lwc?
- How to removed canvas element event listeners
- Salesforce LWC FullCalendar V5 Initialization Issue
- Undefined when Passing pre defined Values from lwc to controller
- console log a reactive prop in lwc
- is it possible to use lwc properties in Salesforce experience cloud components like Rich Content Editor
- Onload apex imperative method returns nothing in js constructor() but on second refresh it returns the proper data, why this is happening in LWC?
- Salesforce apex class, unable for deploy for this organization
- Custom Multi Lookup LWC - Refresh Page After Record Edit -> Save
- Salesforce lwc onclik function not running
- Salesforce LWC: Not able to create record and not getting any error as well
Related Questions in SALESFORCE-DEVELOPMENT
- How to subscribe to Salesforce Platform Event in a Python application?
- Sending JSON from Postman to Salesforce ([{"message":"Session expired or invalid","errorCode":"INVALID_SESSION_ID"}])
- I am building a WebApp that authenticates with salesforce using a connected app
- Salesforce Code Coverage Failure. Your code coverage is 12%. You need at least 75% coverage to complete this deployment
- Apex Test Class for Invocablemethods
- Invocablemethod Not Creating Records in Apex Class
- Invocablemethod Apex Class Rollup Multiple Currency Fields
- Custom field is not found
- Receiving sObject error: Error message does not fire and receiving a System error instead
- Have any one Worked on The fillable pdf in sales force
- After Update in Apex Class - Total Contacts "Roll-Up Summary"
- Salsforce and Plivo integration for making outbound calls
- sfdx scanner:run dont understand User Mode
- How to find, Is custom Pick list values are bind with Global value set or not using Schema.DescribeField?
- Is it possible to use jsforce to achieve Schema.DescribeFieldResult?
Related Questions in SALESFORCE-CLI
- Salesforce CLI not working with Visual Studio Code on MAC
- Custom Lookup iteration in Multiple rows
- Visual Studio Code(vsc) sfdx Command keeps on running
- MdapiDeployCommand No org configuration found for name
- Local Development Server for Lightning Web Components
- Can't Authorize Dev Hub or Org in SF/VS Code Env. Setup for SF
- Jenkins - "Custom Tool" plugin URL
- SHA mismatch error when sfdx update command is executed
- Jenkins pipeline creation through Salesforce CLI
- Salesforce CLI destructive changes (sfdx sgd:source:delta) not showing difference in branches using GItHub Actions
- It is possible to install Salesforce cli through command line?
- VSCode / Salesforce - Deploy Source to Org very slow to complete, although actual deployment is fast?
- SFDX & Github Action - Warning: force:auth:sfdxurl:store is not a sfdx command
- Assign role to user in Scratch Org through sfdx command and send email notification to reset the password
- 'C:\Program' is not recognized as an internal or external command in 'Git Bash Here' terminal - Windows (salesforce sfdx) - SOLVE
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
How are you distributing your app? Can't you just add the remote site to your managed package?
If not - you could add some "setup guide" VF page (lwc won't work because it doesn't generate api-enabled session IDs) and do a trick similar to https://andyinthecloud.com/2014/07/29/post-install-apex-metadata-api-configuration-solved/