• Bj Larsson
  • NEWBIE
  • 10 Points
  • Member since 2015

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

I struggling to understand why the following returns an error:
(DATEVALUE (CloseDate) - TODAY ()) / (DATEVALUE (CloseDate) - DATEVALUE (CreatedDate))

I'm trying to get the percentage of time remaining in the opportunity, part of this trail:
https://developer.salesforce.com/trailhead/force_com_admin_advanced/advanced_formulas/implementing_advanced_formulas 

The error I get is: Error: Incorrect argument type for function 'DATEVALUE()'. 

When I review the Advanced - date / time module, it give an example for how to calculate the number days using:
TODAY() - DATEVALUE(CreatedDate), and I'm stuck trying to figure out where I went wrong.

Any help would be greatly appreciated.

Thanks

Bjorn

 
Hi folks,

In the following trailhead https://developer.salesforce.com/trailhead/service_console_customize/service_console_customize_key it's suggesting building a custom shortcut (SHIFT-S) for logging out.
1) SHIFT-S is already enabled for 'goto field on tab'
https://res.cloudinary.com/hy4kyit2a/image/upload/v1461972551/doc/trailhead/en/1/3/images/service_console_customize_key_overlay_u.png
2) Since this is a beginner trailhead, the instructions in this section are not very clear
  • Yes, the link to the visualforce code works fine
  • It would be helpful to point the trailhead user to the module for creating a permission set and assigning it to a user (once the visualforce page has been created)
  • Otherwise it is quite hard for a new user to complete the exercise in the module
Perhaps some will find the comments useful :)

Bjorn
Hi folks,

I struggling to understand why the following returns an error:
(DATEVALUE (CloseDate) - TODAY ()) / (DATEVALUE (CloseDate) - DATEVALUE (CreatedDate))

I'm trying to get the percentage of time remaining in the opportunity, part of this trail:
https://developer.salesforce.com/trailhead/force_com_admin_advanced/advanced_formulas/implementing_advanced_formulas 

The error I get is: Error: Incorrect argument type for function 'DATEVALUE()'. 

When I review the Advanced - date / time module, it give an example for how to calculate the number days using:
TODAY() - DATEVALUE(CreatedDate), and I'm stuck trying to figure out where I went wrong.

Any help would be greatly appreciated.

Thanks

Bjorn

 
Hi folks,

In the following trailhead https://developer.salesforce.com/trailhead/service_console_customize/service_console_customize_key it's suggesting building a custom shortcut (SHIFT-S) for logging out.
1) SHIFT-S is already enabled for 'goto field on tab'
https://res.cloudinary.com/hy4kyit2a/image/upload/v1461972551/doc/trailhead/en/1/3/images/service_console_customize_key_overlay_u.png
2) Since this is a beginner trailhead, the instructions in this section are not very clear
  • Yes, the link to the visualforce code works fine
  • It would be helpful to point the trailhead user to the module for creating a permission set and assigning it to a user (once the visualforce page has been created)
  • Otherwise it is quite hard for a new user to complete the exercise in the module
Perhaps some will find the comments useful :)

Bjorn