Skip to content

Question about adding recipients to group #4

@cesidio

Description

@cesidio

Hi,

I didn't understand how to clear dynamic fields when adding (multiple times) recipients to a group. Our purpose is to update the recipient.

Ruby:

group.add_recipients [{ Email: 'cesidio@example.com', Name: 'C', Fields: [{Id: 3, Value: 'Nature'}, {Id: 4, Value: 'London'}]}]
group.add_recipients [{ Email: 'cesidio@example.com', Name: 'C', Fields: [{Id: 3, Value: 'Nature'}, {Id: 4, Value: ''}]}]

Results

> y group.recipients

---
IsPaginated: false
Items:
- Email: cesidio@example.com
  Fields:
  - Description: azienda
    Id: 3
    Value: Nature
  - Description: città
    Id: 4
    Value: London

> group.add_recipients [{ Email: 'cesidio@example.com', Name: 'C', Fields: [{Id: 3, Value: 'Nature'}, {Id: 4, Value: ''}]}]

> y group.recipients

---
IsPaginated: false
Items:
- Email: cesidio@example.com
  Fields:
  - Description: azienda
    Id: 3
    Value: Nature
  - Description: città
    Id: 4
    Value: London

I also tried { Id: 4, Value: nil }, { Id: 4 } (this one doesn't work at all), { Id: 4, Value: ' ' }. An example would be great

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions