Skip to content

Zalo — Trường thông tin người theo dõi ​

Danh sách trường tùy chỉnh (List user fields) — zalo.list_user_fields ​

List the OA's custom user fields.

Tác độngRủi roCần duyệtIdempotentScopes
NONElowkhôngcó—

Input

Không có input.

Field thêm: bỏ qua.

Output

FieldNhãnKiểuMô tả
dataKết quảobjectThe OA's user fields.
data.fieldsarray of objectUser fields, system and custom.
data.fields[].keystringKey of the field.
data.fields[].namestringName of the field.
data.fields[].descriptionstringWhat the field is for.
data.fields[].statusstringactive or inactive.
data.fields[].data_typestringData type: boolean, number, text, datetime, table, email, phone or url; system fields can also be id, tag, gender or location.
data.fields[].value_uniquebooleanTrue when values must be unique. Only user_external_id and user_id today.
data.fields[].field_typestringsystem or oa_custom.
data.fields[].additional_formatstringDate format, e.g. dd/MM/yyyy. Only for datetime fields.
data.fields[].additional_fieldsarray of objectColumns of the table. Only for table fields.
data.fields[].additional_fields[].keystringKey of the column.
data.fields[].additional_fields[].data_typestringData type of the column.
data.fields[].additional_fields[].additional_formatstringDate format of the column. Only for datetime columns.

Tạo trường tùy chỉnh (Create user field) — zalo.create_user_field ​

Create a custom user field.

Tác độngRủi roCần duyệtIdempotentScopes
WRITEmediumcókhông—

Input

FieldNhãnKiểuBắt buộcMô tả
nameTên trườngstringcóCustom field name.
display_nameTên hiển thịstringcóName shown in OA Manager.
typeKiểu dữ liệustringcóField type, e.g. text, number, date or choice.
choicesLựa chọnarray of stringkhôngOptions for choice fields.

Field thêm: bỏ qua.

Output

FieldNhãnKiểuMô tả
dataKết quảobjectThe field that was created.
data.keystringKey of the field.
data.namestringName of the field.
data.descriptionstringWhat the field is for.
data.statusstringactive or inactive.
data.data_typestringData type: boolean, number, text, datetime, table, email, phone or url; system fields can also be id, tag, gender or location.
data.value_uniquebooleanTrue when values must be unique. Only user_external_id and user_id today.
data.field_typestringsystem or oa_custom.
data.additional_formatstringDate format, e.g. dd/MM/yyyy. Only for datetime fields.
data.additional_fieldsarray of objectColumns of the table. Only for table fields.
data.additional_fields[].keystringKey of the column.
data.additional_fields[].data_typestringData type of the column.
data.additional_fields[].additional_formatstringDate format of the column. Only for datetime columns.

Cập nhật trường tùy chỉnh (Update user field) — zalo.update_user_field ​

Change a custom user field's display name or choices.

Tác độngRủi roCần duyệtIdempotentScopes
WRITEmediumcókhông—

Input

FieldNhãnKiểuBắt buộcMô tả
nameTên trườngstringcóCustom field name.
display_nameTên hiển thịstringkhôngName shown in OA Manager.
choicesLựa chọnarray of stringkhôngOptions for choice fields.

Field thêm: bỏ qua.

Output

FieldNhãnKiểuMô tả
dataKết quảobjectThe field after the update, with its full current settings.
data.keystringKey of the field.
data.namestringName of the field.
data.descriptionstringWhat the field is for.
data.statusstringactive or inactive.
data.data_typestringData type: boolean, number, text, datetime, table, email, phone or url; system fields can also be id, tag, gender or location.
data.value_uniquebooleanTrue when values must be unique. Only user_external_id and user_id today.
data.field_typestringsystem or oa_custom.
data.additional_formatstringDate format, e.g. dd/MM/yyyy. Only for datetime fields.
data.additional_fieldsarray of objectColumns of the table. Only for table fields.
data.additional_fields[].keystringKey of the column.
data.additional_fields[].data_typestringData type of the column.
data.additional_fields[].additional_formatstringDate format of the column. Only for datetime columns.

Xóa trường tùy chỉnh (Delete user field) — zalo.delete_user_field ​

Delete a custom user field and the values users stored in it.

Tác độngRủi roCần duyệtIdempotentScopes
WRITEhighcókhông—

Input

FieldNhãnKiểuBắt buộcMô tả
nameTên trườngstringcóCustom field name.

Field thêm: bỏ qua.

Output

FieldNhãnKiểuMô tả
dataKết quảobjectNot returned: Zalo replies only error and message.