• Soumo
  • NEWBIE
  • 0 Points
  • Member since 2011

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 3
    Replies

Hi All,

 

We have developed a managed App (published) and is currently used by our clients. It has custom fields and custom links.

 

Can we change the address of custom links? If so can you let me know how and where can I find any documentation related to it.

 

Any help on this is greatly appreciated.

 

Thanks

Srini

Someone was kind enough to help me work through to get the following trigger, now I need some help building test coverage so I can deploy. thanks.

 

 

trigger NextTaskInfo on Task (after insert, after update) {
          

  if(Trigger.new.size() == 1 ) {

    Task tk = Trigger.New[0];
    String str = tk.whatid;
    if(str != null && str.substring(0,3)== '006')
    {

         Opportunity opp = [select OwnerId,NextTaskSubject__c,Next_Task_Date__c from Opportunity where Id = :tk.WhatId ];

        List<Task> tskMin = [Select ActivityDate,Subject From Task where whatid=:tk.whatid and  what.type = 'Opportunity' and isClosed  = false order By ActivityDate limit 1];  

        if (tskMin.size()>0) {
                opp.Next_Step_Date__c=tskMin[0].ActivityDate;
                opp.NextTaskSubject__c=tskMin[0].Subject;
        }
        else {
                opp.Next_Step_Date__c=null;        
                opp.NextTaskSubject__c='';
        }
        update opp;
    }
}
}

                          

 

 

  • May 02, 2011
  • Like
  • 0

I need to automaticlly update a date field by using Workflow capabilities
We created a contract and need to have a date field with "conteract's future end date"
This field should be calculated as followed:
1. as long as the contract is active
2. in the contract we have fields:
"first contract's terms" = (X number of months)
"adittional contract's terms" = (Y number of months)
3 once a contract is acivated:
"conteract's future end date" sould be "activation date + "first contract's terms"
4. as long as the contract is active, every time the "contract's future end date" = TODAY. the system shoud add to this date the "adittional contract's terms"
Can someone helop me in setting this up?
Thanks
Roee

  • April 30, 2011
  • Like
  • 0