1 parent
0ce98ec613
commit
f4fe2a6770
1 file changed
+18
-1
+18
-1
@@ -97,8 +97,25 @@ def do_bitable_record_add(data) -> None:
|
||||
return
|
||||
|
||||
target_action = actions[0]
|
||||
record_id = target_action.get("record_id")
|
||||
after_value: list = target_action.get("after_value")
|
||||
|
||||
action_data = {}
|
||||
|
||||
for field in after_value:
|
||||
if field.get("field_id") == "fldIV2G9lv":
|
||||
action_data["title"] == field.get("field_value")
|
||||
|
||||
if field.get("field_id") == "fldk5ImODy":
|
||||
action_data["background"] == field.get("field_value")
|
||||
|
||||
if field.get("field_id") == "fldfjXnFVa":
|
||||
action_data["features"] == field.get("field_value")
|
||||
|
||||
print(f"table_id: {table_id}")
|
||||
print(f"target_action: {target_action.get('record_id')}")
|
||||
print(f"record_id: {record_id}")
|
||||
print(f"target_action: {target_action.get('action')}")
|
||||
print(action_data)
|
||||
|
||||
|
||||
handler = (
|
||||
|
||||
Reference in new issue
Block a user