• sfdc expert 3
  • NEWBIE
  • 30 Points
  • Member since 2016

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 3
    Replies
I want users to edit some particular field only on every friday,

For this i used following validation:

CASE( WEEKDAY(DATEVALUE(CreatedDate)),
2, ISCHANGED(Age_in_Years__c),
3, ISCHANGED(Age_in_Years__c),
4, ISCHANGED(Age_in_Years__c),
5, ISCHANGED(Age_in_Years__c),
NOT(ISCHANGED(Age_in_Years__c)))

but it is throwing an error: "Incorrect argument type for function 'CASE()'"

Can any one help me on this.

Thanks,
Ranga.V
Hello,

We need to automatically Share a Parent record when a Child record is shared to a User through Manual Sharing Button.Can anyone please let me know,How to implment this solution.

Thanks
I want users to edit some particular field only on every friday,

For this i used following validation:

CASE( WEEKDAY(DATEVALUE(CreatedDate)),
2, ISCHANGED(Age_in_Years__c),
3, ISCHANGED(Age_in_Years__c),
4, ISCHANGED(Age_in_Years__c),
5, ISCHANGED(Age_in_Years__c),
NOT(ISCHANGED(Age_in_Years__c)))

but it is throwing an error: "Incorrect argument type for function 'CASE()'"

Can any one help me on this.

Thanks,
Ranga.V
Hello,

I am facing an issue while Cloning Opps & Quotes, reason being I am adding a special T&C only if they select certain kind of product with specific duration. So its runtime determined whether I will be adding T&C to the quote.
Now the issue is suppose the quote has those special T&C's, now when I am cloning the opp/ cloning the quote, it clones T&C's too, which is fine.
But during cloning there is an event on quotelineitem after insert which runs my trigger on quotelineitem that checks if a specific product is inserted with specific duration then insert the special T&C.
So in the end I am recieving duplicate T&C's in the quote.
How can I indicate the trigger that's fired on insert of Quotelineitem, that its a clone action, so this time at the time of insertion don't fire.
Whereas the trigger at quotelineitem can be fired while update/delete.

Thanks in advance!