Need help for setting new trigger

i am new to pipedream
i have just came from pabbly connect
for trigger i have set webhook from zohobooks
but response body is weird

JSONString=%7B%22invoice%22%3A%7B%22chatlet_count%22%3A0%2C%22can_send_in_mail%22%3Afalse%2C%22bcy_shipping_charge_tax%22%3A%22%22%2C%22gst_no%22%3A%22%22%2C%22tax_reg_no%22%3A%22%22%2C%22is_eway_bill_required%22%3Atrue%2C%22tax_specification%22%3A%22inter%22%2C%22stop_reminder_until_payment_expected_date%22%3Afalse%2C%22customer_default_billing_address%22%3A%7B%22zip%22%3A%22226001%22%2C%22country%22%3A%22India%22%2C%22address%22%3A%22Room+no+13+UPPCL+FIELD+HOSTEL+UP+Tech+Chauraha+Near+Dainik+Jagran+Rana+Pratap+Marg%22%2C%22city%22%3A%22Lucknow%22%2C%22phone%22%3A%229415900213%22%2C%22street2%22%3A%22%22%2C%22state%22%3A%22Uttar+Pradesh%22%2C%22fax%22%3A%22%22%2C%22state_code%22%3A%22%22%7D%2C%22inprocess_transaction_present%22%3Afalse%2C%22submitted_date_formatted%22%3A%22%22%2C%22estimate_id%22%3A%221302036000007181030%22%2C%22customer_custom_fields%22%3A%5B%7B%22customfield_id%22%3A%221302036000007002407%22%2C%22show_in_store%22%3Afalse%2C%22show_in_portal%22%3Afalse%2C%22is_active%22%3Atrue%2C%22index%22%3A1%2C%22label%22%3A%22Whatsapp+Mobile+Number%22%2C%22show_on_pdf%22%3Afalse%2C%22edit_on_portal%22%3Afalse%2C%22edit_on_store%22%3Afalse%2C%22show_in_all_pdf%22%3Afalse%2C%22value_formatted%22%3A%229415900213%22%2C%22search_entity%22%3A%22contact%22%2C%22data_type%22%3A%22phone%22%2C%22placeholder%22%3A%22cf_whatsapp_mobile_number%22%2C%22value%22%3A%229415900213%22%2C%22is_dependent_field%22%3Afalse%7D%5D%2C%22status_formatted%22%3A%22Partially+Paid%22%2C%22shipping_charge_tax_id%22%3A%22%22%2C%22ecomm_operator_name%22%3A%22%22%2C%22is_autobill_enabled%22%3Afalse%2C%22tax_treatment_formatted%22%3A%22Consumer%22%2C%22shipping_charge_tax_name%22%3A%22%22%2C%22discount_total%22%3A183071.42%2C%22tax_total%22%3A16071.43%2C%22write_off_amount%22%3A0%2C%22is_viewed_by_client%22%3Afalse%2C%22salesorder_id%22%3A%22%22%2C%22merchant_gst_no%22%3A%22%22%2C%22sub_statuses%22%3A%5B%5D%2C%22last_reminder_sent_date_formatted%22%3A%22%22%2C%22client_viewed_time_formatted%22%3A%22%22%2C%22email%22%3A%22%22%2C%22reason_for_debit_note%22%3A%22others%22%2C%22salesorders%22%3A%5B%5D%2C%22adjustment_description%22%3A%22Adjustment%22%2C%22currency_symbol%22%3A%22%5Cu20b9%22%2C%22gst_treatment_formatted%22%3A%22Consumer%22%2C%22ach_supported%22%3Afalse%2C%22shipping_bills%22%3A%5B%5D%2C%22type_formatted%22%3A%22Tax+Invoice%22%2C%22transaction_rounding_type%22%3A%22nearest_whole_number_rounding%22%2C%22roundoff_value%22%3A-0.01%2C%22contact_persons_details%22%3A%5B%5D%2C%22template_name%22%3A%22Spreadsheet+Template%22%2C%22cf_whatsapp_mobile_number%22%3A%229415900213%22%2C%22salesorder_number%22%3A%22%22%2C%22template_id%22%3A%221302036000000062031%22%2C%22customer_name%22%3A%22Kusum+Singh%22%2C%22total_formatted%22%3A%22%5Cu20b91%2C50%2C000.00%22%2C%22discount_total_formatted%22%3A%22%5Cu20b91%2C83%2C071.42%22%2C%22payment_terms_label%22%3A%22Due+on+Receipt%22%2C%22is_reverse_charge_applied%22%3Afalse%2C%22show_no_of_copies%22%3Atrue%2C%22notes%22%3A%22Bank+Details%3A-%5CnBeneficiary+Name+%3A+Spinefit+Medical+Pvt+Ltd%5CnBank+Name+%3A+HDFC+Bank+Ltd%5CnBank+Add+%3A+Aundh%2CPune%5CnAccount+No%3A+50200045801301%5CnIFSC+Code+%3A+HDFC0003981%22%2C%22documents%22%3A%5B%5D%2C%22client_viewed_time%22%3A%22%22%2C%22discount_amount%22%3A183071.42%2C%22ecomm_operator_id%22%3A%22%22%2C%22shipping_charge_inclusive_of_tax%22%3A0%2C%22payment_discount_formatted%22%3A%22%5Cu20b90.00%22%2C%22invoice_id%22%3A%221302036000007181052%22%2C%22contact_category%22%3A%22consumer%22%2C%22template_type%22%3A%22excel%22%2C%22recurring_invoice_id%22%3A%22%22%2C%22can_send_invoice_sms%22%3Atrue%2C%22contact_persons%22%3A%5B%5D%2C%22shipping_charge_tax%22%3A%22%22%2C%22gst_treatment%22%3A%22consumer%22%2C%22created_time%22%3A%222022-04-07T11%3A58%3A46%2B0530%22%2C%22created_date_formatted%22%3A%2207%2F04%2F2022%22%2C%22is_inclusive_tax%22%3Afalse%2C%22price_precision%22%3A2%2C%22sub_total_inclusive_of_tax_formatted%22%3A%22%5Cu20b90.00%22%2C%22tax_treatment%22%3A%22consumer%22%2C%22payment_discount%22%3A0%2C%22approvers_list%22%3A%5B%5D%2C%22shipping_charge_tax_percentage%22%3A%22%22%2C%22zcrm_potential_name%22%3A%22%22%2C%22adjustment%22%3A0%2C%22filed_in_vat_return_name%22%3A%22%22%2C%22discount_amount_formatted%22%3A%22%5Cu20b91%2C83%2C071.42%22%2C%22current_sub_status%22%3A%22partially_paid%22%2C%22due_date_formatted%22%3A%2207%2F04%2F2022%22%2C%22offline_created_date_with_time_formatted%22%3A%22%22%2C%22shipping_charge_inclusive_of_tax_formatted%22%3A%22%5Cu20b90.00%22%2C%22merchant_id%22%3A%22%22%2C%22gst_return_details%22%3A%7B%22status_formatted%22%3A%22%22%2C%22return_period%22%3A%22%22%2C%22status%22%3A%22%22%2C%22return_period_formatted%22%3A%22%22%7D%2C%22shipping_charge_exclusive_of_tax_formatted%22%3A%22%5Cu20b90.00%22%2C%22current_sub_status_id%22%3A%22%22%2C%22custom_field_hash%22%3A%7B%22cf_status_unformatted%22%3A%22Shipped%22%2C%22cf_status%22%3A%22Shipped%22%7D%2C%22tax_amount_withheld%22%3A0%2C%22ewaybills%22%3A%5B%5D%2C%22next_reminder_date_formatted%22%3A%22%22%2C%22shipping_charge_tax_type%22%3A%22%22%2C%22subject_content%22%3A%22%22%2C%22payment_expected_date%22%3A%22%22%2C%22is_emailed%22%3Afalse%2C%22unused_retainer_payments%22%3A0%2C%22offline_created_date_with_time%22%3A%22%22%2C%22shipping_charge%22%3A0%2C%22bcy_adjustment%22%3A0%2C%22allow_partial_payments%22%3Afalse%2C%22customer_custom_field_hash%22%3A%7B%22cf_whatsapp_mobile_number_unformatted%22%3A%229415900213%22%2C%22cf_whatsapp_mobile_number%22%3A%229415900213%22%7D%2C%22ecomm_operator_gst_no%22%3A%22%22%2C%22currency_id%22%3A%221302036000000000099%22%2C%22includes_package_tracking_info%22%3Afalse%2C%22zcrm_potential_id%22%3A%22%22%2C%22place_of_supply%22%3A%22UP%22%2C%22discount%22%3A183071.42%2C%22taxes%22%3A%5B%7B%22tax_amount%22%3A16071.43%2C%22tax_name%22%3A%22IGST12+%2812%25%29%22%2C%22tax_amount_formatted%22%3A%22%5Cu20b916%2C071.43%22%7D%5D%2C%22is_client_review_settings_enabled%22%3Afalse%2C%22billing_address%22%3A%7B%22zip%22%3A%22226001%22%2C%22country%22%3A%22India%22%2C%22address%22%3A%22Room+no+13+UPPCL+FIELD+HOSTEL+UP+Tech+Chauraha+Near+Dainik+Jagran+Rana+Pratap+Marg%22%2C%22city%22%3A%22Lucknow%22%2C%22phone%22%3A%229415900213%22%2C%22street%22%3A%22Room+no+13+UPPCL+FIELD+HOSTEL+UP+Tech+Chauraha+Near+Dainik+Jagran+Rana+Pratap+Marg%22%2C%22attention%22%3A%22%22%2C%22street2%22%3A%22%22%2C%22state%22%3A%22Uttar+Pradesh%22%2C%22fax%22%3A%22%22%7D%2C%22line_items%22%3A%5B%7B%22line_item_id%22%3A%221302036000007181054%22%2C%22documents%22%3A%5B%5D%2C%22item_type%22%3A%22inventory%22%2C%22item_type_formatted%22%3A%22Inventory+Items%22%2C%22discount%22%3A0%2C%22zoho_recruit_jobopening_id%22%3A%22%22%2C%22discounts%22%3A%5B%5D%2C%22project_id%22%3A%22%22%2C%22sku%22%3A%22MASTERV3%2B%22%2C%22pricebook_id%22%3A%22%22%2C%22bill_id%22%3A%22%22%2C%22bcy_rate_formatted%22%3A%22%5Cu20b92%2C35%2C000.00%22%2C%22image_document_id%22%3A%22%22%2C%22expense_receipt_name%22%3A%22%22%2C%22item_total%22%3A235000%2C%22tax_id%22%3A%221302036000000062143%22%2C%22tags%22%3A%5B%5D%2C%22unit%22%3A%22SET%22%2C%22purchase_rate_formatted%22%3A%22%5Cu20b990%2C000.00%22%2C%22cost_amount%22%3A0%2C%22tax_type%22%3A%22tax%22%2C%22time_entry_ids%22%3A%5B%5D%2C%22cost_amount_formatted%22%3A%22%5Cu20b90.00%22%2C%22name%22%3A%22Master+V3%2B%22%2C%22bcy_rate%22%3A235000%2C%22item_total_formatted%22%3A%22%5Cu20b92%2C35%2C000.00%22%2C%22salesorder_item_id%22%3A%22%22%2C%22rate_formatted%22%3A%22%5Cu20b92%2C35%2C000.00%22%2C%22has_product_type_mismatch%22%3Afalse%2C%22header_id%22%3A%22%22%2C%22purchase_rate%22%3A90000%2C%22description%22%3A%22%22%2C%22gst_treatment_code%22%3A%22%22%2C%22item_order%22%3A0%2C%22bill_item_id%22%3A%22%22%2C%22rate%22%3A235000%2C%22account_name%22%3A%22Sales%22%2C%22hsn_or_sac%22%3A%2290191020%22%2C%22quantity%22%3A1%2C%22item_id%22%3A%221302036000000452034%22%2C%22reverse_charge_tax_id%22%3A%22%22%2C%22tax_name%22%3A%22IGST12%22%2C%22header_name%22%3A%22%22%2C%22item_custom_fields%22%3A%5B%5D%2C%22product_type%22%3A%22goods%22%2C%22account_id%22%3A%221302036000000000388%22%2C%22tax_percentage%22%3A12%2C%22expense_id%22%3A%22%22%2C%22has_invalid_hsn%22%3Afalse%7D%2C%7B%22line_item_id%22%3A%221302036000007181056%22%2C%22documents%22%3A%5B%5D%2C%22item_type%22%3A%22inventory%22%2C%22item_type_formatted%22%3A%22Inventory+Items%22%2C%22discount%22%3A0%2C%22zoho_recruit_jobopening_id%22%3A%22%22%2C%22discounts%22%3A%5B%5D%2C%22project_id%22%3A%22%22%2C%22sku%22%3A%22ceramonicmat%22%2C%22pricebook_id%22%3A%22%22%2C%22bill_id%22%3A%22%22%2C%22bcy_rate_formatted%22%3A%22%5Cu20b945%2C000.00%22%2C%22image_document_id%22%3A%22%22%2C%22expense_receipt_name%22%3A%22%22%2C%22item_total%22%3A45000%2C%22tax_id%22%3A%221302036000000062143%22%2C%22tags%22%3A%5B%5D%2C%22unit%22%3A%22SET%22%2C%22purchase_rate_formatted%22%3A%22%5Cu20b95%2C000.00%22%2C%22cost_amount%22%3A0%2C%22tax_type%22%3A%22tax%22%2C%22time_entry_ids%22%3A%5B%5D%2C%22cost_amount_formatted%22%3A%22%5Cu20b90.00%22%2C%22name%22%3A%22Ceramonic+Mat%22%2C%22bcy_rate%22%3A45000%2C%22item_total_formatted%22

can any1 help me ??
its not proper json ??

Hi @drdaga

It looks like the JSONstring is URL encoded JSON, which is very odd indeed.

Perhaps try URL decoding that string with a Node.js step in Pipedream before trying to use it in your other workflow steps?

can u share the node sample code step for decoding the string ??

i tried to use in following ways but with no success

const encodedUrl = zohobooks.$return_value.body;

// Decode URL

const url = decodeURI(encodedUrl);

// Print URL

console.log(url);

Hi @drdaga,

Is it possible that zohobooks.$return_value.body is an object not a string?

If that’s the case you’ll need to drill down into the actual value containing the encoded string.

For example if there was a invoice property on the body:

const decodedUrl = zohobooks.$return_value.body.invoice;

// Decode URL

const url = decodeURI(encodedUrl);

// Print URL

console.log(url);

actually i needed to decode this response body from previous step