Skip to content

Zalo — Follower fields ​

List user fields — zalo.list_user_fields ​

List the OA's custom user fields.

Side effectRiskNeeds approvalIdempotentScopes
NONElownoyes—

Input

No input.

Extra fields: ignored.

Output

FieldTypeDescription
dataobjectThe 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.

Create user field — zalo.create_user_field ​

Create a custom user field.

Side effectRiskNeeds approvalIdempotentScopes
WRITEmediumyesno—

Input

FieldTypeRequiredDescription
namestringyesCustom field name.
display_namestringyesName shown in OA Manager.
typestringyesField type, e.g. text, number, date or choice.
choicesarray of stringnoOptions for choice fields.

Extra fields: ignored.

Output

FieldTypeDescription
dataobjectThe 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.

Update user field — zalo.update_user_field ​

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

Side effectRiskNeeds approvalIdempotentScopes
WRITEmediumyesno—

Input

FieldTypeRequiredDescription
namestringyesCustom field name.
display_namestringnoName shown in OA Manager.
choicesarray of stringnoOptions for choice fields.

Extra fields: ignored.

Output

FieldTypeDescription
dataobjectThe 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.

Delete user field — zalo.delete_user_field ​

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

Side effectRiskNeeds approvalIdempotentScopes
WRITEhighyesno—

Input

FieldTypeRequiredDescription
namestringyesCustom field name.

Extra fields: ignored.

Output

FieldTypeDescription
dataobjectNot returned: Zalo replies only error and message.