• ManiKumar Gunda 10
  • NEWBIE
  • 5 Points
  • Member since 2020

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 7
    Questions
  • 11
    Replies
why do we use custom settings, custom meta data instead of custom object
getting this error when trying to use debug in VS Code
The salesforcedx-vscode-apex.java.home setting defined in VS Code settings points to a missing folder. For information on how to setup the Salesforce Apex extension, see Set Your Java Version.
User-added image
getting this error after saving Named Credentials and after logging in the org....
Can anyone explain how to debug in lwc...by clicking f12
I have followed the steps in github(sample gallery) to authorize Dev Hub,creating Scratch Org, cloning from git hub for lwc recipes app. I am able to see lwc-recipes app now. Now I want to know how we can move this app from scratch org to Dev Hub...Can anyone,please help me on this..
Thanks in Advance
why do we use custom settings, custom meta data instead of custom object
When attempting to populate the value of a User lookup field via the 'value' attribute, I receive the following error:
lookup.js:1 Uncaught (in promise) Error: LWC component's @wire target property or method threw an error during value provisioning. Original error:
[Unexpected Error when retrieving 'User' Layout Information ]
The dumbed down code looks something like this: 

html
<lightning-input-field field-name="Submitter__c" value={submitter}></lightning-input-field>

JS
import { LightningElement, api, wire, track } from 'lwc';
import Id from '@salesforce/user/Id';

export default class EditableForm extends LightningElement {
@track submitter = Id;

}

The stickler is that this code previously worked. I only found this issue when returning to this form to test an unrelated workaround (changing a manual sharing rule from a flow to a trigger).

Any idea why this is happening? 
getting this error after saving Named Credentials and after logging in the org....
Hi, I followed this trailhead (https://trailhead.salesforce.com/content/learn/modules/test-lightning-web-components/set-up-jest-testing-framework) and upon running this line:
sfdx force:lightning:lwc:test:setup

I get the following error:
 
npm command not found. Verify npm is properly installed and try again.

I already installed npm and node on my computer as evidenced when I type these:
 
D:\Workspace\Personal\etrs-migration>node --version
v12.14.0

D:\Workspace\Personal\etrs-migration>npm --version
6.13.4

I couldn't find solutions when I searched from Google, has anyone encountered this issue like I have right now?
Can anyone explain how to debug in lwc...by clicking f12
I have followed the steps in github(sample gallery) to authorize Dev Hub,creating Scratch Org, cloning from git hub for lwc recipes app. I am able to see lwc-recipes app now. Now I want to know how we can move this app from scratch org to Dev Hub...Can anyone,please help me on this..
Thanks in Advance
I'm trying to make an HTTP Request to other System.

They provided the endpoint URL which contains a Port number.

https://Test.com:50001/RESTAP/BGN/PRDV/CREATE

When I'm trying to make the request I facing with this ERROR:

> System.CalloutException: Unable to tunnel through proxy. Proxy returns
> "HTTP/1.1 503 Service Unavailable"

although I have added the URL in remote sites.

When I make the request from Postman - I get the response as expected.

My code is : 

    Http httpProtocol = new Http();
            HttpRequest request = new HttpRequest();
            String url = 'https://Test.com:50001/RESTAP/BGN/PRDV/CREATE';
            String username2 = 'Name';
            String password2 = 'Passowrd';
            Blob headerValue = Blob.valueOf(username2 + ':' + password2);
            String authorizationHeader = 'BASIC ' + EncodingUtil.base64Encode(headerValue);
            request.setEndpoint(url);
            request.setMethod('POST');
            request.setHeader('Authorization', authorizationHeader);
            request.setTimeout(60000);
    
    
            request.setHeader('Content-Type','application/json');
            request.setHeader('proxyPort','50001');
            request.setHeader('proxyHost','PROXYHOST URL');
            request.setHeader('proxySet','true');
    
            HttpResponse response = httpProtocol.send(request);


Note: The userName and Password will be filled from Custom setting.

I tried with and without the proxy header, I tried to turn the BASIC auth to Basic and many other little changes that didn't work.

I'm still getting this Error.

How can I know if it not blocked by Firewall? 

Any help or Idea to solve this issue

Thanks!
  • August 27, 2019
  • Like
  • 0
Hi!,

I wan't to make a quick action button on an Object, but on click I just need to fire a background record update without oppening modal. Is it possible? Something to prevent opening modal. For now I simply created an Action Button based on VisualForce page, a confirmation button inside to update the record and close modal with success message.