Creating activities using a list

Former Member
Former Member $organization

Is there a simple way to insert an activity into every file on any given list?

(Apologies if this has been asked countless times before!)

Parents Reply Children
  • I run this cursor if I need to make bulk changes.  Once you have your list in List Manager you can enter the list number into the script and put your changes in where it says 'update'.  I last used this to change the activity status on our open day from 'accepted' to 'attended'.

    declare @CustId nchar(10)

    declare 

     

     

     

     

     

     

     

    @RowNum int

    declare 

     

     

     

     

     

     

     

    CustList cursor for

       select distinct a.customer_no

       from 

     

     

     

     

     

     

     

    t_list_contents a

       where 

     

     

     

     

     

     

     

    a.list_no = 14291  

    OPEN CustList

    FETCH 

     

     

     

    NEXT FROM CustList INTO @CustId

    set 

     

     

     

     

     

     

     

    @RowNum 0

    WHILE 

     

     

     

     

     

     

     

    @@FETCH_STATUS 0

    BEGIN

        

     

    update T_special_activity 

        

     

    SET status = '3'

         WHERE customer_no @CustId 

        

     

    and sp_act_dt = '2009-02-27 00:00:00.000'

    FETCH NEXT FROM CustList

     

     

    INTO @CustId END

    CLOSE 

     

    CustList DEALLOCATE CustList



    [edited by: Suzanne Bridger at 4:07 AM (GMT -6) on 11 Jun 2009]