• Rahul Sharma 380
  • NEWBIE
  • 24 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 9
    Replies
I have translated some object field's picklist values in various languages (like Spanish, Portuguese etc.) using Translation Workbench in Sandbox. Now I want to migrate these translations to Production. How can I deploy these changes to Sandbox using ANT migration tool? 
Hi,
I need to know what will happen when a synchronous method called inside a fututre method. Will it run synchronously or it will also start its execution in asynchronous manner. Also please tell me what will happen if the called method is having any return type?
Thanks
Example:
@future
static void myFutureMethod(List<String> params) {
    // call synchronous method
    mySyncMethod(params);
}
Can we insert related record on child object using before insert trigger on parent object. How can I populate parent record id on child record alternatively in before insert trigger itself even it is not generated yet?
I want to generate child record related with parent record when new parent record is created. But I need to do this thing in before insert trigger only because some validations also need to be performed before inserting parent record. How can I achieve this?
Hi,
I need to know what will happen when a synchronous method called inside a fututre method. Will it run synchronously or it will also start its execution in asynchronous manner. Also please tell me what will happen if the called method is having any return type?
Thanks
Example:
@future
static void myFutureMethod(List<String> params) {
    // call synchronous method
    mySyncMethod(params);
}
Can we insert related record on child object using before insert trigger on parent object. How can I populate parent record id on child record alternatively in before insert trigger itself even it is not generated yet?
I want to generate child record related with parent record when new parent record is created. But I need to do this thing in before insert trigger only because some validations also need to be performed before inserting parent record. How can I achieve this?
What is a method for adding content to Salesforce CRM content? (2 answers)
a.            Attachments
b.            Chatter files
c.             Libraries
d.            Documents
 
I created a new class 'RemindOpptyOwners' per the Trailhead tutorial on Apex Scheduler, but the code will not compile, because
 
'Variable does not exist: TaskUtils'
Here is the code I have:
 
global class RemindOpptyOwners implements Schedulable {

    global void execute(SchedulableContext ctx) {

        List<Opportunity> opptys = [SELECT Id, Name, OwnerId, CloseDate
            FROM Opportunity
            WHERE IsClosed = False AND
            CloseDate < TODAY];
        // Create a task for each opportunity in the list
        TaskUtils.remindOwners(opptys);
    }
}

I transcribed this code at first, but then copied and pasted directly into the Dev console and got the same error. Why is TaskUtils not being recognized?

API Version: 37.0
 
Challenge - Create a form to enter new items and display the list of items entered. To make our camping list look more appealing, change the campingHeader component to use the SLDS. Similar to the unit, style the Camping List H1 inside the slds-page-header. Modify the campingList component to contain an input form and an iteration of campingListItem components for displaying the items entered.
The component requires an attribute named items with the type of an array of camping item custom objects.
The component requires an attribute named newItem of type Camping_Item__c with default quantity and price values of 0.
The component displays the Name, Quantity, Price, and Packed form fields with the appropriate input component types and values from the newItem attribute.
The JavaScript controller checks to ensure that the Name, Quantity and Price values submitted are not null.
If the form is valid, the JavaScript controller pushes the newItem onto the array of existing items, triggers the notification that the items value provider has changed, and resets the newItem value provider with a blank sObjectType of Camping_Item__c.


My answer - 
<aura:component >
<aura:attribute name="items" type="Camping_Item__c[]"/>
<aura:attribute name="newitem" type="Camping_Item__c[]"  default="{ 'sobjectType': 'Camping_Item__c',
                   'Quantity__c'=0, 'Price__c'=0}"/>
 <p>Name:
        <ui:inputText value="{!v.newitem.name}"/>
    </p>    
  <p>Packed:
        <ui:inputCheckbox value="{!v.newitem.Packed__c}"/>
     
    </p>    
  <p>Price:
        <ui:inputCurrency value="{!v.newitem.Price__c}"/>
    </p>
    <p>Quantity:
        <ui:inputNumber value="{!v.newitem.Quantity__c}"/>
    </p>
</aura:component>


Error -

Challenge Not yet complete... here's what's wrong: 
The campingList component isn't iterating the array of 'items' and creating 'campingListItem' components.

Please share the correct solution.
Hi, I am having trouble with the "Attributes and Expressions" module from trailhead.

Here is the challenge:
Create a Lightning Component to display a single item for your packing list.
  • Create a component called campingListItem that displays the name (ui:outputText) and the three custom fields using the appropriate output components.
  • Add an attribute named 'item' for type Camping_Item__c.
I created an component named campingListItem and this is the code:
<aura:component >
    <aura:attribute name="item" type="<my_domain>__Camping_Item__c"/>
    
    <ui:outputText value="{!v.item.Name}"/>
    <ui:outputCheckbox value="{!v.item.<my_domain>__Packed__c}"/>
    <ui:outputCurrency  value="{!v.item.<my_domain>__Price__c}"/>
    <ui:outputNumber value="{!v.item.<my_domain>__Quantity__c}"/>
</aura:component>

The error that I am getting is: "Challenge Not yet complete... here's what's wrong: 
The packingListItem Lightning Component's attribute tag doesn't exist or its attributes are not set correctly."

With this, I tried to create another component, with the name "packingListItem", but It didn't work.

Can anyone help me?

Thanks,
Hi,
What’s the maximum batch size in a single trigger execution ?
Hi,
Can any one help me with an example of a standard object that’s also junction object in salesforce.

Thanks in Advance

i not understanding usage of junction object .

Please explain usage and how to create junction object with a example