DR Wont update Affiliate ID using SQL Completion Event
Last Post 01-08-2013 10:29 AM by Ryan Bakerink. 2 Replies.
AddThis - Bookmarking and Sharing Button
Author Messages
Matthew CrowshawUser is Offline
wading in the water
wading in the water
Posts:20
Avatar

--
01-03-2013 12:11 PM

    Trying to use a simple SQL statement to update affiliate id field, it appears to be firing when used, however the update to affiliate id is not happening.
    Version info: 4.20.20.0 / 6.2.5


    Debug shows this: Executing SQL Event
    SQL Query: UPDATE dnn_users SET AffiliateId = 49 WHERE UserId = 1


    Completion Event has this entry (LMS-ORGID is defaulted to 49 as a hidden field. This user's hidden field is correctly set to 49):

    UPDATE dnn_users
    SET AffiliateId = $(LMS-ORGID)
    WHERE UserId = $(UserID)

    What am I missing?

    Thanks,
    Matt

    Matthew CrowshawUser is Offline
    wading in the water
    wading in the water
    Posts:20
    Avatar

    --
    01-03-2013 03:16 PM
    Figured it out -- going after the wrong table name. Should have been just Users not dnn_Users
    Ryan BakerinkUser is Offline
    river guide
    river guide
    Posts:1900
    Avatar

    --
    01-08-2013 10:29 AM
    Sometimes it requires a forum post to resolve your own issue.

    Hope you have a great day!

    -Ryan


    ---
  • film izle
  • 720 izle
  • film
  • sinema izle
  • film makinesi
  • T�rk�e dublaj film
  • film izle
  • film izle
  • baglan film izle
  • sinema izle
  • 1080 film izle
  • film mercegi