• mahamed raheem
  • NEWBIE
  • 30 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 10
    Questions
  • 9
    Replies
Am doing contract amending using salesforce provided Contract Amender API, While doing contract amending Quote object is required to delete permissions.
in my scenario, some of the users are not having Quote delete permission and we can't give the delete permissions for those users.
As per the salesforce provided documentation Delete on quote object permission is required.
Please help me on this issue Are there any alternative solutions for bypass the quote object delete permissions and run the contract amending.

Please find below the apex code:


public  class ContractAmender {
    public QuoteModel load(String contractId) {
        String quoteJSON = SBQQ.ServiceRouter.load('SBQQ.ContractManipulationAPI.ContractAmender', contractId, null);
        return (QuoteModel) JSON.deserialize(quoteJSON, QuoteModel.class);
    }
}
             
             ContractAmender amender = new ContractAmender();
               // QuoteModel quote = amender.load(sub.contract);
               QuoteModel quote = amender.load('8003C0000006fWi'); // passing contract Id


thanks in advance

 
I have to refresh the LWC component not the complete page
My scenario is once the record is updated i have to refresh the component.
i have tried below but its not working,

 eval("$A.get('e.force:refreshView').fire()");

My LWC component on the service console page
I have to display fields on condition-based

if type equals text then I have to display text fields

  <template for:each={questions} for:item="qs">
            <div key={qs}>
        <template if:true={qs.type='multiselect'}>
                           
            <lightning-dual-listbox name="duallist" label="multiselect" source-label="Available" selected-label="Selected"
            options={options}
            onchange={handleMultiselectChange}></lightning-dual-listbox>
        </template>
        <template if:true={qs.type='dropdown'}>           
            <lightning-combobox name="combobox" label="dropdown" value={value} placeholder="Select" options={options}
            onchange={handleDropdownChange} ></lightning-combobox>
        </template>   
            <template if:true={qs.type='checkbox'}>                
                <lightning-input type="checkbox" label="checkbox" name="checkbox"></lightning-input>
              </template>
              
              <template if:true={qs.type='text'}>
                <lightning-input type="text" label="text" name="text"></lightning-input>
              </template>
            </div>
            </template>>


Please help me on this
Navigate to another LWC component in the sites page
I have tried below but it's not working

import { LightningElement,track,wire} from 'lwc';
import { NavigationMixin } from 'lightning/navigation'; 
export default class Request_GeneralInfo_lwc  extends NavigationMixin(LightningElement) {



// button click 
ContinueReview(event){
this[NavigationMixin.Navigate]({
            type: 'comm__namedPage',
            attributes: {
                pageName: 'c__request_Review_LWC'
            },
            state: {
                'category': 'param1value'
               }
        });
}

In this scenario, I have to navigate request_Review_LWC lwc component in the sites page
List<sobject> tmpOutput = (list<sobject>)JSON.deserialize(str,list<sobject>.class);
[temOutput-->contains one secnario account object and another scenario contains custom objects ]
how to insert sobject list values 
in my secnario i need to insert all custom and standard
objects records   at time in dynamically
Hi,
I have to navigate LWC to Aura component, so in this scenario how to pass recordId LWC to aura component
can any one help me on this.
When Am Authorize an Org From VS Code getting Error like "http://localhost:1717"

please help me on this issue.
thanks in Advance 
User-added image
Challenge Not yet complete... here's what's wrong: 
There was an unexpected error while verifying this challenge. Usually, this is due to some pre-existing configuration or code in the challenge Org. We recommend using a new Developer Edition (DE) to check this challenge. If you're using a new DE and seeing this error, please post to the developer forums and reference error id: PGHBFJOE

above error am getting while completing the "Session-Based Permission Sets and Security
Activate Session-Based Permission Sets Without Code"  challenge
how to create a banners in record detail page layout a bove buttons like save, cancel
Is there any options for  Banners in Record Detail page layout
Record detail page change the owner name it goes to home page not to record detail page. it happens only some systems  please help me.
I have to display fields on condition-based

if type equals text then I have to display text fields

  <template for:each={questions} for:item="qs">
            <div key={qs}>
        <template if:true={qs.type='multiselect'}>
                           
            <lightning-dual-listbox name="duallist" label="multiselect" source-label="Available" selected-label="Selected"
            options={options}
            onchange={handleMultiselectChange}></lightning-dual-listbox>
        </template>
        <template if:true={qs.type='dropdown'}>           
            <lightning-combobox name="combobox" label="dropdown" value={value} placeholder="Select" options={options}
            onchange={handleDropdownChange} ></lightning-combobox>
        </template>   
            <template if:true={qs.type='checkbox'}>                
                <lightning-input type="checkbox" label="checkbox" name="checkbox"></lightning-input>
              </template>
              
              <template if:true={qs.type='text'}>
                <lightning-input type="text" label="text" name="text"></lightning-input>
              </template>
            </div>
            </template>>


Please help me on this
Navigate to another LWC component in the sites page
I have tried below but it's not working

import { LightningElement,track,wire} from 'lwc';
import { NavigationMixin } from 'lightning/navigation'; 
export default class Request_GeneralInfo_lwc  extends NavigationMixin(LightningElement) {



// button click 
ContinueReview(event){
this[NavigationMixin.Navigate]({
            type: 'comm__namedPage',
            attributes: {
                pageName: 'c__request_Review_LWC'
            },
            state: {
                'category': 'param1value'
               }
        });
}

In this scenario, I have to navigate request_Review_LWC lwc component in the sites page
Hi,
I have to navigate LWC to Aura component, so in this scenario how to pass recordId LWC to aura component
can any one help me on this.
Hi All,
If any one finds difficulties in passing this challenge plz make changes in the VF page:
<apex:outputText value="{!sampleMergeField1}"/> <apex:outputText value="{!HTMLENCODE(sampleMergeField2)}" escape="false"/> <apex:outputText > {!sampleMergeField3} </apex:outputText> <script> document.write('{!JSINHTMLENCODE(sampleMergeField4)}'); </script> {!sampleMergeField5} <script> var x = '{!JSENCODE(sampleMergeField6)}'; </script> <apex:outputLabel value="{!HTMLENCODE(sampleMergeField7)}" escape="false"/>

Thanks,
Ram
  • January 09, 2017
  • Like
  • 2
Error
Step not yet complete... here's what's wrong:
There was an unexpected error in your org which is preventing this assessment check from completing: System.EmailException: SendEmail failed. First exception on row 0; first error: REQUIRED_FIELD_MISSING, Either the plain text body or html body must be supplied.: []
Note: you may run into errors if you've skipped previous steps.


 

hi 

i have a vf page for my contract object and how do i get sharing button on to this vf page , i have tried the way how i gave edit and save but it does not work . And one more thinng i can see sharing button on my standard page

  • May 10, 2012
  • Like
  • 0