• Firas Taamallah 12
  • NEWBIE
  • 0 Points
  • Member since 2020

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 13
    Questions
  • 13
    Replies
Hi , 

Please take a look at this screenshot , users can't select record while trying to edit account record

Have you any suggestionsRT
Hi ,

When i try to add product to quote line item i want the product code to be sorted in alphabetical order
qli
Does anyone can help me in that
Hi Devs ,

I want to send custom object details via mail like below ; 

Data should be receivedI don't need to create VF page as i won't send it as page , i want to send records in tableview as shown in screenshot

Does anyone have an idea?

Thanks,
Firas
Hi , 

I want to retrieve records from my custom list view in Contact object 
Can anyone help me ? 

Select id, Name from Contact where ... 
Hi ,

I created validation rule on Contact ; 

OR(ISBLANK(MobilePhone),ISBLANK(Phone))

Users start receiving error saving records on other objectvr
Why ?
Hi ,
  • User enter on Quote (Quote ID XYZ) with 3 different lines (500 Units with total amount 500€/1000 Units with Total amount 800€/1500 Units with Total amount 1050€)
  • My report is showing  3 records with total amount of 2350€, but what i want to see is 1 record only with the minimum quantity quoted – 500€
Does any one have any idea ? how to achieve this?
 
Thanks,
Firas
Hi ,
 
Does anyone have an idea on how to display  Product code in quote line item in alphabetical order ?
Please see screenshot
qli
Hi ,

I want to create a validation rule on contact so  Mobile or phone should not be empty when saving a contact ?

Doesn anyone have an idea on how to achieve this?
Thanks,
Firas
public enum XAP_DAO_DML_OperationTypeEnum {
	CREATE,     // Insert
	MODIFY,     // Update
	REMOVE,     // Delete
	RESTORE     // Undelete  
        
}
How to cover this class?
 
I want to query all opportunities or quotes that have order assigned to it
How can i achieve this?

Thanks,
Firas
I runned this soql to find Account with opportunitie with orders  :
 
SELECT
  Name,
  (SELECT
    LastModifiedDate, CreatedDate, StageName,Name
   FROM 
   Opportunities),
   (SELECT
     OrderNumber
    FROM
     Orders)
FROM 
  Account

I found data :

DataBut when i tried to use report in salesforce , i couln't find that opportunities which is related to that account

noDataDoes anyone have  an explanation please?
Hi ,

I've created a report type to related Quotes ( opportunities ) with Orders 
But when trying to create a report based on that report , i couldn't find data .. 

In Salesforce , i can find data but not in the report 
Why ?

Thanks in advance,
Firas
 
Lightning component : 
 
<aura:component implements="flexipage:availableForRecordHome,force:hasRecordId" controller="SaveFormVisitReport" >
<aura:attribute name="recordId" type="String" />
<aura:attribute name="selectedLookUpRecords" type="Contact" default="[]"/>
<aura:attribute name="selectedLookUpRecords1" type="User" default="[]"/>
<aura:attribute name="newRecord" type="Visit_Report__c" default="{ 'sobjectType': 'Visit_Report__c',                                                                      'Visit_Type__c':'',                                                                        'Contact__c':'',                                                                        'User__c':'',                                                                       'Account__c':'',                                                                       'Comments__c':''}"/>
 <lightning:recordEditForm aura:id="myform" objectApiName="Visit_Report__c" onsubmit="{!c.handleSubmit}">
<lightning:messages />
<lightning:inputField fieldName="Visit_Type__c" aura:id="type"/>   
<lightning:inputField fieldName="User__c" aura:id="user"/> 
<c:reUsableMultiSelectLookup objectAPIName="Contact"
                               IconName="standard:contact"
                               lstSelectedRecords="{!v.selectedLookUpRecords}"
                               label="Contact Name" aura:id="cont"/>
<c:reUsableMultiSelectLookup objectAPIName="User"
                               IconName="standard:User"
                               lstSelectedRecords="{!v.selectedLookUpRecords1}"
                               label="Assigned to" aura:id="user"/> 
<lightning:inputField fieldName="Account__c" aura:id="acc"/> 
<lightning:inputField fieldName="Comments__c" aura:id="comm"/>
<lightning:button
                class="slds-m-top_small"
                type="submit"
                label="Create new">
</lightning:button>
</lightning:recordEditForm>
</aura:component>

Controller JS :
 
handleSubmit: function(component, event, handler) {
      var input1 = component.get("v.selectedLookUpRecords");
      var input2 = component.get("v.selectedLookUpRecords1");
      component.find('cont').set('v.value', input1);
      component.find('acc').set('v.value', input2);
      component.find('myform').submit();
    }

Contact and user haven't been saved - Please note c:reUsableMultiSelectLookup is another lightning component , it's goal : user be able to select multi records on lookup field

Form
Hi , 

Please take a look at this screenshot , users can't select record while trying to edit account record

Have you any suggestionsRT
Hi ,

When i try to add product to quote line item i want the product code to be sorted in alphabetical order
qli
Does anyone can help me in that
Hi , 

I want to retrieve records from my custom list view in Contact object 
Can anyone help me ? 

Select id, Name from Contact where ... 
Hi ,
  • User enter on Quote (Quote ID XYZ) with 3 different lines (500 Units with total amount 500€/1000 Units with Total amount 800€/1500 Units with Total amount 1050€)
  • My report is showing  3 records with total amount of 2350€, but what i want to see is 1 record only with the minimum quantity quoted – 500€
Does any one have any idea ? how to achieve this?
 
Thanks,
Firas
Hi ,
 
Does anyone have an idea on how to display  Product code in quote line item in alphabetical order ?
Please see screenshot
qli
Hi ,

I want to create a validation rule on contact so  Mobile or phone should not be empty when saving a contact ?

Doesn anyone have an idea on how to achieve this?
Thanks,
Firas
public enum XAP_DAO_DML_OperationTypeEnum {
	CREATE,     // Insert
	MODIFY,     // Update
	REMOVE,     // Delete
	RESTORE     // Undelete  
        
}
How to cover this class?
 
I runned this soql to find Account with opportunitie with orders  :
 
SELECT
  Name,
  (SELECT
    LastModifiedDate, CreatedDate, StageName,Name
   FROM 
   Opportunities),
   (SELECT
     OrderNumber
    FROM
     Orders)
FROM 
  Account

I found data :

DataBut when i tried to use report in salesforce , i couln't find that opportunities which is related to that account

noDataDoes anyone have  an explanation please?
Hi ,

I've created a report type to related Quotes ( opportunities ) with Orders 
But when trying to create a report based on that report , i couldn't find data .. 

In Salesforce , i can find data but not in the report 
Why ?

Thanks in advance,
Firas
 
Lightning component : 
 
<aura:component implements="flexipage:availableForRecordHome,force:hasRecordId" controller="SaveFormVisitReport" >
<aura:attribute name="recordId" type="String" />
<aura:attribute name="selectedLookUpRecords" type="Contact" default="[]"/>
<aura:attribute name="selectedLookUpRecords1" type="User" default="[]"/>
<aura:attribute name="newRecord" type="Visit_Report__c" default="{ 'sobjectType': 'Visit_Report__c',                                                                      'Visit_Type__c':'',                                                                        'Contact__c':'',                                                                        'User__c':'',                                                                       'Account__c':'',                                                                       'Comments__c':''}"/>
 <lightning:recordEditForm aura:id="myform" objectApiName="Visit_Report__c" onsubmit="{!c.handleSubmit}">
<lightning:messages />
<lightning:inputField fieldName="Visit_Type__c" aura:id="type"/>   
<lightning:inputField fieldName="User__c" aura:id="user"/> 
<c:reUsableMultiSelectLookup objectAPIName="Contact"
                               IconName="standard:contact"
                               lstSelectedRecords="{!v.selectedLookUpRecords}"
                               label="Contact Name" aura:id="cont"/>
<c:reUsableMultiSelectLookup objectAPIName="User"
                               IconName="standard:User"
                               lstSelectedRecords="{!v.selectedLookUpRecords1}"
                               label="Assigned to" aura:id="user"/> 
<lightning:inputField fieldName="Account__c" aura:id="acc"/> 
<lightning:inputField fieldName="Comments__c" aura:id="comm"/>
<lightning:button
                class="slds-m-top_small"
                type="submit"
                label="Create new">
</lightning:button>
</lightning:recordEditForm>
</aura:component>

Controller JS :
 
handleSubmit: function(component, event, handler) {
      var input1 = component.get("v.selectedLookUpRecords");
      var input2 = component.get("v.selectedLookUpRecords1");
      component.find('cont').set('v.value', input1);
      component.find('acc').set('v.value', input2);
      component.find('myform').submit();
    }

Contact and user haven't been saved - Please note c:reUsableMultiSelectLookup is another lightning component , it's goal : user be able to select multi records on lookup field

Form