• Karim Laphroaig
  • 0 Points
  • Member since 2023

  • Chatter
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
  • 6
Hi guys,

Would it  be possible to allow users ranking the picklist values (car models in this case) of a lead/opportunity ?

edit picklist values order

Is it
While clickiing lightning button (Toggle), it has woring only 2 times and after not executing properly.

Component Code : 
<aura:component implements="flexipage:availableForRecordHome,force:hasRecordId" access="global" >
    <aura:attribute name="buttonLabel" type="String" default="Search Button"/>
    <aura:attribute name="newLabel" type="String" default="New Button"/>
    <aura:attribute name="isNewAvailable" type="Boolean" default="false"/>
    <aura:attribute name="CarTypes" type="String[]" default="All Types,Sport Car,Luxury Car,Van"/>
    <aura:handler name="init" value="{!this}" action="{!c.doInit}"/>
    <lightning:layout horizontalAlign="center">
        <lightning:layoutItem padding="around-medium">
            <lightning:select name="selectItem " aura:id="CarType" label="All Types" variant="label-hidden" > 
                <option value="" text="All Types"/>
                <aura:iteration items="{!v.CarTypes}" var="CarType">
                    <option value="{!CarType}" text="{!CarType}"/>
            <lightning:button label="{!v.buttonLabel}" onclick="{!c.onSearchClick}" variant="brand"/>
            <lightning:button variant='neutral' label="Toggle Button" onclick="{!c.toggleButton}" />
            <aura:if isTrue="{!v.isNewAvailable}">    
                <lightning:button variant='neutral' label="{#v.newLabel}"/>
                <aura:set attribute="else">
                    New button cannot be added here
Controller Code : 
    onSearchClick : function(component, event, helper) {
        helper.handlerOnSeearchClick(component, event, helper)
    toggleButton : function(component, event, helper) {
        var CurrentValue = component.get("v.isNewAvailable");
        console.log('Method is exicuted');
            console.log('New value--1'+CurrentValue);
             console.log('New value--2'+CurrentValue);
    doInit : function(component, event, helper) {
        var CarTypes = component.set("v.CarTypes");
        component.set("v.CarTypes", ['Sport Car','Luxury Car','Van']);
Helper Code : 
    handlerOnSeearchClick : function(component, event, helper) {
        alert('Search Button was clicked');

this is my complete code, Kindly suggest how to resolve this type of Issues.
Below is the O/P of my my code.
O/P of Toggle button aftr clicking 5 times
Hi All,

I am tring to authorize an org on visual studio code but when I am trying authorize it, I am getting the below error.

SFDX: Authorize an Org failed to run
Try this:
Kill the process running on port 1717 or use a custom connected app and update OauthLocalPort in the sfdx-project.json file.
19:31:13.241 sfdx force:auth:web:login --setalias VSCodePlayground --instanceurl https://login.salesforce.com --setdefaultusername ended with exit code 1

I have Killed the Process on port 1717 and tried it again then I am not getting any error but it is running for infinite time. 

Please help.

Hello Helpers 

I can not complate  "Configure Quote Templates and Track Contracts"  in Trailhead

I  have problem implementeing this point in the requirement
Create a quote and name it Diesel Generator and Installation for Edge

Quote ogject(SBQQ__Quote__c) Name field () is an autonumber  and  It can not be changed

There is no option  to manually set a Quote name

any idea?
Can anyone point me in the right direction of how I can pull the abandon cart information from Shopify and load it into a data extension in Salesforce Marketing Cloud?

Any help would be greatly appreciated!
I have a Raspberry Pi setup as a web server, which can control power outlets. I currently just have a webpage which I can specify the device, amount of time,  on/off and a password. This is controlled using a Python script.

At first, I was just using variables in the URL, but now I have a simple, more user-friendly index page, which POSTs the variables to the same Python script.

But my end goal isn't to manually control the power from the webpage. I would like to use the REST API to automatically send a POST command to the Pi, to turn on a power outlet which has a light connected to it. So when a 'P1' case comes in from a client, Salesforce instantly turns a beacon light on in the office.

I know this is possible, and believe it should be faily straight forward now I have the POST setup, but I don't have much experience in programming, and none using APIs. I also don't have direct access to the Salesforce config side either, so I want to try and learn how everything works first before giving it to the admin.

I have done some research, but can only really find info on posting to Salesforce, rather than posting from Salesforce. We already have email alerts on new cases, so I don't think it could be too different from that.

Any ideas on where to start?