--- title: "Ejemplos" url: https://docs.catalyst.zoho.com/es/signals/help/targets/event-body-setup/samples/ description: "Algunos ejemplos de personalización del cuerpo del event antes de entregarlo a los targets para eficiencia operativa." last_updated: 2026-08-17T12:16:04Z service: Signals type: general --- # Ejemplos A continuación se muestra el sample event payload del event **Leads Created** del servicio **Zoho CRM** en Catalyst Signals. ### Sample Event Payload **Sample Event Payload** ```json { "rule_id": "123456789", "target_id": "98765432", "version": 1, "attempt": 1, "account": { "org_id": "85512289", "project": { "environment": "DEVELOPMENT", "name": "crm", "id": "10666000000021013" } }, "events": [ { "data": { "Owner": { "name": "Owner name", "id": "9876543210", "zuid": "654321" }, "Company": "Company", "Email": "test@zoho.com", "Lead_Status_Prediction": "value of picklist", "Last_Activity_Time": "2024-01-01T12:00:00+00:00", "Industry": "value of picklist", "Unsubscribed_Mode": "value of picklist", "Street": "Street", "Zip_Code": "Zip Code", "id": 9876543210, "Data_Source": "value of picklist", "Enrich_Status__s": "value of picklist", "Created_Time": "2024-01-01T12:00:00+00:00", "Change_Log_Time__s": "2024-01-01T12:00:00+00:00", "City": "City", "No_of_Employees": 1, "Data_Processing_Basis": "value of picklist", "Converted__s": true, "Converted_Date_Time": "2024-01-01T12:00:00+00:00", "Converted_Account": { "name": "lookup name", "id": "9876543210" }, "State": "State", "Country": "Country", "Created_By": { "name": "Owner name", "id": "9876543210", "zuid": "654321" }, "Annual_Revenue": 100, "Secondary_Email": "test@zoho.com", "Description": "Description", "Rating": "value of picklist", "Website": "https://catalyst.zoho.com", "Twitter": "Twitter", "Salutation": "value of picklist", "First_Name": "First Name", "Full_Name": "Full Name", "Lead_Status": "value of picklist", "Modified_By": { "name": "Owner name", "id": "9876543210" }, "Lead_Conversion_Time": 1, "Skype_ID": "Skype ID", "Phone": 9876543210, "Email_Opt_Out": true, "Designation": "Designation", "Modified_Time": "2024-01-01T12:00:00+00:00", "Lead_Status_Prediction_Score": 1, "Unsubscribed_Time": "2024-01-01T12:00:00+00:00", "Converted_Contact": { "name": "lookup name", "id": "9876543210" }, "Mobile": 9876543210, "Last_Name": "Last Name", "Locked__s": true, "Lead_Source": "value of picklist", "Tag": "Tag", "Fax": "Fax", "Last_Enriched_Time__s": "2024-01-01T12:00:00+00:00" }, "id": "c6b53699-94b1-48a1-86fd-80b8d4778e28", "time_in_ms": 1718780819204, "source": "publisher_id:10666000000021074/service:zohocrm/account:73756307", "event_config": { "api_name": "Leads Created", "id": "10666000000021075" } } ] } ``` Con la ayuda de este sample event payload, te guiaremos a través de dos patrones de transformación más utilizados para tus targets. ### Escenario 1: Transformación Simple Realicemos una transformación básica de agregar un nuevo par clave-valor y modificar los existentes para solo un objeto indexado particular en un array. #### Requerimientos del Nuevo Payload - Retener las claves existentes como Event ID, Lead ID y Email. - Agregar este nuevo par clave-valor **"is_transformed": true**. - Retener el nombre completo del Lead en una clave diferente llamada **Name**. #### Payload de Event Esperado **Expected Event Payload** ```json { "id" : 9876543210, "name" : "Full Name", "email" : "test@zoho.com", "event_id" : "c6b53699-94b1-48a1-86fd-80b8d4778e28", "is_transformed" : true } ``` 1. Abre un objeto JSON y agrega la clave "**id**", proporcionando el JSON path de la clave correspondiente en el sample event payload en lugar del valor. Repite este paso para las claves "**email**" y "**event_id**".  2. Para la clave "**name**", proporciona el JSON path de la clave Full_Name en el sample event payload. Finalmente, agrega este par clave-valor estático **"is_transformed": true** para denotar que este payload ha sido transformado para adaptarse a la orquestación configurada para el event particular.  También puedes copiar y pegar el siguiente compilador de plantillas para el event Lead Created en el servicio Zoho CRM para presenciar la transformación instantánea de tus payloads. **Template Compiler** ```json { "id" : $.events[0].data.id, "name" : $.events[0].data.Full_Name, "email" : $.events[0].data.Email, "event_id" : $.events[0].id, "is_transformed" : true } ``` > **Nota:** Esto aplica solo al primer objeto JSON indexado en el array de events.