HomeGuidesAPI Reference
Submit Documentation FeedbackJoin Developer CommunityOptimizely GitHubOptimizely NuGetLog In

setAttributesByFilter

Defines new values for specific attributes of all recipients contained in a specific recipient list in Optimizely Campaign.

Type: void

Parameters

NameTypeValue
sessionIdStringID of the session
recipientListIdlongID of the recipient list
recipientFilterIdlongID of the recipient
attributeNamesString[ ]Names of the fields (e.g. firstname, lastname etc.) to be updated
attributeValuesString[ ]New values for the attributes/fields defined with attributeNames.

Each entry must be formatted according to the formatting rules.
modeStringFor fields of the type String this parameter can be set to:
  • set (overwrite)
  • prepend
  • append
  • For all other types the value is set by default.
  • |

    Return values

    • Code structure

      void setAttributesByFilter(String sessionId, long recipientListId, long recipientFilterId, String[] attributeNames, String[] attributeValues, String mode)
      

    Did this page help you?