• Anky Kola
  • 0 Points
  • Member since 2021

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

I am trying to create a validation rule where if I pick a country a state would be required.  
Can someone please help me out. (both fields are pick lists)
I have aura component 
<aura:component  implements="flexipage:availableForRecordHome,force:hasRecordId,lightning:actionOverride" access="global">
    <aura:attribute name="PATEST" type="CTPHARMA__Activity__c" />
    <aura:handler name="init" value="{!this}" action="{!c.init}" />  
     <div style="background-color:white">
    <lightning:flow aura:id="PATEST" onstatuschange="{!c.gotoURL}"/>

and controller 
    init : function (component) {
        // Find the component whose aura:id is "flowData"
        var flow = component.find("PATEST");
        // In that component, start your flow. Reference the flow's Unique Name.
gotoURL : function (component, event, helper) {
         if(event.getParam("status") === "FINISHED") {
      var outputVariables = event.getParam("outputVariables");
      var outputVar;
      for(var i = 0; i < outputVariables.length; i++) {
         outputVar = outputVariables[i];
         if(outputVar.name === "redirect") {
            var urlEvent = $A.get("e.force:navigateToSObject");
               "recordId": outputVar.value,
               "isredirect": "true"

onstatuschange="{!c.gotoURL}" works perfectly fine inside desktop Salesforce but on mobile, it is not. It just returns to the first screen of the flow.
Is there any way to redirect to the created with the flow record inside the mobile app?
how to create a tab in feedback object and how to insert the data pls help me
Hi Experts,

I need some assitance with a date formula. I trying to calculate the number of months left between two dates, start and end date. I currently have the folloiwng formula:

(Custom_End_Date__c - today ())/30

Which will give me the number of days left and if I divide the number by 30 and I should get the numbner of months. Unfortunately I am short by one month. For example if I have a end date of 12/01/2015 minus today, 30 July, would give me 124 days. If I divide that by 30 I get 4 months, or more exactly 4.13 months. But from July to Dec is 5 months.

Any assistance would be greatly appreciated.

Hi Everyone,
      Can anyone tell me what is trigger.new, trigger.old and trigger.newmap ,trigger.oldmap
Trigger.oldmap.keyset with sample example

Thanks in advance



I am trying to build a ecommerce portal like ebay. I am using Sites with Customer Portal for authentication. However , I want my guest users to be able to browse entire site without logging in as well . In such a case do I need to expose every VF page as new Site?