I want to update an 'all subscribers' custom attribute in the parent bu to match what is in my sending DE in my child unit.

Currently i have a custom attribute in 'all subscribers' called 'contact_type_cd'. I also have a sending DE with a matching column name 'contact_type_cd'. Whatever the value is in my sending DE of my child BU, i want to be updated to the 'all subscribers' level.

For example if my 'subscriber_key' in my sending DE has a value of "dog" in 'contact_type_cd' column i want that same key to reflect the "dog" value in 'all subscribers' if it were to have a value of lets say "animal".

I was hoping the updateDE ampscript function would work, but it doesnt seem to since it is all subscribers or unless my code is wrong.

 set @subscriber_key = AttributeValue('subscriber_key')

 set @contact_type_cd = "dog"

 UpdateDE("_subscribers",1,"subscriber_key", @subscriber_key, 
 "contact_type_cd", @contact_type_cd)

Is there any other ampscript that i could put in my email that would execute my need at send time? or possibly a simple automation?


_Subscribers is not a DE that you can update. To update a profile attribute I would recommend an api call, which you can do through ampscript if need be or ssjs

<soap-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://exacttarget.com/wsdl/partnerAPI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <wsse:Security SOAP-ENV:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
            <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">xxx</wsse:Password>
         <ns1:Objects xsi:type="ns1:Subscriber">
               <ns1:Name>First Name</ns1:Name>
               <ns1:Name>Last Name</ns1:Name>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.