• akoch
  • NEWBIE
  • 10 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 3
    Replies
I am trying to integrate Opportunity details including the associated products into a 3rd parts system via the REST API.  Currently we're capturing other information through a GET request and encoding the query in the API.  This has proven difficult to do for the Opportunity details, and I believe this is because a cross object query is required.  For example, the SOQL to do this looks something like:
SELECT Id, Name, ( SELECT PricebookEntry.Product2Id FROM OpportunityLineItems ) FROM Opportunity
Is there a way to encode this into a format that fits with
https://INSTANCE.my.salesforce.com/services/data/v45.0/query/?q=SELECT....

Thanks in advance!
 
  • August 08, 2019
  • Like
  • 0
Hello,

I'm stuck trying to deploy the simplest of Lightning Web Components from Visual Studio Code.  I've successfully completed all of the Trailhead modules for LWC using the recommended extensions in VS Code.  However, when I go to deploy my own components I'm faced with a "No base file for markup://c:pmLetter" 

pmLetter is the name of the component and the project folder.  I've also reviewed similar postings on this issue: pmLetter.js
import { LightningElement, track } from 'lwc';

export default class PmLetter extends LightningElement {
    @track greeting = 'World';
}
pmLetter.html
<template>
    <p>Some Text Here</p>
</template>
pmLetter.js-meta.xml
<?xml version="1.0" encoding="UTF-8"?>
<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata" fqn="pmLetter">
    <apiVersion>45.0</apiVersion>
   <isExposed>true</isExposed>
   <targets>
       <target>lightning__AppPage</target>
       <target>lightning__RecordPage</target>
       <target>lightning__HomePage</target>
   </targets>
</LightningComponentBundle>
jsconfig.json (in lwc folder)
{
    "compilerOptions": {
        "baseUrl": ".",
        "paths": {
            "c/pmLetter": [
                "pmLetter/pmLetter.js"
            ]
        },
        "experimentalDecorators": true
    },
    "include": [
        "**/*",
        "../../../../.sfdx/typings/lwc/**/*.d.ts"
    ],
    "typeAcquisition": {
        "include": [
            "jest"
        ]
    }
}


 
  • May 13, 2019
  • Like
  • 0
I am trying to integrate Opportunity details including the associated products into a 3rd parts system via the REST API.  Currently we're capturing other information through a GET request and encoding the query in the API.  This has proven difficult to do for the Opportunity details, and I believe this is because a cross object query is required.  For example, the SOQL to do this looks something like:
SELECT Id, Name, ( SELECT PricebookEntry.Product2Id FROM OpportunityLineItems ) FROM Opportunity
Is there a way to encode this into a format that fits with
https://INSTANCE.my.salesforce.com/services/data/v45.0/query/?q=SELECT....

Thanks in advance!
 
  • August 08, 2019
  • Like
  • 0
Hi Team,

I am getting below issue while authorizing the Org. Can someone help on this?
User-added image
Thank you
Manoj
User-added image

I am getting the above error when trying to push to scratch org. Can some one point out the error please?