", "upvoteCount": 0, "url": "https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000A8xCQSAZ", "datePublished": "2020-02-10T19:52:28.000Z", "author": { "@type": "Person", "name": "Oana Puiu", "url": "https://trailblazers.salesforce.com/profileView?u=0053A00000E7khuQAB", "affiliation": { "@type": "Organization", "name": "Planon Group B,V" } } } ] } } Skip to main content
Hi Guys,

 

I have an error while trying to complete Configure Quote Templates Module.

 

 

 

It says: 

 

"Can't update Price Book. Unexpected exception while validating invocable action requests"

 

 

 

Afterwards, I get an error e-mail saying: (see attachment)

 

 

 

Could you kindly help me with some steps on how I can complete this challenge?

 

Thank you! :) can't update price book
4 answers
  1. Feb 10, 2020, 7:52 PM

    Hi Sunil,

    Thank you for your prompt response. 

    Below, you can find the Apex Class(from developer console). I hope I gave you the correct information. Also, I am a beginner, so I am not sure how to show you the method being invoked. Let me know if this is sufficent information.

    <apex:page applyBodyTag="false" applyHtmlTag="false" standardStylesheets="false" showHeader="false">

     

        <apex:slds />

     

        

     

        <apex:remoteObjects >

     

            <apex:remoteObjectModel name="Property__c" jsShorthand="Property">

     

                <apex:remoteObjectField name="Name" jsShorthand="address"/>

     

                <apex:remoteObjectField name="City__c" jsShorthand="city"/>

     

                <apex:remoteObjectField name="State__c" jsShorthand="state"/>

     

                <apex:remoteObjectField name="Price__c" jsShorthand="price"/>

     

                <apex:remoteObjectField name="Location__Latitude__s" jsShorthand="lat"/>

     

                <apex:remoteObjectField name="Location__Longitude__s" jsShorthand="long"/>

     

            </apex:remoteObjectModel>

     

        </apex:remoteObjects>

     

       

     

        <html>

     

            <head>

     

                <link rel="stylesheet" href="{!URLFOR($Resource.leaflet1,'/leaflet.css')}" />

     

                <style>

     

                    .map {

     

                        height: 480px;

     

                    }

     

                    

     

                    .new-view {

     

                        background-color: #.8B85F9;

     

                    }

     

                    

     

                    .new-favorite {

     

                        background-color: #.53B6D7;

     

                    }

     

                    

     

                    .new-appointment {

     

                        background-color: #.E260AB;

     

                    }

     

                    

     

                    .right {

     

                        text-align: right;

     

                    }

     

                    

     

                    .event-col {

     

                        width: 140px;

     

                    }                

     

                </style>

     

            </head>

     

            <body>

     

                

     

                <div id="app" class="slds-scope"></div>

     

                <script src="{!URLFOR($Resource.leaflet1,'/leaflet.js')}"></script>

     

                <script>

     

                    function getSLDSPath() {

     

                        return "{!URLFOR($Asset.SLDS)}";

     

                    }

     

                    function getRandomNumber(min, max) {

     

                        return Math.floor(Math.random() * (max - min + 1)) + min;

     

                    }

     

                

     

                    function getProperties(callback) {

     

                    

     

                        var property = new SObjectModel.Property();

     

                        var properties;

     

                        

     

                        property.retrieve({limit: 20}, function(error, records, event) {

     

                            if (error) {

     

                                alert(error.message);

     

                            } else {

     

                                properties = [];

     

                                console.log(records);

     

                                records.forEach(function(property) {

     

                                    properties.push({

     

                                        id: property.get("Id"),

     

                                        address: property.get("address"),

     

                                        city: property.get("city"),

     

                                        price: property.get("price"),

     

                                        state: property.get("state"),

     

                                        lat: property.get("lat"),

     

                                        long: property.get("long"),

     

                                        view: getRandomNumber(100, 900),

     

                                        favorite: getRandomNumber(10, 60),

     

                                        appointment: getRandomNumber(0,8)

     

                                    });

     

                                });

     

                                console.log(properties);

     

                                callback(properties);

     

                                

     

                            }

     

                        });

     

                    

     

                    }

     

                    

     

                </script>

     

                

     

                <script src="https://cdn.socket.io/socket.io-1.4.5.js"></script>

     

                <script src="{!URLFOR($Resource.heatmap)}"></script>

     

            

     

            </body>

     

        </html>
0/9000