• Kamal Thakur
  • NEWBIE
  • 355 Points
  • Member since 2017
  • Salesforce Developer

  • Chatter
    Feed
  • 5
    Best Answers
  • 3
    Likes Received
  • 0
    Likes Given
  • 6
    Questions
  • 61
    Replies
knowledge is not in any of my trailhead playgrounds. how do i get it to do trails?
In this project, I verified task 1 that is to create an app called Trailblazer. But in task 2 when I open App Launcher to select Trailblazer it doesn't show me Trailblazer app, I'm unable to move forward in this project.
Iis it possible to download all validation rules to Eclipse? I selected all components when seting up project in Eclipse, but could not see validation rules.
thanks
 
I'm trying to completed the Lightning Experience Customization Trail but the module for "Create and Customize List Views" has a listed link for a Challenge, but there's nothing at the bottom of the page?

List Views Challenge

I've logged out and logged back in, and tried in Chrome and Firefox.  When I check other Modules, I can see/click on the Challenge, but I'm getting nothing for this one, which means I can't complete the Trail.

Can anyone help?  
Hi Team,

Could any one help me with Superbadge: Lightning Experience Rollout Specialist #03 challenge.
I have already installed "Attachment and files" appExchange app but getting the error "Challenge Not yet complete... here's what's wrong: 
The Destination Success.png document hasn't been made available in Lightning Experience."

Thanks,
Rahim
In 'Customizable Campaign Influence' documentation, its written that there are two types of Record Preference for the model - 
1. To create records every time a campaign touches an opportunity, choose All Records.
2. To create records only when the revenue attribution is more than 0%, choose Records With >0% Attribution.

My question is, what exactly is the "Revenue Attribution". How would I know whether a campaign has attribution more than 0%?
I am opening a Lightning App on a button Click (via URL). The App updates Description field on Contact Object. Below is my code -
ConApp
<aura:application >
    <aura:attribute name="id" type="String"/>
	hi {!v.id}
    <c:ConAppCmp conid="{!v.id}" />
</aura:application>

conAppCmp
<aura:component controller="MyControl">
    <aura:attribute name="conObj" type="Contact" />
    <aura:attribute name="conid" type="String"/>
    <p>hi {!v.conid}</p>
    <aura:attribute name="replaceProducts" type="List" default="['red','blue']"/>
    <ui:inputSelect aura:id="levels" label="Available Replacements">
        <aura:iteration items="{!v.replaceProducts}" var="level">
             <ui:inputSelectOption text="{!level}"  value="{!v.conObj.Description}" label="{!level}"/>
        </aura:iteration>
    </ui:inputSelect>
    <lightning:button variant="brand" label="Submit" onclick="{! c.handleClick }" />
</aura:component>

conAppCmpController.js
({
	handleClick : function(component, event, helper) {
		var newAcc = component.get("v.conObj");
        var action = component.get("c.saveRecord");
        action.setParams({ 
        "acc": newAcc
            });
        action.setCallback(this, function(a) {
           var state = a.getState();
            if (state === "SUCCESS") {
                var name = a.getReturnValue();
               alert("hello from here"+name);
            }
        });
         $A.enqueueAction(action)

	}
})

myControl
public with sharing class MyControl {
@AuraEnabled
    public static Contact saveRecord(Contact acc) {
        upsert acc;
        return acc;
    }
}
Button Contains this URL - 
/c/ConApp.app?id={!Contact.Id}

I don't know what is causing the problem.
 
As per the Documentation here, we cannot fire the Validation Rule after WFR's Update Action. Is there any way we can fire the Validation Rule after the WFR's field Update Action?
I am not able to see the "Service Setup" in my Developer Org. 
I enabled Knowledge on Lightning, Created custom text fields called Question and Answer on Articles, created three types of articles: FAQ, Product, and Community and assigned them to respective layout : faqpagelayout, productpagelayout, and communitypagelayout. 

But am still getting an error: 
Challenge Not yet complete... here's what's wrong: 
Didn't find article record types with the following names: FAQ, Product, and Community. Each article record type must be assigned to the correct page layout.​
I reached at this trailhead for sending SMS through Twilio. But I am Getting These Errors while saving the Controller. 
  1. Invalid type: TwilioRestClient
  2. Invalid type: TwilioSMS
  3. Variable does not exist: sms
I am not able to see the "Service Setup" in my Developer Org. 
I enabled Knowledge on Lightning, Created custom text fields called Question and Answer on Articles, created three types of articles: FAQ, Product, and Community and assigned them to respective layout : faqpagelayout, productpagelayout, and communitypagelayout. 

But am still getting an error: 
Challenge Not yet complete... here's what's wrong: 
Didn't find article record types with the following names: FAQ, Product, and Community. Each article record type must be assigned to the correct page layout.​
I reached at this trailhead for sending SMS through Twilio. But I am Getting These Errors while saving the Controller. 
  1. Invalid type: TwilioRestClient
  2. Invalid type: TwilioSMS
  3. Variable does not exist: sms
why we use future callouts ?
Advantage of furture callouts?
give some example using furture callouts?
how will you write in class using furture callouts?
example in furture callouts?
---> can anyone help for this requirements?
  • October 03, 2018
  • Like
  • 0
Help me to create a batch on Contact object.

So I have two Custom Settings (Hierarchy):
1. Contact Score Fields - inside this, it has custom fields with the value of Contact’s field API (example, the custom field is MyField and the value is Score__c)
2. Decay Field - it has custom field of Decay and a value of 3

I have to subtract the two Custom Fields and it will update the Contact’s Score__c field value as the answer.

Thanks in advance for the help!
Hi All,
       My Helper class is given below:-
   /*
 *  Trigger Helper Class to parse image response
 *  Parse Image response From social post
 * */
public without sharing class ContentDocumentLinkTriggerHelper {
    public static List<ContentDocumentLink> newList;
    public static List<ContentDocumentLink> oldList;
    public static Map<Id, ContentDocumentLink> newMap;
    public static Map<Id, ContentDocumentLink> oldMap;
    
    public static Boolean runTrigger = true;
    // method to Parse Image response from social Post
    public static void parseImageResponse(){
        Set<Id> socialPostIds = new Set<Id>(newMap.keySet());
        List<Predictions__c> pdcList = new List<Predictions__c>();
        Set<Id> setLinkId = new Set<Id>();
        for(contentdocumentlink cdl : newList){
            if(String.valueOf((cdl.LinkedEntityId)).startsWith('0ST') && !setLinkId.contains(cdl.LinkedEntityId)){
                String jsonResponse = EinsteenPredictionService.getImagePrediction('test');
                EinsteenPredictionService ep= EinsteenPredictionService.parseImagePrediction(jsonResponse);
                for(EinsteenPredictionService.cls_probabilities result: ep.probabilities) {
                    Predictions__c    pc = new Predictions__c();
                    pc.Label__c = result.label;
                    pc.Probability__c = result.probability;
                    pc.Social_Post__c = cdl.LinkedEntityId;
                    pdcList.add(pc);
                }
                setLinkId.add(cdl.LinkedEntityId);
            }
        }
        //Check Prediction list Has value or not
        if(pdcList.size() > 0){
            insert pdcList; 
        }
    }
}
how to write test class for this helper class?
Any suggestions?

Can any body please answer this question

I am bulding College Management app

Created Objects, feild etc..,

Here i need to write trigger with even called after insert

Examtype is a feild(Picklist Datatype) and external and internal are picklist values.

if examtype is equals to external than perticular student's internal and external marks should take and should caluclate percentage . Need to write SOQL query as well.

Please help on this.

This is one of requirement in our office.



Thanks,
Ram
In 'Customizable Campaign Influence' documentation, its written that there are two types of Record Preference for the model - 
1. To create records every time a campaign touches an opportunity, choose All Records.
2. To create records only when the revenue attribution is more than 0%, choose Records With >0% Attribution.

My question is, what exactly is the "Revenue Attribution". How would I know whether a campaign has attribution more than 0%?
Battle Station is missing from the option to have for "related to" for a master-detail relationship in the object "Battle Station".... any ideas? I have followed all of the steps prior to this step...?
What is Apex process
I have two objects Resolutions and Claims

Resolution has a checkbox type attribute and I need that when it is selected, a field named "State" of the object Claims changes to "Closed"

I have used valuation rules but I have not been able to achieve this, how else can I achieve it without needing to use apex code?

Regards and thanks
Hi Team,

I am trying to create a list in Trigger and adding the values in this list by iterating for loop.
After adding value, i am trying to insert this list out side for.

Things are fine if we are testing.

But when we are scanning our code by CheckMarx, it is saying that 'Need to be bulkify using collection'. 

Am i getting this error because there is limit of 10000 record to insert in trigger?
If yes, then how to proceed with this?

Please Help.

Radhe S




 
Hello I've installed Lightning Connect Quickstart via trailhead. Step 4 says select the External Orders app. Question - where is External Orders app found? After I find it I need to click Set Customer IDs to assign customer ID numbers to the sample account records in my Developer Edition.
I am trying to complete my very first salesforce hands-on training module and I am already stuck... Nice
https://trailhead.salesforce.com/trails/force_com_admin_intermediate/modules/point_click_business_logic/units/formula_fields

1. From Setup, open the Object Manager and click Opportunity.
2. In the left sidebar, click Fields & Relationships.
3. Click New.

There is no "New" button.  What am I missing?

Screen shot
hello
plz direct me with sutable workflow to this question.
1.The sales VP wants to know about any cases filed for top accounts, where top accounts are determined by size and revenue.
plz tell me all the steps.

Hi all,

I'm not very familiar with SF and I was wondering if anyone out there could help me. 

I've created a junction object to link my opportunities to multiple assets. I'm looking for a way to create a button (and a visualforce page) that will allow me to add multiple junction records at once, just like how opportunity products/line items works. It would be AMAZING if I could also limit the results brought up by being able to filter by location (account type), client (account type) or any other criteria. 

I found a few answers here but one was a trigger script for after a bulk upload and I wasn't sure how to adapt that.

Thanks for any help!

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: DHWCNZEJ.
please reply how can i solve this.
Hi All,

We have a scenario in which we are creating case on creation of a Custom Object (assume ABC) , We have set the OWD of the case to Private and we are sharing(Read/Write) the Case to all Users of Specific profile with Sharing Rules. All is good till now.

But we have a scenario where we need to create notes and attach to the Case (Linked to record of Object ABC) when a particular action is performed on record of object ABC. We are able to Create Notes and attach to the Case and as Admin we are able to see the Notes , but Users in other profile are unable to see the Notes on the Case. On Profile i dont see any permission to control the access to Notes.

Can you please suggest do we have any settings that we will take care of this access to Case Notes?

Thanks in Advance!
 
knowledge is not in any of my trailhead playgrounds. how do i get it to do trails?
So maybe I'm missing something here, but I was working through the Create and Customize List Views section of the Lightning Experience Customization and the Challenge section is missing. I tried logging out, then back in and checked several browsers with no luck. Anyone else experience this problem. Here's a screenshot:
User-added image
I've read many postings about using Eclipse with the Force.com IDE to orchestrate the deletion of Apex triggers and classes in production. However, within the Developer Workbench (Info-->Metadata Types & Components), I can select my class or trigger, hover over its Id, and delete the object. When I do this in my sandbox, I can confirm that the class and trigger were indeed deleted (that is, they aren't visible any longer in the UI). Is it possible that deleting classes and triggers can be this simple in Production? I feel like this is a trap! By the way, I did confirm that when I log into the workbench attached to my prod environment, I *do* still have the delete option. I'm just nervous to pull the, um, trigger. Has anybody tried this? What, exactly, am I deleting?