기본 콘텐츠로 건너뛰기 보완적인 콘텐츠로 건너뛰기

Replace Field Names In List

The replace field names in list block replaces the field names used in a list with another field name.

replace filed names in list block

A replace field names in list block is commonly used in the following situation:

  • When an automation contains a list, and you want to change one or more of the field names.

Configuring a replace field names in list block

Configure the replace filed names in list block to replace existing field names with new field names.

정보 메모

List blocks do not use iterators. This means that lists are loaded in memory before doing the processing of any data. If your automation contains large lists, the automation might fail with an out-of-memory error. Instead, use a loop block to iterate through large lists.

Inputs

The replace field names in list block requires a list and a field name to replace. The list can be field mapped from a preceding block. Enter the field name to replace and the new field name.

Settings

The Settings tab is where you can tell the block to either keep or remove the all other field names in the list. If you choose to remove them, the new list only contains the items for field names you replaced.

Replace field names in list block settings

replace field names in list settings

Example of replacing field names in a list

Input list:

[
      {"mail": "john@doe.com", "fname": "John", "lname": "Doe"},
      {"mail": "bill@acme.com", "fname": "Bill", "lname": "Davis" }
]

The list above is the input list. It contains two objects with three key-value pairs. The new field name is email and all values {$.inputs.mail} are replaced with the new field name.

Replace field names in list input fields

replace field names in list input

The replace field names in list block produces the following list:

[
      {"email": "john@doe.com", "fname": "John", "lname": "Doe"},
      {"email": "bill@acme.com", "fname": "Bill", "lname": "Davis" }
]

이 페이지가 도움이 되었습니까?

이 페이지 또는 해당 콘텐츠에서 오타, 누락된 단계 또는 기술적 오류와 같은 문제를 발견하면 개선 방법을 알려 주십시오!