• Jasmeen Kaur 22
  • NEWBIE
  • 10 Points
  • Member since 2019
  • Salesforce Website

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 1
    Likes Given
  • 7
    Questions
  • 14
    Replies
Hi Experts

 I am trying to complete Lightning Roll out Specialist Challenge and today is the last day to do this. but getting this error : 

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: VCHKQDNO

Is there any one who can help me? Need to finsih this before today.

Thanks in Advance
Hello Experts

I want some help on call back URL for lightning.
I have used a call back URL " https://login.salesforce.com/services/oauth2/success". But this one is bringing the classic view in salesforce.

Can someone please help me how i can make this to open a lightning view?

Thanks in advance
Jasmeen 
Hello Experts

I have very basic developing skills but trying to learn more.
I created a trigger in salesforce to detect potential duplicate cases which is working as expected. But I want to apply this trigger to a specific record type. However, at the moment it is working for every record type.

Here is my apex trigger;


trigger DuplicateCase on Case (before insert, before update) {

  for (Case c : Trigger.new) {
       List<Case> cases = [SELECT id, ISClosed, Subject FROM Case WHERE Subject = :c.Subject AND IsClosed = False];
        if (cases.size() > 1) {
            c.Is_Duplicate__c = TRUE;
        }else
            c.Is_Duplicate__c = FALSE;
}
}

I followed very smiliar posts but no help as such. May be those solutions are not working for me.

The name of record type which I want to use is : Credit Limit Exceeded. 

Can an expert write that for me or suggest me how to write the trigger for any particular record type? 
Looking forward to it.

Thanks in advance.
 
I have an issue with my flow builder.
I have a field lets say "Picking Slip No.1" which is a text field. This field is hidden on page layout but is present on a visual force page. Then that visual force page is added on lightning page layout as a separate tab. Then we have another field lets say "Sales Order No. 1" this is a lookup field. Basically a picking slip no. is a sales order no. which is manually entered in salesforce. Sales Order comes in salesforce after few hours. So for that I have created a flow builder and a process builder in which after certain time, salesforce finds the picking slip no. 1 in sales order nos. and auto fill the lookup field "Sales Order No.1" in that visual force page. (Sales Order No. is also hidden from details page but present on a visual force page.)
User-added imageNow the issue is when i enter picking slips on visual force page then flow is not working as I am not getting sales order nos auto populated on it.
However, If I add picking slip nos on main detail page and add those nos there then sales order nos on visual force page are populating.
User-added imageThe result can be seen on visual force page.
User-added imageSo My question here is that is there any way that without bringing these picking slip nos on page layout and entering them via visualforce page, I can get the results on the same visual force page?

I do not want to present these fields on page layout.

Please see my visualforce page.
<apex:page standardController="Showroom_Request__c">
<apex:pageBlock title="Picking Slips and Sales Order" mode="inlineEdit">
<style>
.colStyle1 { width: 10%;padding-left:5px; text-align:left; padding-top:3px; padding-bottom:5px;}
.colStyle2 { width: 10%;text-align:left; padding-left:5px; padding-top:3px; padding-bottom:3px}
.colStyle3 { width: 10%; text-align:left;padding-left:5px; padding-right:10px; padding-top:3px; padding-bottom:3px}
.colStyle4 { width: 10%; text-align:left;padding-left:5px; padding-right:10px; padding-top:3px; padding-bottom:3px} 
.colStyle5 { width: 10%;padding-left:5px; text-align:left; padding-top:3px; padding-bottom:5px;}
.colStyle6 { width: 10%;text-align:left; padding-left:5px; padding-top:3px; padding-bottom:3px}
.colStyle7 { width: 10%; text-align:left;padding-left:5px; padding-right:10px; padding-top:3px; padding-bottom:3px}
.colStyle8 { width: 10%; text-align:left;padding-left:5px; padding-right:10px; padding-top:3px; padding-bottom:3px} 
.colStyle9 { width: 10%;padding-left:5px; text-align:left; padding-top:3px; padding-bottom:5px;}
.colStyle10 { width: 10%;text-align:left; padding-left:5px; padding-top:3px; padding-bottom:3px}
</style>
<apex:form >
  
  <apex:pageBlock title="Blum Hardware" mode="maindetail">
  <apex:panelGrid columns="10" border="0" styleClass="tableStyle" width="100%" columnClasses="colStyle1,colStyle2,colStyle3,colStyle4,colStyle5,colStyle6,colStyle7,colStyle8,colStyle9,colStyle10">
        
        <apex:outputLabel style="font-weight:600">Picking Slip 1</apex:outputLabel>  
        <apex:inputfield value="{!Showroom_Request__c.Picking_Slip_1_BH__c}"></apex:inputfield>
        
        <apex:outputLabel style="font-weight:600">Discount 1</apex:outputLabel> 
        <apex:outputfield value="{!Showroom_Request__c.Discount_1_BH__c}"></apex:outputfield>
        
        <apex:outputLabel style="font-weight:600">Sales Order 1</apex:outputLabel> 
        <apex:outputfield value="{!Showroom_Request__c.Sales_Order_No_1_BH__c}"></apex:outputfield>
        
        <apex:outputLabel style="font-weight:600">Order Date 1</apex:outputLabel> 
        <apex:outputfield value="{!Showroom_Request__c.Order_Date_1_BH__c}"></apex:outputfield>
        
        <apex:outputLabel style="font-weight:600">Invoice No.1</apex:outputLabel> 
        <apex:outputfield value="{!Showroom_Request__c.Invoice_No_1_BH__c}"></apex:outputfield>
        
        
         <apex:outputLabel style="font-weight:600">Picking Slip 2</apex:outputLabel> 
         <apex:inputfield value="{!Showroom_Request__c.Picking_Slip_2_BH__c}"></apex:inputfield> 
        
        <apex:outputLabel style="font-weight:600">Discount 2</apex:outputLabel> 
        <apex:outputfield value="{!Showroom_Request__c.Discount_1_BH__c}"></apex:outputfield>
        
        <apex:outputLabel style="font-weight:600">Sales Order 2</apex:outputLabel> 
        <apex:outputfield value="{!Showroom_Request__c.Sales_Order_No_2_BH__c}"></apex:outputfield>
        
        <apex:outputLabel style="font-weight:600">Order Date 2</apex:outputLabel> 
        <apex:outputfield value="{!Showroom_Request__c.Order_Date_2_BH__c}"></apex:outputfield>
        
        <apex:outputLabel style="font-weight:600">Invoice No.2</apex:outputLabel> 
        <apex:outputfield value="{!Showroom_Request__c.Invoice_No_2_BH__c}"></apex:outputfield>
        
        
        
        <apex:outputLabel style="font-weight:600">Picking Slip 3</apex:outputLabel>  
       <apex:inputfield value="{!Showroom_Request__c.Picking_Slip_3_BH__c}"></apex:inputfield>
        
        <apex:outputLabel style="font-weight:600">Discount 3</apex:outputLabel> 
        <apex:outputfield value="{!Showroom_Request__c.Discount_1_BH__c}"></apex:outputfield>
        
        <apex:outputLabel style="font-weight:600">Sales Order 3</apex:outputLabel> 
        <apex:outputfield value="{!Showroom_Request__c.Sales_Order_No_3_BH__c}"></apex:outputfield>
        
        <apex:outputLabel style="font-weight:600">Order Date 3</apex:outputLabel> 
        <apex:outputfield value="{!Showroom_Request__c.Order_Date_3_BH__c}"></apex:outputfield>
        
        <apex:outputLabel style="font-weight:600">Invoice No.3</apex:outputLabel> 
        <apex:outputfield value="{!Showroom_Request__c.Invoice_No_3_BH__c}"></apex:outputfield>
        
        
           
  </apex:panelGrid>
  <apex:commandButton value="save" action="{!save}"/>
</apex:pageBlock>
</apex:form>

<apex:form >
  
  <apex:pageBlock title="Blum Servo Drive" mode="maindetail">
  <apex:panelGrid columns="10" border="0" styleClass="tableStyle" width="100%" columnClasses="colStyle1,colStyle2,colStyle3,colStyle4,colStyle5,colStyle6,colStyle7,colStyle8,colStyle9,colStyle10">
        
        <apex:outputLabel style="font-weight:600">Picking Slip 1</apex:outputLabel>  
      <apex:inputfield value="{!Showroom_Request__c.Picking_Slip_1_BSD__c}"></apex:inputfield>
      
        
        <apex:outputLabel style="font-weight:600">Discount 1</apex:outputLabel> 
        <apex:outputfield value="{!Showroom_Request__c.Discount_1_BSD__c}"></apex:outputfield>
        
        <apex:outputLabel style="font-weight:600">Sales Order 1</apex:outputLabel> 
        <apex:outputfield value="{!Showroom_Request__c.Sales_Order_No_1_BSD__c}"></apex:outputfield>
        
        <apex:outputLabel style="font-weight:600">Order Date 1</apex:outputLabel> 
        <apex:outputfield value="{!Showroom_Request__c.Order_Date_1_BSD__c}"></apex:outputfield>
        
        <apex:outputLabel style="font-weight:600">Invoice No.1</apex:outputLabel> 
        <apex:outputfield value="{!Showroom_Request__c.Invoice_No_1_BSD__c}"></apex:outputfield>
        
        
        <apex:outputLabel style="font-weight:600">Picking Slip 2</apex:outputLabel>  
        <apex:inputfield value="{!Showroom_Request__c.Picking_Slip_2_BSD__c}"></apex:inputfield>
        
        
        <apex:outputLabel style="font-weight:600">Discount 2</apex:outputLabel> 
        <apex:outputfield value="{!Showroom_Request__c.Discount_1_BSD__c}"></apex:outputfield>
        
        <apex:outputLabel style="font-weight:600">Sales Order 2</apex:outputLabel> 
        <apex:outputfield value="{!Showroom_Request__c.Sales_Order_No_2_BSD__c}"></apex:outputfield>
        
        <apex:outputLabel style="font-weight:600">Order Date 2</apex:outputLabel> 
        <apex:outputfield value="{!Showroom_Request__c.Order_Date_2_BSD__c}"></apex:outputfield>
        
        <apex:outputLabel style="font-weight:600">Invoice No.2</apex:outputLabel> 
        <apex:outputfield value="{!Showroom_Request__c.Invoice_No_2_BSD__c}"></apex:outputfield>
        
        
    
           
  </apex:panelGrid>
  <apex:commandButton value="save" action="{!save}"/>
</apex:pageBlock>
</apex:form>
  
  <apex:form >
  
  <apex:pageBlock title="W & B" mode="maindetail">
  <apex:panelGrid columns="10" border="0" styleClass="tableStyle" width="100%" columnClasses="colStyle1,colStyle2,colStyle3,colStyle4,colStyle5,colStyle6,colStyle7,colStyle8,colStyle9,colStyle10">
        
        <apex:outputLabel style="font-weight:600">Picking Slip 1</apex:outputLabel>  
     <apex:inputfield value="{!Showroom_Request__c.Picking_Slip_1_WB__c}"></apex:inputfield>
     
        
        <apex:outputLabel style="font-weight:600">Discount 1</apex:outputLabel> 
        <apex:outputfield value="{!Showroom_Request__c.Discount_1_WB__c}"></apex:outputfield>
        
        <apex:outputLabel style="font-weight:600">Sales Order 1</apex:outputLabel> 
        <apex:outputfield value="{!Showroom_Request__c.Sales_Order_No_1_WB__c}"></apex:outputfield>
        
        <apex:outputLabel style="font-weight:600">Order Date 1</apex:outputLabel> 
        <apex:outputfield value="{!Showroom_Request__c.Order_Date_1_WB__c}"></apex:outputfield>
        
        <apex:outputLabel style="font-weight:600">Invoice No.1</apex:outputLabel> 
        <apex:outputfield value="{!Showroom_Request__c.Invoice_No_1_WB__c}"></apex:outputfield>
        
        
        <apex:outputLabel style="font-weight:600">Picking Slip 2</apex:outputLabel>  
       <apex:inputfield value="{!Showroom_Request__c.Picking_Slip_1_WB__c}"></apex:inputfield>
       
        
        <apex:outputLabel style="font-weight:600">Discount 2</apex:outputLabel> 
        <apex:outputfield value="{!Showroom_Request__c.Discount_1_WB__c}"></apex:outputfield>
        
        <apex:outputLabel style="font-weight:600">Sales Order 2</apex:outputLabel> 
        <apex:outputfield value="{!Showroom_Request__c.Sales_Order_No_2_WB__c}"></apex:outputfield>
        
        <apex:outputLabel style="font-weight:600">Order Date 2</apex:outputLabel> 
        <apex:outputfield value="{!Showroom_Request__c.Order_Date_2_WB__c}"></apex:outputfield>
        
        <apex:outputLabel style="font-weight:600">Invoice No.2</apex:outputLabel> 
        <apex:outputfield value="{!Showroom_Request__c.Invoice_No_2_WB__c}"></apex:outputfield>
        
        
        <apex:outputLabel style="font-weight:600">Picking Slip 3</apex:outputLabel>  
       <apex:inputfield value="{!Showroom_Request__c.Picking_Slip_3_WB__c}"></apex:inputfield>
       
        
        <apex:outputLabel style="font-weight:600">Discount 3</apex:outputLabel> 
        <apex:outputfield value="{!Showroom_Request__c.Discount_1_WB__c}"></apex:outputfield>
        
        <apex:outputLabel style="font-weight:600">Sales Order 3</apex:outputLabel> 
        <apex:outputfield value="{!Showroom_Request__c.Sales_Order_No_3_WB__c}"></apex:outputfield>
        
        <apex:outputLabel style="font-weight:600">Order Date 3</apex:outputLabel> 
        <apex:outputfield value="{!Showroom_Request__c.Order_Date_3_WB__c}"></apex:outputfield>
        
        <apex:outputLabel style="font-weight:600">Invoice No.3</apex:outputLabel> 
        <apex:outputfield value="{!Showroom_Request__c.Invoice_No_3_WB__c}"></apex:outputfield> 
        
        
       
  </apex:panelGrid>
  <apex:commandButton value="save" action="{!save}"/>
</apex:pageBlock>
</apex:form>



 </apex:pageBlock>
</apex:page>
Any help on this will be highly appreciated.
Looking forward to it.

Regards
Jasmeen
 
H Experts

I have created a VF page for my custom object (Forms). However when I hit save button it is not saving the record and brings the blank value in the field again. Can you please review my VF code below?

<apex:page standardController="Forms__c">
<apex:pageBlock title="Picking Slips and Sales Order" mode="inlineEdit">
<style>
.colStyle1 { width: 10%;padding-left:5px; text-align:left; padding-top:3px; padding-bottom:5px;}
.colStyle2 { width: 10%;text-align:left; padding-left:5px; padding-top:3px; padding-bottom:3px}
.colStyle3 { width: 10%; text-align:left;padding-left:5px; padding-right:10px; padding-top:3px; padding-bottom:3px}
.colStyle4 { width: 10%; text-align:left;padding-left:5px; padding-right:10px; padding-top:3px; padding-bottom:3px} 
.colStyle5 { width: 10%;padding-left:5px; text-align:left; padding-top:3px; padding-bottom:5px;}
.colStyle6 { width: 10%;text-align:left; padding-left:5px; padding-top:3px; padding-bottom:3px}
.colStyle7 { width: 10%; text-align:left;padding-left:5px; padding-right:10px; padding-top:3px; padding-bottom:3px}
.colStyle8 { width: 10%; text-align:left;padding-left:5px; padding-right:10px; padding-top:3px; padding-bottom:3px} 
.colStyle9 { width: 10%;padding-left:5px; text-align:left; padding-top:3px; padding-bottom:5px;}
.colStyle10 { width: 10%;text-align:left; padding-left:5px; padding-top:3px; padding-bottom:3px}
</style>
<apex:form >
  
  <apex:pageBlock title="Blum Hardware" mode="maindetail">
  <apex:panelGrid columns="10" border="0" styleClass="tableStyle" width="100%" columnClasses="colStyle1,colStyle2,colStyle3,colStyle4,colStyle5,colStyle6,colStyle7,colStyle8,colStyle9,colStyle10">
        <apex:outputLabel style="font-weight:600">Picking Slip 1</apex:outputLabel>  
        <apex:inputfield value="{!Forms__c.Picking_Slip_1_BH__c}"></apex:inputfield>
        <apex:outputLabel style="font-weight:600">Discount 1</apex:outputLabel> 
        <apex:outputfield value="{!Forms__c.Discount_1_BH__c}"></apex:outputfield>
        <apex:outputLabel style="font-weight:600">Sales Order 1</apex:outputLabel> 
        <apex:outputfield value="{!Forms__c.Sales_Order_No_1_BH__c}"></apex:outputfield>
        <apex:outputLabel style="font-weight:600">Order Date 1</apex:outputLabel> 
        <apex:outputfield value="{!Forms__c.Order_Date_1_BH__c}"></apex:outputfield>
        <apex:outputLabel style="font-weight:600">Invoice No.1</apex:outputLabel> 
        <apex:outputfield value="{!Forms__c.Invoice_No_1_BH__c}"></apex:outputfield>
        
        <apex:outputLabel style="font-weight:600">Picking Slip 2</apex:outputLabel>  
        <apex:inputfield value="{!Forms__c.Picking_Slip_2_BH__c}"></apex:inputfield>
        <apex:outputLabel style="font-weight:600">Discount 2</apex:outputLabel> 
        <apex:outputfield value="{!Forms__c.Discount_BH_2__c}"></apex:outputfield>
        <apex:outputLabel style="font-weight:600">Sales Order 2</apex:outputLabel> 
        <apex:outputfield value="{!Forms__c.Sales_Order_No_2_BH__c}"></apex:outputfield>
        <apex:outputLabel style="font-weight:600">Order Date 2</apex:outputLabel> 
        <apex:outputfield value="{!Forms__c.Order_Date_2_BH__c}"></apex:outputfield>
        <apex:outputLabel style="font-weight:600">Invoice No.2</apex:outputLabel> 
        <apex:outputfield value="{!Forms__c.Invoice_No_2_BH__c}"></apex:outputfield>
        
        <apex:outputLabel style="font-weight:600">Picking Slip 3</apex:outputLabel>  
        <apex:inputfield value="{!Forms__c.Picking_Slip_3_BH__c}"></apex:inputfield>
        <apex:outputLabel style="font-weight:600">Discount 3</apex:outputLabel> 
        <apex:outputfield value="{!Forms__c.Discount_3_BH__c}"></apex:outputfield>
        <apex:outputLabel style="font-weight:600">Sales Order 3</apex:outputLabel> 
        <apex:outputfield value="{!Forms__c.Sales_Order_No_3_BH__c}"></apex:outputfield>
        <apex:outputLabel style="font-weight:600">Order Date 3</apex:outputLabel> 
        <apex:outputfield value="{!Forms__c.Order_Date_3_BH__c}"></apex:outputfield>
        <apex:outputLabel style="font-weight:600">Invoice No.3</apex:outputLabel> 
        <apex:outputfield value="{!Forms__c.Invoice_No_3_BH__c}"></apex:outputfield>
        
        
           
  </apex:panelGrid>
</apex:pageBlock>
</apex:form>

<apex:form >
  
  <apex:pageBlock title="Blum Servo Drive" mode="maindetail">
  <apex:panelGrid columns="10" border="0" styleClass="tableStyle" width="100%" columnClasses="colStyle1,colStyle2,colStyle3,colStyle4,colStyle5,colStyle6,colStyle7,colStyle8,colStyle9,colStyle10">
        <apex:outputLabel style="font-weight:600">Picking Slip 1</apex:outputLabel>  
        <apex:inputfield value="{!Forms__c.Picking_Slip_1_BSD__c}"></apex:inputfield>
        <apex:outputLabel style="font-weight:600">Discount 1</apex:outputLabel> 
        <apex:outputfield value="{!Forms__c.Discount_1_BSD__c}"></apex:outputfield>
        <apex:outputLabel style="font-weight:600">Sales Order 1</apex:outputLabel> 
        <apex:outputfield value="{!Forms__c.Sales_Order_No_1_BSD__c}"></apex:outputfield>
        <apex:outputLabel style="font-weight:600">Order Date 1</apex:outputLabel> 
        <apex:outputfield value="{!Forms__c.Order_Date_1_BSD__c}"></apex:outputfield>
        <apex:outputLabel style="font-weight:600">Invoice No.1</apex:outputLabel> 
        <apex:outputfield value="{!Forms__c.Invoice_No_1_BSD__c}"></apex:outputfield>
        
        <apex:outputLabel style="font-weight:600">Picking Slip 2</apex:outputLabel>  
        <apex:inputfield value="{!Forms__c.Picking_Slip_2_BSD__c}"></apex:inputfield>
        <apex:outputLabel style="font-weight:600">Discount 2</apex:outputLabel> 
        <apex:outputfield value="{!Forms__c.Discount_2_BSD__c}"></apex:outputfield>
        <apex:outputLabel style="font-weight:600">Sales Order 2</apex:outputLabel> 
        <apex:outputfield value="{!Forms__c.Sales_Order_No_2_BSD__c}"></apex:outputfield>
        <apex:outputLabel style="font-weight:600">Order Date 2</apex:outputLabel> 
        <apex:outputfield value="{!Forms__c.Order_Date_2_BSD__c}"></apex:outputfield>
        <apex:outputLabel style="font-weight:600">Invoice No.2</apex:outputLabel> 
        <apex:outputfield value="{!Forms__c.Invoice_No_2_BSD__c}"></apex:outputfield>
        
    
           
  </apex:panelGrid>
</apex:pageBlock>
</apex:form>
  
  <apex:form >
  
  <apex:pageBlock title="W & B" mode="maindetail">
  <apex:panelGrid columns="10" border="0" styleClass="tableStyle" width="100%" columnClasses="colStyle1,colStyle2,colStyle3,colStyle4,colStyle5,colStyle6,colStyle7,colStyle8,colStyle9,colStyle10">
       <apex:outputLabel style="font-weight:600">Picking Slip 1</apex:outputLabel>  
        <apex:inputfield value="{!Forms__c.Picking_Slip_1_WB__c}"></apex:inputfield>
        <apex:outputLabel style="font-weight:600">Discount 1</apex:outputLabel> 
        <apex:outputfield value="{!Forms__c.Discount_1_WB__c}"></apex:outputfield>
        <apex:outputLabel style="font-weight:600">Sales Order 1</apex:outputLabel> 
        <apex:outputfield value="{!Forms__c.Sales_Order_No_1_WB__c}"></apex:outputfield>
        <apex:outputLabel style="font-weight:600">Order Date 1</apex:outputLabel> 
        <apex:outputfield value="{!Forms__c.Order_Date_1_WB__c}"></apex:outputfield>
        <apex:outputLabel style="font-weight:600">Invoice No.1</apex:outputLabel> 
        <apex:outputfield value="{!Forms__c.Invoice_No_1_WB__c}"></apex:outputfield>
        
        <apex:outputLabel style="font-weight:600">Picking Slip 2</apex:outputLabel>  
        <apex:inputfield value="{!Forms__c.Picking_Slip_2_WB__c}"></apex:inputfield>
        <apex:outputLabel style="font-weight:600">Discount 2</apex:outputLabel> 
        <apex:outputfield value="{!Forms__c.Discount_2_WB__c}"></apex:outputfield>
        <apex:outputLabel style="font-weight:600">Sales Order 2</apex:outputLabel> 
        <apex:outputfield value="{!Forms__c.Sales_Order_No_2_WB__c}"></apex:outputfield>
        <apex:outputLabel style="font-weight:600">Order Date 2</apex:outputLabel> 
        <apex:outputfield value="{!Forms__c.Order_Date_2_WB__c}"></apex:outputfield>
        <apex:outputLabel style="font-weight:600">Invoice No.2</apex:outputLabel> 
        <apex:outputfield value="{!Forms__c.Invoice_No_2_WB__c}"></apex:outputfield>
        
        <apex:outputLabel style="font-weight:600">Picking Slip 3</apex:outputLabel>  
        <apex:inputfield value="{!Forms__c.Picking_Slip_3_WB__c}"></apex:inputfield>
        <apex:outputLabel style="font-weight:600">Discount 3</apex:outputLabel> 
        <apex:outputfield value="{!Forms__c.Discount_3_WB__c}"></apex:outputfield>
        <apex:outputLabel style="font-weight:600">Sales Order 3</apex:outputLabel> 
        <apex:outputfield value="{!Forms__c.Sales_Order_No_3_WB__c}"></apex:outputfield>
        <apex:outputLabel style="font-weight:600">Order Date 3</apex:outputLabel> 
        <apex:outputfield value="{!Forms__c.Order_Date_3_WB__c}"></apex:outputfield>
        <apex:outputLabel style="font-weight:600">Invoice No.3</apex:outputLabel> 
        <apex:outputfield value="{!Forms__c.Invoice_No_3_WB__c}"></apex:outputfield> 
        
       
  </apex:panelGrid>
</apex:pageBlock>
</apex:form>

<apex:pageBlockButtons >
<apex:form >
  <apex:commandButton value="Save" action="{!Save}"/>
  <apex:commandButton value="Cancel" action="{!cancel}"/>
  </apex:form>
</apex:pageBlockButtons>
----
 </apex:pageBlock>
</apex:page>


Any help would be highly regarded.

Thanks in Advance

 
Hi Experts
Here is a question regarding Email to Case. In my org, we use Email to Case. The Subject of email-to-case is like : "Credit Hold : (ABCDEFGH ) : Sales Order : 1236589kmjl456" Where ABCDEFGH = Account name.
On Case Page layout, we have a field = Account name. Is there a way that This field can be auto filled from Subject by finding the string in ()? Because the Account name in subject is always in ( ).
I am an Admin so, I don't know much coding. Any help will be highly appreciated.
Regards
Hi Experts
How can i create a formula to Append Discount fileds (Percentge or number)

Actually the case is,
On Case Object, I created a field "Discount" and "Discount History". In our organisation, time to time we offer certain value of discounts to our customers and I tried creating something to track the discount history like when was the last discount given to this account and last discount value using this formula.

$User.LastName + ', ' + $User.FirstName + ' ' + TEXT(Today()) + ' - ' + Discount__c + BR() + BR() + Discount_History__c
"But I am getting error that expected TEXT and recieved number" because discount is a number.

Any help will be highly appreciated.
Thanks
Hi Experts

 I am trying to complete Lightning Roll out Specialist Challenge and today is the last day to do this. but getting this error : 

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: VCHKQDNO

Is there any one who can help me? Need to finsih this before today.

Thanks in Advance
Hello Experts

I have very basic developing skills but trying to learn more.
I created a trigger in salesforce to detect potential duplicate cases which is working as expected. But I want to apply this trigger to a specific record type. However, at the moment it is working for every record type.

Here is my apex trigger;


trigger DuplicateCase on Case (before insert, before update) {

  for (Case c : Trigger.new) {
       List<Case> cases = [SELECT id, ISClosed, Subject FROM Case WHERE Subject = :c.Subject AND IsClosed = False];
        if (cases.size() > 1) {
            c.Is_Duplicate__c = TRUE;
        }else
            c.Is_Duplicate__c = FALSE;
}
}

I followed very smiliar posts but no help as such. May be those solutions are not working for me.

The name of record type which I want to use is : Credit Limit Exceeded. 

Can an expert write that for me or suggest me how to write the trigger for any particular record type? 
Looking forward to it.

Thanks in advance.
 
Hi Experts
Here is a question regarding Email to Case. In my org, we use Email to Case. The Subject of email-to-case is like : "Credit Hold : (ABCDEFGH ) : Sales Order : 1236589kmjl456" Where ABCDEFGH = Account name.
On Case Page layout, we have a field = Account name. Is there a way that This field can be auto filled from Subject by finding the string in ()? Because the Account name in subject is always in ( ).
I am an Admin so, I don't know much coding. Any help will be highly appreciated.
Regards
On Opportuntities we have the default "Next Steps" field, but it's not very long and we'd like to retain back history of the progress of a deal.  I've created a long text field "Sales Progress".  Here's what I'd like to do using a workflow trigger and field update:  Whenever a new entry is made in Next Steps, copy that entry over to Sales Progress and add it to the bottom (or top) of the existing text.  What would the formula look like?

I am new to triggers in SFDC and have created a trigger to flag potential duplicate Cases. I am querying the SuppliedEmail, ContactId and IsClosed values on Cases. It works when a Contact creates a new Case in SFDC when they already have a case open, however if I close/delete,  the potential duplicate case, the checkbox remains ticked. I was trying to use an after insert, after update action but was receiving a System.FinalException: Record is read-only error. Any help is appreciated. 

 

Here is the code:

 

trigger PotentialDupe on Case (before insert, before update) {
List<Case> DupeCases = new List<Case>();
for (Case c : Trigger.new){

Case [] cases = [SELECT id, ContactId, SuppliedEmail, isClosed FROM Case WHERE SuppliedEmail = :c.SuppliedEmail AND ContactId = :c.ContactId AND isClosed = FALSE];

if (cases.size() > 0) {
c.Potential_Duplicate_Case__c = TRUE;
}else
c.Potential_Duplicate_Case__c = FALSE;
}
update DupeCases;
}

I am new to triggers in SFDC and have created a trigger to flag potential duplicate Cases. I am querying the SuppliedEmail, ContactId and IsClosed values on Cases. It works when a Contact creates a new Case in SFDC when they already have a case open, however if I close/delete,  the potential duplicate case, the checkbox remains ticked. I was trying to use an after insert, after update action but was receiving a System.FinalException: Record is read-only error. Any help is appreciated. 

 

Here is the code:

 

trigger PotentialDupe on Case (before insert, before update) {
List<Case> DupeCases = new List<Case>();
for (Case c : Trigger.new){

Case [] cases = [SELECT id, ContactId, SuppliedEmail, isClosed FROM Case WHERE SuppliedEmail = :c.SuppliedEmail AND ContactId = :c.ContactId AND isClosed = FALSE];

if (cases.size() > 0) {
c.Potential_Duplicate_Case__c = TRUE;
}else
c.Potential_Duplicate_Case__c = FALSE;
}
update DupeCases;
}