• vinod fnu
  • NEWBIE
  • 0 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 11
    Questions
  • 7
    Replies
I am using salesforce for API query

this one works fine.
String endPoint = 'https://sandbox-quickbooks.api.intuit.com/v3/company/4xxxxxxxxxxxx/query?query=select+id,+DocNumber,+balance,+TotalAmt+from+Invoice

however
For example
String endPoint = 'https://sandbox-quickbooks.api.intuit.com/v3/company/4xxxxxxxxxxxx/query?query=select+id,+DocNumber,+balance,+TotalAmt+from+Invoice+ where +id+67

is not working.How to use where clause.
    @wire(AggregateResult) AggregateResult({error,data}){
                if (data) {
            
          this.data = data;
            this.error = undefined;
        } else if (error) {
            this.error = error;
            this.data = undefined;
  }} 
        chart;
        
          
        
                config2 = {
    type: 'bar',
    data: {
        labels: ['January', 'Feburary', 'March', 'April', 'May', 'June','July','August','September','October','November','December'],
        datasets: [{
            label: '# of Trust',
          data: [19, 19, 3, 5, 2, 3,34,66,77,65,34,44],
       ///i want to replace the data with the values from the @wire.
               data:  this.data.expr0,
     ),

on the html 
<template if:true={data}>
                Page
                <template for:each={data} for:item="ent">
                    <p key={ent.id}>{ent.expr1}</p>
                                        <p key={ent.id}>{ent.expr0}</p>
                </template>
            </template>
the out put is.
PagePage
27
13
23
42
19
39
22
23
29
32
88
110
Just want to put these values in the chart data.
  
i am trying to write a test class to cover a multipicklist field.
i am not able to pass the multiple value using apex.
HTML
<template>
    <lightning-record-view-form record-id={recordId} object-api-name="obj__c">
    <div>
        {recordId}
    <lightning-button  variant="success" label="Invoice" onclick={handleclick}>
    </lightning-button>
    </div>
    </lightning-record-view-form>
    
</template>

JS
import { LightningElement,api,wire,track } from 'lwc';
import main from '@salesforce/apex/orderupdate.main';

export default class Invoicebutton extends LightningElement {
    @api recordId;
    @wire(main,{abf:'$recordId'})
    orders;
    handleclick(){
        main();
    }

}
    }

}

Controller
public with sharing class orderupdate {
    @AuraEnabled(cachable=true)
public static   void main(string abf){
        list<obj__c> ent=[select id,name,(select id,name from Accounts__r) from obj__C where id  =:abf];
        system.debug(ent);
}
The  debug statement is showing a null value on click of button no value is passed.
i have a LWC. i have a custom field on contact object for storing a link to image file. i am trying to get the image on html dynamically based on the controller class which will return a contact based on the name input on search bar .The search bar is an input on the html. 
<apex:page standardcontroller="Entity__c" extensions="wrapperclassTwo">
  <apex:form >
  <apex:pageBlock >
      <apex:outputText>  
      Trust Name
      </apex:outputText>
      <apex:inputfield label="name of trust" value="{!Entity__c.name}"/>
      <apex:inputfield label="name of trust" value="{!lnput}"/>
  <apex:pageBlockSection columns="1" title="Transactions1">


i want to use either {!Entity__c.name} or the {!lnput}
in the controller class.


controller
public with sharing class wrapperclassTwo {
    public wrapperclassTwo(apexpages.StandardController controller){}
 ///  public string input = entity__c.name;
    Public string input{get;set;}
    Public string lnput{get;set;}
    list<Tnetoutputtransaction__c> obl1= new list<Tnetoutputtransaction__c>();
    List<Account_Holdings_Tax_Lots__c> obl2 = new list<Account_Holdings_Tax_Lots__c>();

    public list<wrapperClass> wrapperClassList = new list<wrapperclass>();
    public list<wrapperClass>getListWrapperObjectMethod(){
        
        obl1 =[select name,id From Tnetoutputtransaction__c limit 15 where name={!input];/or {!Entity__c.name}
         obl2 =[select name,id From Account_Holdings_Tax_Lots__c limit 15];
      
i want to use the that to 
 
Case c = [Select Id ,CaseNumber , Status ,Priority from Case Limit 1] ;
JSONGenerator gen = JSON.createGenerator(true);   
gen.writeStartObject();     
gen.writeStringField('Ticket Number ', c.CaseNumber);
gen.writeStringField('Ticket Status',c.Status);
gen.writeStringField('Ticket Priority',c.Priority);
gen.writeEndObject();   
String jsonS = gen.getAsString();
System.debug('jsonMaterials'+jsonS);


this is the case of simple jason.
i have the jason into a nested form

mine jason is

{
  "Line": [
    {
      "Amount": 100.00,
      "DetailType": "SalesItemLineDetail",
      "SalesItemLineDetail": {
        "ItemRef": {
          "value": "1",
          "name": "Services"
        }
      }
    }
  ],
  "CustomerRef": {
    "value": "1"
  }
}

any thouts about  jason generator for the above jason 

 
I WANT TO CONNECT QUICKBOOKS TO SALESFORCE USING AN api CALL WITHOUT A 3RD PART APPLICATION.
PLEASE HELP WITH CODE AND THE PROCES OR STEPS.
i just want to customize the domain name and url which will show on the community login page.
for example 
the existing url.-https/for03042019-ppms-clientportal.force.com/PPMSClient
new url-https/ProjMms.com/Client-Login/SouthFlorida
i have a scenario .I have a custom object party  having fields 'related contact' and 'related  companies'.
These fields are lookup to Contact Object and companies object.
each party record will have a related contact and related companies value.
I have a custom object named  invoices .
For all companies we will have 1 invoices record.
on invoices object  i want the list of all contacts in fields user 1 ,user 2 ,user 3
example
Record PARTY -1            james  jo                  acme ltd
            Party -2               marc                          acme ltd
          party 3                   lily                             pvd ltd
      party  4                      james jo                      amx ltd
     Party 5                      silly                            amx ltd

for record  invoice with name acme ltd.
user 1=james jo (auto poulated by apex trigger or formulae)
user 2 = marc (auto poulated by apex trigger or formulae)

for record  invoice with name amx ltd.
user 1=james jo (auto poulated by apex trigger or formulae)
user 2 = silly (auto poulated by apex trigger or formulae)
 
Hi,
From vs code,when  I am trying to authorize the saleforce org ,i am getting error like below.Can any one please help me on this error part.
 
Error :- Error authenticating with auth code due to: self signed certificate in certificate chain
This is most likely not an error with the Salesforce CLI. Please ensure all information is accurate and try again.


Thanks,
Reddy S.
i am trying to write a test class to cover a multipicklist field.
i am not able to pass the multiple value using apex.
<apex:page standardcontroller="Entity__c" extensions="wrapperclassTwo">
  <apex:form >
  <apex:pageBlock >
      <apex:outputText>  
      Trust Name
      </apex:outputText>
      <apex:inputfield label="name of trust" value="{!Entity__c.name}"/>
      <apex:inputfield label="name of trust" value="{!lnput}"/>
  <apex:pageBlockSection columns="1" title="Transactions1">


i want to use either {!Entity__c.name} or the {!lnput}
in the controller class.


controller
public with sharing class wrapperclassTwo {
    public wrapperclassTwo(apexpages.StandardController controller){}
 ///  public string input = entity__c.name;
    Public string input{get;set;}
    Public string lnput{get;set;}
    list<Tnetoutputtransaction__c> obl1= new list<Tnetoutputtransaction__c>();
    List<Account_Holdings_Tax_Lots__c> obl2 = new list<Account_Holdings_Tax_Lots__c>();

    public list<wrapperClass> wrapperClassList = new list<wrapperclass>();
    public list<wrapperClass>getListWrapperObjectMethod(){
        
        obl1 =[select name,id From Tnetoutputtransaction__c limit 15 where name={!input];/or {!Entity__c.name}
         obl2 =[select name,id From Account_Holdings_Tax_Lots__c limit 15];
      
i want to use the that to 
 
i have a scenario .I have a custom object party  having fields 'related contact' and 'related  companies'.
These fields are lookup to Contact Object and companies object.
each party record will have a related contact and related companies value.
I have a custom object named  invoices .
For all companies we will have 1 invoices record.
on invoices object  i want the list of all contacts in fields user 1 ,user 2 ,user 3
example
Record PARTY -1            james  jo                  acme ltd
            Party -2               marc                          acme ltd
          party 3                   lily                             pvd ltd
      party  4                      james jo                      amx ltd
     Party 5                      silly                            amx ltd

for record  invoice with name acme ltd.
user 1=james jo (auto poulated by apex trigger or formulae)
user 2 = marc (auto poulated by apex trigger or formulae)

for record  invoice with name amx ltd.
user 1=james jo (auto poulated by apex trigger or formulae)
user 2 = silly (auto poulated by apex trigger or formulae)
 
Thanks to the Trailhead module regarding APEX Rest callout I know how to post "mighty moose" to an endpoint ;-)

I am wondering how I can create and send a JSON string based on Salesforce fields. For example I want to send a case to an external system via a REST Post method with the following field mapping:
Ticket Number = CaseNumber
Ticket Status = Status
Ticket Priority = Priority

How would I change the request.setBody('{"name":"mighty moose"}'); line to succesfully generate the required JSON code for the external system?