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
339 views Asked by R_M_R At
1
There are 1 answers
Related Questions in SALESFORCE
- UI Component(Table Rows) Taking Too Much too in LWC
- Twilio Salesforce integration (Chat Transcripts)
- How can I automatically apply dark and light themes using the Lightning Email Template Builder in Salesforce based on the user's system preferences?
- Sending Slack Message to channel from salesforce flow
- How to redirect to parent object after child record creation
- Creating File in Drag and Drop Enabled File Cabinet in Netsuite using Rest API from Salesforce
- tsql functions like REPLACE() failing in azure data factory pipeline connected to salesforce
- An unexpected error occurred. Please include this ErrorId if you contact support: 1878486530-323938 (1541428280)
- My requirement is that I have to create DLRS for 'the date when the most recent email was received'
- Declarative Rollup Summaries Deployment
- Trouble updating a Field in Salesforce via a Python Script
- Why custom favicon for Salesforce-powered website not showing consistently in Google search results
- Salesforce chatter photo upload trigger
- Disable Azure DevOps Pull Request being completed when Using Copado
- AppFlow s3 to Salesforce upsert fails
Related Questions in APEX
- Error in running apex code in vs code studio
- Oracle APEX - Enabling Persistent Authentication Breaks Deep Linking
- How to Change this Pl/SQL Codes to handle multiple roles in Apex?
- Salesforce chatter photo upload trigger
- Limits for SOQL INNER QUERY in Apex
- Salesforce Deployment: Method does not exist or incorrect signature"
- APEX class to import data to custom object
- Apexcharts How to use different color on opposite bar chart begin on specified value (not zero)
- What could cause a apex scheduled batch class to run but not update records even when unit tests have passed?
- When button clicked on load it adds 'undefined' to array
- conga template specific for some object like invoice
- Salesforce SOAP API: Where do I get the EnterpriseConnection class from?
- Email should go through the apex class
- Salesforce: Upload Apex Trigger via Java
- Programmatically authenticate External Credentials Principal In Named Credentials
Related Questions in LWC
- UI Component(Table Rows) Taking Too Much too in LWC
- Lightning-datatable: Inline editing with checkbox doesn't work
- Salesforce Lightning Workspace API
- Impossible to retrieve an opportunity by name with form with LWC
- Integrate CKEditor5 Document type with Salesforce Visualforce page
- How to hide or encrypt the payloads when API calling is made from js of LWC?
- Why does the url not change on my visual force page
- How to add a Data label to the chart built using chart js libraries in LWC
- DeepL API Translation Error Apex Integration
- Override CSS for Rich Text Editor Salesforce
- How to add custom Button when no farmer records are found
- Customize a <select> tag in LWC
- LWC setter is not getting called
- Eval() is not working in LWC Javascript, although it is working fine in LWC playground
- LWC Radio Group
Related Questions in SALESFORCE-DEVELOPMENT
- How to show only the proper lead source based on product category chosen
- How Salesforce org behaves after enabling my domain
- Sending JSON from Postman to Salesforce ([{"message":"Session expired or invalid","errorCode":"INVALID_SESSION_ID"}])
- Prevent Duplicate Trigger
- How to find, Is custom Pick list values are bind with Global value set or not using Schema.DescribeField?
- sfdx scanner:run dont understand User Mode
- Why is the 'Public' keyword not being recognized"?
- How to achieve this. Help me
- how to turn off Salesforce local source track tracking in vscode
- I have an collection of data's, I have to display the records in 3 columns in one page of an PDF in visual force
- How to setup remote site origin programatically in salesforce during the app installation
- Is it possible to use jsforce to achieve Schema.DescribeFieldResult?
- Receiving sObject error: Error message does not fire and receiving a System error instead
- After Update in Apex Class - Total Contacts "Roll-Up Summary"
- How to modify the LoadConvert Apex payload?
Related Questions in SALESFORCE-CLI
- Salesforce CLI support CSV data import on Big Objects?
- Error in deploying class using vs code "Error deploying or retrieving source"
- Jenkins - "Custom Tool" plugin URL
- VSCode / Salesforce - Deploy Source to Org very slow to complete, although actual deployment is fast?
- Packaging 2gp org
- How to setup remote site origin programatically in salesforce during the app installation
- Jenkins pipeline creation through Salesforce CLI
- Custom Lookup iteration in Multiple rows
- "SFDX: Deploy Source to Org" function missing
- 'C:\Program' is not recognized as an internal or external command in 'Git Bash Here' terminal - Windows (salesforce sfdx) - SOLVE
- Assign role to user in Scratch Org through sfdx command and send email notification to reset the password
- Determine Minimum Tests To Be Run For Salesforce Deploy
- Local Development Server for Lightning Web Components
- Salesforce CLI destructive changes (sfdx sgd:source:delta) not showing difference in branches using GItHub Actions
- Salesforce CLI not working with Visual Studio Code on MAC
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?
Popular Tags
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)
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/