Skip to main content

Posts

Showing posts with the label sfmc

Salesforce Marketing Cloud : Ampscript in 10 Minutes

Salesforce Marketing Cloud Ampscript in 10 Minutes Variables %%[ Var @a Set @a = 10 ]%% <h1>%%=v(@a)=%%</h1> Lookup Lookup ( "DENAME" , "EmailAddress" , "SubscriberKey" ,   @lookupValue ) LookupRows set @rows = LookupRows ( "DENAME" , "flag" , true ) set @rowCount = rowcount ( @rows ) if @rowCount > 0 then    for @i = 1 to @rowCount do      var @emailAddress , @firstName , @rank      set @row = row ( @rows , @i )        set @emailAddress = field ( @row , "emailAddress" )     ]%%     <br>emailAddress: %%= v ( @emailAddress ) =%%      %%[  next @i ]%% %%[ else ]%% No rows found %%[ endif ]%% InsertDE This function inserts a row in a Data Extension InsertDE ( "DENAME" , "EmailAddress" ,   @emailAddress , "SubscriberKey" ,   @subscriberKey ) UpdateDE This function updates the Data Exten...