Guest User

Untitled

a guest
Mar 19th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. %%[
  2. var @rs, @rsRow, @FullName, @AccountName, @Lookup
  3. Set @Lookup = AttributeValue("_subscriberkey")
  4. Set @rs= RetrieveSalesforceObjects('Contact', 'Id, Name,Account.Name', 'Id', '=', @Lookup)
  5.  
  6. IF RowCount(@rs) > 0 THEN
  7. FOR @i = 1 to RowCount(@rs) DO
  8. SET @rsRow = Row(@rs, @i)
  9. SET @FullName = Field(@rsRow, "Name") // Works
  10. SET @AccountName = Field(@rsRow, "Account.Name") // Always blank
  11.  
  12. NEXT @i
  13. ENDIF
  14. ]%%
Add Comment
Please, Sign In to add comment