Keeping a constituent's original source when calling UpdateAccountInfoEx2()

Former Member
Former Member $organization

How do I preserve a constituent's original source when calling UpdateAccountInfoEx2()?  According to the Web API Documentation V10.0 on page 425, passing zero "use[s] the default original source".  Does this mean that it resets the original source to the web default?  If so, how can I retrieve the current original source ID to pass into this method?  GetAccountInfo() returns the description of the current original source, but not its ID.

Thanks,
Bryan

Parents
  • Hi Bryan,

    While I don't have a direct answer. I would suggest testing to see if the documentation is vague. Assuming you have a test API, you could call GetAccountInfo() for a user, then call UpdateAccountInfoEx2(...) passing in a zero, then call GetAccountInfo() again and verify if the Source ID has changed or not...

    If I have some time later I will try this out. If you get to try it out sooner, would you post results?

    Regards,

    Sam

  • Former Member
    Former Member $organization in reply to Samuel Menard

    Hi Sam,

    Thanks for the encouragement.  I tested UpdateAccountInfoEx2() on my own constituent, and passing zero did not cause any change.  As you seemed to suspect, in this case what the documentation refers to as "default original source" really means "current original source".  Good to know!

    Bryan

Reply
  • Former Member
    Former Member $organization in reply to Samuel Menard

    Hi Sam,

    Thanks for the encouragement.  I tested UpdateAccountInfoEx2() on my own constituent, and passing zero did not cause any change.  As you seemed to suspect, in this case what the documentation refers to as "default original source" really means "current original source".  Good to know!

    Bryan

Children