Skip to main content
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Tweeted twitter.com/StackSalesforce/status/1330617083781132296
added 83 characters in body
Source Link

I am new to salesforce DX. When I am working with Visual Studio Code, after installing the recommended extensions like Salesforce Extension Pack and Salesforce CLI Inegration, the IDE is able to give hint for the sObject.

However, the wrong object assignment like

        Bot_Command__c a = new Bot_Command__c();
        a.Pattern__c = 1.0;

Pattern__c supposed to be text but it is assigned with a Decimal value but there is no detection of wrong assignment in Visual Studio Code. enter image description here Would you please advise if there is any command from Salesforce CLI or the command in Visual Studio Code to compile these kinds of error before I pushing the code to Scratch org?

Would you please advise if there is any command from Salesforce CLI or the command in Visual Studio Code to compile these kinds of error before I pushing the code to Scratch org?

Thanks

I am new to salesforce DX. When I am working with Visual Studio Code, after installing the recommended extensions like Salesforce Extension Pack and Salesforce CLI Inegration, the IDE is able to give hint for the sObject.

However, the wrong object assignment like

        Bot_Command__c a = new Bot_Command__c();
        a.Pattern__c = 1.0;

Pattern__c supposed to be text but it is assigned with a Decimal value but there is no detection of wrong assignment in Visual Studio Code.

Would you please advise if there is any command from Salesforce CLI or the command in Visual Studio Code to compile these kinds of error before I pushing the code to Scratch org?

Thanks

I am new to salesforce DX. When I am working with Visual Studio Code, after installing the recommended extensions like Salesforce Extension Pack and Salesforce CLI Inegration, the IDE is able to give hint for the sObject.

However, the wrong object assignment like

        Bot_Command__c a = new Bot_Command__c();
        a.Pattern__c = 1.0;

Pattern__c supposed to be text but it is assigned with a Decimal value but there is no detection of wrong assignment in Visual Studio Code. enter image description here Would you please advise if there is any command from Salesforce CLI or the command in Visual Studio Code to compile these kinds of error before I pushing the code to Scratch org?

Thanks

added quote tags
Source Link
Jackson Chen
  • 4.8k
  • 2
  • 17
  • 52

I am new to salesforce DX. When I am working with Visual Studio Code, after installing the recommended extensions like Salesforce Extension Pack and Salesforce CLI Inegration, the IDE is able to give hint for the sObject.

However, the wrong object assignment like

            
            Bot_Command__c a = new Bot_Command__c();
            a.Pattern__c = 1.0;

Pattern__c supposed to be text but it is assigned with a Decimal value but there is no detection of wrong assignment in Visual Studio Code.

Pattern__c supposed to be text but it is assigned with a Decimal value but there is no detection of wrong assignment in Visual Studio Code.

Would you please advise if there is any command from Salesforce CLI or the command in Visual Studio Code to compile these kinds of error before I pushing the code to Scratch org?

Thanks

I am new to salesforce DX. When I am working with Visual Studio Code, after installing the recommended extensions like Salesforce Extension Pack and Salesforce CLI Inegration, the IDE is able to give hint for the sObject.

However, the wrong object assignment like

            
            Bot_Command__c a = new Bot_Command__c();
            a.Pattern__c = 1.0;

Pattern__c supposed to be text but it is assigned with a Decimal value but there is no detection of wrong assignment in Visual Studio Code.

Would you please advise if there is any command from Salesforce CLI or the command in Visual Studio Code to compile these kinds of error before I pushing the code to Scratch org?

Thanks

I am new to salesforce DX. When I am working with Visual Studio Code, after installing the recommended extensions like Salesforce Extension Pack and Salesforce CLI Inegration, the IDE is able to give hint for the sObject.

However, the wrong object assignment like

        Bot_Command__c a = new Bot_Command__c();
        a.Pattern__c = 1.0;

Pattern__c supposed to be text but it is assigned with a Decimal value but there is no detection of wrong assignment in Visual Studio Code.

Would you please advise if there is any command from Salesforce CLI or the command in Visual Studio Code to compile these kinds of error before I pushing the code to Scratch org?

Thanks

added 20 characters in body
Source Link

I am new to salesforce DX. When I am working with Visual Studio Code, after installing the recommended extensions like Salesforce Extension Pack and Salesforce CLI Inegration, the IDE is able to give hint for the sObject.

However, the wrong object assignment like Bot_Command__c a = new Bot_Command__c(); a.Pattern__c = 1.0;

            
            Bot_Command__c a = new Bot_Command__c();
            a.Pattern__c = 1.0;

Pattern__c supposed to be text but it is assigned with a Decimal value but there is no detection of wrong assignment in Visual Studio Code.

Would you please advise if there is any command from Salesforce CLI or the command in Visual Studio Code to compile these kinds of error before I pushing the code to Scratch org?

Thanks

I am new to salesforce DX. When I am working with Visual Studio Code, after installing the recommended extensions like Salesforce Extension Pack and Salesforce CLI Inegration, the IDE is able to give hint for the sObject.

However, the wrong object assignment like Bot_Command__c a = new Bot_Command__c(); a.Pattern__c = 1.0;

Pattern__c supposed to be text but it is assigned with a Decimal value but there is no detection of wrong assignment in Visual Studio Code.

Would you please advise if there is any command from Salesforce CLI or the command in Visual Studio Code to compile these kinds of error before I pushing the code to Scratch org?

Thanks

I am new to salesforce DX. When I am working with Visual Studio Code, after installing the recommended extensions like Salesforce Extension Pack and Salesforce CLI Inegration, the IDE is able to give hint for the sObject.

However, the wrong object assignment like

            
            Bot_Command__c a = new Bot_Command__c();
            a.Pattern__c = 1.0;

Pattern__c supposed to be text but it is assigned with a Decimal value but there is no detection of wrong assignment in Visual Studio Code.

Would you please advise if there is any command from Salesforce CLI or the command in Visual Studio Code to compile these kinds of error before I pushing the code to Scratch org?

Thanks

Source Link
Loading