Questions tagged [cpq-api]
The cpq-api tag has no usage guidance.
14 questions
0
votes
0
answers
35
views
UserInfo.getsessionId() not working from the context of a console app to invoke salesforce apis from apex?
Im trying to invoke salesforce cpq apis from Apex. The Apex class sets Authorization as follows:
request.setHeader('Authorization', 'Bearer ' + UserInfo.getSessionId());
The class is exposed as an ...
-1
votes
0
answers
17
views
How to navigate back to CPQ quote line editor from LWC custom action
We are opening a lwc component with in Quote line editor, with the help of custom actions, not on finish button click on LWC, we want to close the pop up and navigate back to quote line editor screen, ...
0
votes
0
answers
18
views
Salesforce CPQ - Asynchronous processing of QCP and price rules resulting in incorrect ACV calculations
We have a scenario where changing the Billing Country outside QLE triggers the Price Rule to set the Partner Discount at QL, which is then used to set the Net Total at QL. In parallel, the QCP script ...
1
vote
1
answer
342
views
Conflict Between Triggers on blng__Invoice__c: Billing Package vs. Custom Development
We have the Salesforce CPQ Billing package installed in our organization without any problems.
Since the new Winter '24 release, we have sometimes encountered deployment errors in our org due to the ...
0
votes
0
answers
292
views
Salesforce CPQ inside Customer Community / Ecommerce site
My client is currentlty using a third party ecommerce site for pricing/simulation, and using Salesforce CPQ separately.
He would like to replace the current custom pricer/simulator by CPQ, by adding ...
0
votes
0
answers
36
views
Billings API - runAs user doesn't work as expected
I'm doing a test class on a batch that trigger some call to the Salesforce billings API.
Even if I give the good right on the running as user, I have this issue on the field blng__CreditNoteLine__c....
2
votes
0
answers
873
views
How to Reassign an Advanced Approvals request via Apex
I have a business requirement that when a record is submitted for approval with Advanced Approvals, to evaluate a set of criteria, and if it the criteria is satisfied, immediately reassign the ...
0
votes
0
answers
2k
views
Salesforce CPQ API to create Quote and Quote Line items facing issue with calculation
Using Salesforce CPQ API to create Quote and Quote Line items.
Records are created, but on Quote line items facing below error
Before you can create an order, generate a document, or contract an ...
0
votes
1
answer
608
views
Percent of Total field in Salesforce CPQ
I am trying to learn Salesforce CPQ where I have two questions. I have tried to create a Percent of Total product.
I have two questions here :
I will have to add the Percent of Total product in the ...
0
votes
1
answer
1k
views
Advance Approval API call for bulk records
Has anyone worked on or has idea about the calling Advance Approval APIs for bulk records?
The goal is to Submit multiple records for Approval, with current SBAA.ApprovalAPI's we can call it only for ...
0
votes
0
answers
358
views
You have uncommitted work pending. Please commit or rollback before calling out in Queueable apex
I am getting the following error
You have uncommitted work pending. Please commit or rollback before calling out
while executing the below code
global class AmendContract_Queueable implements ...
2
votes
1
answer
3k
views
How to add new Quote line via CPQ Custom Script
I'm writing a custom script for CPQ Calculator. I'm using the onAfterCalculate method to insert new quote lines using JSForce.
export function onAfterCalculate(quote, lines, conn) {
let ...
1
vote
1
answer
366
views
Accessing Salesforce CPQ Setting Properties In Apex
In Salesforce CPQ settings configuration page, there are some settings which are used to created records during the quoting process. For example the "Subscription Term Unit" is used to ...
2
votes
1
answer
3k
views
Salesforce CPQ: Using CPQ API to Reconfigure an existing Bundle in an Amendment?
I'm using the CPQ API to build an integration with our self-service subscription portal. The intent is to allow customers to add and remove products from their existing contract via amendments, as ...