• Shunsuke Gimba (銀羽 俊介)
  • NEWBIE
  • 30 Points
  • Member since 2016

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 5
    Replies
Hi


Please, help to set up proxy for SFDX CLI.

I'm trying:
sfdx update

I'm getting:
If you are behind a proxy, please make sure that the network 'proxy' config is set properly.  See: 'npm help config'

Regards, Aliaksandr Satskou
Hi. I began to use Salesforce DX.
Then, the biggest problem is that I use proxy.
This condition is inevitable for me.

I could login to DevHub by Command Prompt.
But I could not login to DevHub by Force.com IDE 2 

*** in case of using Commant Prompt
Check
  internet options > lan settings > bypass proxy server for local addresses
on, because the login process seems to pass localhost(1717),
and this page should not be via proxy.
Then type command
  set https_proxy=[your proxy adress]
then you can login to DevHub using OAuth.

*** in case of using Force.com IDE 2
I think Force.com IDE 2 uses Salesforce DX or Salesforce CLI internally.
But there is no chance to type a command like
  set https_proxy=[your proxy adress] .
I have no idea how to realize this.


Do you have any good idea to login to DevHub using Force.com IDE 2 ?
 
Hello. I'm not good at English...(I'm from Japan.)
Have you viewed Apex Test Class Result with Apex Code highlighted in blue and red?
I want to create the same thing at Local Program. The language is VB.net.
The purpose is to create Test Class more Efficiently.

I knew that about Apex Test Class, we can get these data by soql.
・ApexTestQueueItem
・ApexTestResult
・ApexTestResultLimits
・ApexTestRunResult
・ApexTestSuite

I couldn't find any properties directly reffering to 'which code-line is covered'.
So, my idea to realize this is as below.

1. query ApexTestResult->ApexLogId
2. query ApexLog using previous id.
3. parse Apex Log
4. collect 'STATEMENT_EXECUTE' type log with code-row-number.
5. view Apex Code, and highlight collected code-rows-number.

Then, there is a problem.
I saw many time Apex Logs by Apex Test Class execution contains so many Log Rows, 
that leads to loss of Log Rows. (Salesforce says this loss of log is by design.)

Do you have any good idea to realize my idea?
Thanks for read.

 
Hi there, 

I am creating a new custom formula field (text) that will show the specific auto-number why recordtype. I need to change the formatting for autonumber from

MP-0315  to CM-0315 (an example)

Only if RecordType.Id = "xxxxxxxxxxxxxxx"

I have this code: 
IF(RecordType.Id = "xxxxxxxxxxxxxxx", "CM-"+ MID(Name, 3,5),Name)

However, this is not working. Any ideas? 

Thank you. 

Natto
  • March 06, 2020
  • Like
  • 0
HII All,
         Next visit should be greater than 30 days than Appointment Created Date:
       Next_visit__c<(Date value(Created Date )+30)
But its Showing An Error i.e, Error: Syntax error. Found 'Date'
 
Hi


Please, help to set up proxy for SFDX CLI.

I'm trying:
sfdx update

I'm getting:
If you are behind a proxy, please make sure that the network 'proxy' config is set properly.  See: 'npm help config'

Regards, Aliaksandr Satskou