• Hariom Kankerwal
  • NEWBIE
  • 0 Points
  • Member since 2019

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 1
    Replies
I'm trying to add a detail link to an HTML Email template, to link to a related record on the object being merged into the e-mail.
I am aware of the process for adding a link/detail link for the object in the template by using
{!Communication__c.Link}
But my Communication object has a lookup to a Case called ParentId__c (which I can be sure is not null..) and I want to link to THIS object... my initial thought was to use
{!Communication__c.ParentId__r.Link}
and it would traverse the relationship, and then merge out the Link value as with other objects, but this has not worked.
Starting SFDX: Authorize an Org
D:\LWC\Page\Page7>sfdx force:auth:web:login -r https://login.salesforce.com
{ Error: spawn cmd ENOENT
    at Process.ChildProcess._handle.onexit (internal/child_process.js:240:19)
    at onErrorNT (internal/child_process.js:415:16)
    at process._tickCallback (internal/process/next_tick.js:63:19)
  errno: 'ENOENT',
  code: 'ENOENT',
  syscall: 'spawn cmd',
  path: 'cmd',
  spawnargs:
   [ '/c',
     'start',
     '""',
     '/b',
     'https://login.salesforce.com//services/oauth2/authorize?response_type=code^&client_id=PlatformCLI^&redirect_uri=http%3A%2F%2Flocalhost%3A1717%2FOauthRedirect^&state=58824b29544a^&prompt=login^&scope=refresh_token%20api%20web^&code_challenge=UvcYFtsKZ4Iaior5-qIUIsiqFx9mBuYZj1cp8XJ0zN4' ] }
{ Error: spawn cmd ENOENT
    at Process.ChildProcess._handle.onexit (internal/child_process.js:240:19)
    at onErrorNT (internal/child_process.js:415:16)
    at process._tickCallback (internal/process/next_tick.js:63:19)
  errno: 'ENOENT',
  code: 'ENOENT',
  syscall: 'spawn cmd',
  path: 'cmd',
  spawnargs:
   [ '/c',
     'start',
     '""',
     '/b',
     'https://login.salesforce.com//services/oauth2/authorize?response_type=code^&client_id=PlatformCLI^&redirect_uri=http%3A%2F%2Flocalhost%3A1717%2FOauthRedirect^&state=58824b29544a^&prompt=login^&scope=refresh_token%20api%20web^&code_challenge=UvcYFtsKZ4Iaior5-qIUIsiqFx9mBuYZj1cp8XJ0zN4' ] }
{ Error: spawn cmd ENOENT
    at Process.ChildProcess._handle.onexit (internal/child_process.js:240:19)
    at onErrorNT (internal/child_process.js:415:16)
    at process._tickCallback (internal/process/next_tick.js:63:19)
  errno: 'ENOENT',
  code: 'ENOENT',
  syscall: 'spawn cmd',
  path: 'cmd',
  spawnargs:
   [ '/c',
     'start',
     '""',
     '/b',
     'https://login.salesforce.com//services/oauth2/authorize?response_type=code^&client_id=PlatformCLI^&redirect_uri=http%3A%2F%2Flocalhost%3A1717%2FOauthRedirect^&state=58824b29544a^&prompt=login^&scope=refresh_token%20api%20web^&code_challenge=UvcYFtsKZ4Iaior5-qIUIsiqFx9mBuYZj1cp8XJ0zN4' ] }
{ Error: spawn cmd ENOENT
    at Process.ChildProcess._handle.onexit (internal/child_process.js:240:19)
    at onErrorNT (internal/child_process.js:415:16)
    at process._tickCallback (internal/process/next_tick.js:63:19)
  errno: 'ENOENT',
  code: 'ENOENT',
  syscall: 'spawn cmd',
  path: 'cmd',
  spawnargs:
   [ '/c',
     'start',
     '""',
     '/b',
     'https://login.salesforce.com//services/oauth2/authorize?response_type=code^&client_id=PlatformCLI^&redirect_uri=http%3A%2F%2Flocalhost%3A1717%2FOauthRedirect^&state=58824b29544a^&prompt=login^&scope=refresh_token%20api%20web^&code_challenge=UvcYFtsKZ4Iaior5-qIUIsiqFx9mBuYZj1cp8XJ0zN4' ] }

Key Point :
i am using personal laptop - I don't think Proxy setting required.

made change in .vscode settings.json :

{
    "terminal.integrated.env.osx": {
        "SFDX_SET_CLIENT_IDS": "sfdx-vscode"
    },
    "terminal.integrated.env.linux": {
        "SFDX_SET_CLIENT_IDS": "sfdx-vscode"
    },
    "terminal.integrated.env.windows": {
        "SFDX_SET_CLIENT_IDS": "sfdx-vscode"
    }
}

Java Home Setting :

   "salesforcedx-vscode-apex.java.home" :"C:/Program Files/Java/jdk1.8.0_251",
    "xml.java.home": "null",
    "window.zoomLevel": 0

Environment Variable 
User PAth : C:\Program Files\Salesforce CLI\bin
Sys Variable : C:\Program Files\nodejs

Please suggest me on this.
Thanks in Advance :)
 
Hello All,
I am trying to Create a Hello World Lightning Web Component as mentioned in the URL below.
Hello World Lightning Web Component (https://trailhead.salesforce.com/content/learn/projects/quick-start-lightning-web-components/create-a-hello-world-lightning-web-component?trail_id=build-lightning-web-components)
But in VS code I am getting below output and did some analysis but unable to risolve it please help me how can I proceed further.

VS code output:
Starting SFDX: Authorize an Org

09:42:18.175 sfdx force:auth:web:login --setalias vscodeOrg --instanceurl https://login.salesforce.com --setdefaultusername
ERROR running force:auth:web:login:  Cannot start the OAuth redirect server on port PortInUseAction. 

Try this: 
Kill the process running on port 1717 or use a custom connected app and update OauthLocalPort in the sfdx-project.json file.
09:42:23.367 sfdx force:auth:web:login --setalias vscodeOrg --instanceurl https://login.salesforce.com --setdefaultusername ended with exit code 1
------------------------------Sometimes below error is coming-------------------
use a custom connected app and update OauthLocalPort in the sfdx-project.json file

Thanks in Advance :)