• sevindu
  • NEWBIE
  • 95 Points
  • Member since 2018


  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 20
    Questions
  • 7
    Replies
I am getting this error when using ANT.

UserName:lwcdx@lwcdx.com
Password:Test@123

"Invalid username, password, security token; or user locked out"

Plz help
User-added image
I tried authorizing the project using dev 
I was creating an unmanage package  and while  I was installing the package to my Dev org I am getting the following error.

User-added imageI have a object specific action in User story object  as follow

User-added image

When I tried to add the component in the package under actions, this action is not displaying.
User-added image

How can I change the above interface from radio buttons to check boxes? Where can I change 
User-added image

I have created two LWC component and in my prop.html I want to add lWC component.

<template>
    <ligthning-input label="percentage" type="number" min="0"
    max="100" value={percentage} onchange={changepercent}></ligthning-input>   
    <c-lwc percentage={percentage}></c-lwc>
</template>

When I try to push this to my scratch org I am getting the following error

User-added image

I am new to LWC
What is the easy way to retrieve all the components within a custom application and deploy to a seperate org. I used VS code but I had put every component in to the package xml file. Is there a ways that I can retrieve the full packagexml fiel of a app with all components.
I created a public dashboard folder and created a dashboard in lightning and tried to retrieve using ant but following error comes

package.xml - Entity of type 'Dashboard' named 'Test/Sales_Operations' cannot be found

<types> 
        <members>Test/Sales_Operations</members>
        <name>Dashboard</name>
    </types>

**Dashboard name is Sales Operation I used "_" in the package.xml

But when I create the dashboard in classic , it is retrieving correctly
After adding new components to the package should I repackage it to a new version or will the new components reflect in older versions of the pacakage?
I am doing syncronous callout when a quick action is called and it update a field in the record. And also a after insert tirgger that invokes queable apex which also makes a callout and update the record.After synchronous callout update the record successfully I have to refresh the record page 2 or 3 times to see the update value. How to speed up this refresh process.
  • September 25, 2019
  • Like
  • 0
Please help me on this step 
User-added image

1. .Dataflow Name: Load Seed Bank Agencies w/Climate Data

User-added image
{
  "Add Temp Class": {
    "action": "computeExpression",
    "parameters": {
      "source": "Filter 2015",
      "mergeWithSource": true,
      "computedFields": [
        {
          "defaultValue": "\"Continental\"",
          "name": "TempClass",
          "saqlExpression": "case\nwhen Temperature > 85 then \"Tropical\"\nwhen Temperature >= 51 && Temperature <=85 then \"Continental\"\nwhen Temperature >=25 && Temperature <=50 then \"Cool\"\nelse \"Polar\"\nend",
          "label": "TempClass",
          "type": "Text"
        }
      ]
    }
  },
  "Filter Agency Records": {
    "action": "filter",
    "parameters": {
      "filter": "IsAgency:EQ:TRUE",
      "source": "ID Agency Records"
    }
  },
  "Load Account": {
    "action": "sfdcDigest",
    "parameters": {
      "fields": [
        {
          "name": "AccountNumber"
        },
        {
          "name": "Name"
        },
        {
          "name": "Phone"
        },
        {
          "name": "ShippingCity"
        },
        {
          "name": "ShippingCountry"
        },
        {
          "name": "ShippingState"
        },
        {
          "name": "ShippingStreet"
        },
        {
          "name": "ShippingPostalCode"
        }
      ],
      "object": "Account"
    }
  },
  "Create Seed Bank Agencies": {
    "action": "sfdcRegister",
    "parameters": {
      "name": "Create Seed Bank Agencies",
      "alias": "Create_Seed_Bank_Agencies",
      "source": "Augment TempClass"
    }
  },
  "Load Climate": {
    "action": "edgemart",
    "parameters": {
      "alias": "Global_Climates"
    }
  },
  "Add Agency Fields": {
    "action": "augment",
    "parameters": {
      "right_key": [
        "AccountNumber"
      ],
      "left": "Load Account",
      "left_key": [
        "AccountNumber"
      ],
      "right_select": [
        "Currency",
        "Acres",
        "Latitude",
        "Longitude",
        "SubRegion"
      ],
      "right": "Load Agency Detail",
      "relationship": "AgencyDetail",
      "operation": "LookupSingleValue"
    }
  },
  "Filter 2015": {
    "action": "filter",
    "parameters": {
      "filter": "Date_Year:EQ:2015",
      "source": "Load Climate"
    }
  },
  "Augment TempClass": {
    "action": "augment",
    "parameters": {
      "right_key": [
        "ShippingCountry"
      ],
      "left": "Add Temp Class",
      "left_key": [
        "Country"
      ],
      "right_select": [
        "AccountNumber",
        "AgencyDetail.Acres",
        "AgencyDetail.Currency",
        "AgencyDetail.Latitude",
        "AgencyDetail.Longitude",
        "AgencyDetail.SubRegion",
        "IsAgency",
        "Name",
        "Phone",
        "ShippingCity",
        "ShippingPostalCode",
        "ShippingCountry",
        "ShippingState",
        "ShippingStreet"
      ],
      "right": "Filter Agency Records",
      "relationship": "Climate",
      "operation": "LookupSingleValue"
    }
  },
  "Load Agency Detail": {
    "action": "edgemart",
    "parameters": {
      "alias": "Agency_Detail"
    }
  },
  "ID Agency Records": {
    "action": "computeExpression",
    "parameters": {
      "source": "Add Agency Fields",
      "mergeWithSource": true,
      "computedFields": [
        {
          "name": "IsAgency",
          "saqlExpression": "case when Phone  is not null then \"TRUE\" else \"FALSE\" end",
          "label": "IsAgency",
          "type": "Text"
        }
      ]
    }
  }
}
Close
Search nodes...
hidden

2. New Dataflow Name - Load Seed Bank w/Temperature Classification

User-added image
{
  "Add Temp Class": {
    "action": "computeExpression",
    "parameters": {
      "source": "Define Temp Range",
      "mergeWithSource": true,
      "computedFields": [
        {
          "name": "TempKey",
          "saqlExpression": "case \nwhen LowTemp < 25 and HighTemp < 25 then \"Polar\" \nwhen LowTemp >= 25 and LowTemp <= 50 and HighTemp >= 25 and HighTemp <= 50 then \"Cool\"\nwhen LowTemp >= 51 and LowTemp <= 85 and HighTemp >= 51 and HighTemp <= 85 then \"Continental\"\nwhen LowTemp > 85 and HighTemp > 85 then \"Tropical\"\nwhen LowTemp < 25 and (HighTemp >= 25 and HighTemp <= 50) then \"Polar-Cool\" \nwhen LowTemp < 25 and (HighTemp >= 25 and HighTemp <= 85) then \"Polar-Cool-Continental\" \nwhen LowTemp < 25 and HighTemp > 85 then \"Polar-Cool-Continental-Tropical\" \nwhen (LowTemp >= 25 and LowTemp <= 50) and (HighTemp >= 51 and HighTemp <= 85) then \"Cool-Continental\" \nwhen (LowTemp >= 25 and LowTemp <= 50) and HighTemp >= 85 then \"Cool-Continental-Tropical\" \nwhen (LowTemp >= 51 and LowTemp <= 85) and HighTemp > 85 then \"Continental-Tropical\" \nend",
          "label": "TempKey",
          "type": "Text"
        }
      ]
    }
  },
  "Calculate Acreage": {
    "action": "computeExpression",
    "parameters": {
      "source": "Load Seed Chart",
      "mergeWithSource": true,
      "computedFields": [
        {
          "precision": 18,
          "name": "Acreage",
          "saqlExpression": "(Seeds_Pound*Spacing)/6272640",
          "scale": 6,
          "label": "Acreage",
          "type": "Numeric"
        }
      ]
    }
  },
  "Create Seed Bank": {
    "action": "sfdcRegister",
    "parameters": {
      "name": "Create Seed Bank",
      "alias": "Create_Seed_Bank",
      "source": "CleanUp"
    }
  },
  "Load Seed Chart": {
    "action": "edgemart",
    "parameters": {
      "alias": "Seed_Chart"
    }
  },
  "Augment Temp Class": {
    "action": "augment",
    "parameters": {
      "right_key": [
        "TempKey"
      ],
      "left": "Load Temp Class Mapping",
      "left_key": [
        "TempClass"
      ],
      "right_select": [
        "Temperature",
        "Seed_ID",
        "Seed",
        "Lifecycle",
        "Seed_Type",
        "Quantity_Pounds",
        "Seeds_Pound",
        "Spacing",
        "Acreage",
        "TempKey"
      ],
      "right": "Add Temp Class",
      "relationship": "Climate",
      "operation": "LookupSingleValue"
    }
  },
  "Load Temp Class Mapping": {
    "action": "edgemart",
    "parameters": {
      "alias": "Temperature_Classes_Mapping"
    }
  },
  "CleanUp": {
    "action": "sliceDataset",
    "parameters": {
      "mode": "drop",
      "source": "Augment Temp Class",
      "fields": [
        {
          "name": "TempClass"
        },
        {
          "name": "TempKey"
        }
      ]
    }
  },
  "Define Temp Range": {
    "action": "computeExpression",
    "parameters": {
      "source": "Calculate Acreage",
      "mergeWithSource": true,
      "computedFields": [
        {
          "defaultValue": "0",
          "precision": 18,
          "name": "HighTemp",
          "saqlExpression": "string_to_number(substr(Temperature,4,5))",
          "scale": 2,
          "label": "HighTemp",
          "type": "Numeric"
        },
        {
          "defaultValue": "0",
          "precision": 18,
          "name": "LowTemp",
          "saqlExpression": "string_to_number(substr(Temperature,1,2))",
          "scale": 2,
          "label": "LowTemp",
          "type": "Numeric"
        }
      ]
    }
  }
}
Close
Search nodes...
hidden

​​​​​​​
I am stuck with the step 6 in the superbagde. Please help me
I am getting the following error in Monitor Tab when dataflow run. I am creating the isAgency derieved field using a "ComputeExpression" node for the superbatch


Something went wrong while executing the ID Agency Records node: invalid field expression for field 'IsAgency': Syntax Error at position [line 1: column 33] after token True :: ;is null "True" else "False" ; (02K2v000000QGzuEAG_03C2v000000tzMYEAY)


User-added image

User-added image

User-added image

Above a the steps that I followed.What would be the issue here?
 
I have a issue with the GeoJSON file created from the python script. When tryign to upload the file gives me this error. In the script it write to a json file there for should I upload the json file or a GeoJSON file

User-added image
I am currently using following method to get authorization code
############################
public PageReference sync(){ 
        
        settings = ConstantContactSettings.getData();
        
        PageReference ref = new PageReference(ConstantContactConstants.AUTH_ENDPOINT+
                                             'client_id='+settings.ClientID__c+
                                             '&redirect_uri='+settings.Redirect_URL__c+
                                             '&scope='+ConstantContactConstants.SCOPE+
                                             '&response_type='+ConstantContactConstants.RESPONSE_TYPE);
        
        return ref;
    }
#######################

Issue is it refreshes the page. How can I use HttpGet Callout instead of this approach and how to add query parameters to endpoint URL?
How to bind heirarchy custom setting to a inputfield in visualforce page?
What is the method that is used by constant contact to send response to integrated system when an event occures from constant contact side?
User-added image

Execution of the above code causes a,a,a as output. Why property get initialized firt event it is haiving a get;?
What is the difference between entity definition and field definition in custom metadata types?
User-added image

User-added image
User-added image

I am getting the above error, How can I solve and what is the issue?
User-added image

I am getting the above error when trying to push to scratch org. Can some one point out the error please?
I am currently using following method to get authorization code
############################
public PageReference sync(){ 
        
        settings = ConstantContactSettings.getData();
        
        PageReference ref = new PageReference(ConstantContactConstants.AUTH_ENDPOINT+
                                             'client_id='+settings.ClientID__c+
                                             '&redirect_uri='+settings.Redirect_URL__c+
                                             '&scope='+ConstantContactConstants.SCOPE+
                                             '&response_type='+ConstantContactConstants.RESPONSE_TYPE);
        
        return ref;
    }
#######################

Issue is it refreshes the page. How can I use HttpGet Callout instead of this approach and how to add query parameters to endpoint URL?
User-added image
I tried authorizing the project using dev 
User-added image

How can I change the above interface from radio buttons to check boxes? Where can I change 
What is the easy way to retrieve all the components within a custom application and deploy to a seperate org. I used VS code but I had put every component in to the package xml file. Is there a ways that I can retrieve the full packagexml fiel of a app with all components.
I created a public dashboard folder and created a dashboard in lightning and tried to retrieve using ant but following error comes

package.xml - Entity of type 'Dashboard' named 'Test/Sales_Operations' cannot be found

<types> 
        <members>Test/Sales_Operations</members>
        <name>Dashboard</name>
    </types>

**Dashboard name is Sales Operation I used "_" in the package.xml

But when I create the dashboard in classic , it is retrieving correctly
I have a issue with the GeoJSON file created from the python script. When tryign to upload the file gives me this error. In the script it write to a json file there for should I upload the json file or a GeoJSON file

User-added image
How to bind heirarchy custom setting to a inputfield in visualforce page?
User-added image

User-added image
User-added image

I am getting the above error, How can I solve and what is the issue?