Replace special character in webhook xml body
I have defined a webhook in ZohoCrm .I have defined my webhook body like this
<data> <id>${Sales Orders.Sales Order Id}</id> <SO_Number>${Sales Orders.SO Number}</SO_Number> <SO_Owner>${Sales Orders.Sales Order Owner}</SO_Owner> <SO_Subject>${Sales Orders.Subject}</SO_Subject> <SO_CustomerNo>${Sales Orders.Customer No.}</SO_CustomerNo> <SO_QuoteName>${Sales Orders.Quote Name}</SO_QuoteName> <SO_Pending>${Sales Orders.Pending}</SO_Pending> <SO_Carrier>${Sales Orders.Carrier}</SO_Carrier> <SO_SalesCommission>${Sales Orders.Sales Commission}</SO_SalesCommission> <SO_DealName>${Sales Orders.Deal Name}</SO_DealName> <SO_PurchaseOrder>${Sales Orders.Purchase Order}</SO_PurchaseOrder> <SO_DueDate>${Sales Orders.Due Date}</SO_DueDate> <SO_ContactName>${Sales Orders.Contact Name}</SO_ContactName> <SO_ExciseDuty>${Sales Orders.Excise Duty}</SO_ExciseDuty> <SO_Status>${Sales Orders.Status}</SO_Status> <SO_AccountName>${Sales Orders.Account Name}</SO_AccountName> <SO_BillStreet>${Sales Orders.Billing Street}</SO_BillStreet> <SO_BillCity>${Sales Orders.Billing City}</SO_BillCity> <SO_BillState>${Sales Orders.Billing State}</SO_BillState> <SO_BillCode>${Sales Orders.Billing Code}</SO_BillCode> <SO_BillCountry>${Sales Orders.Billing Country}</SO_BillCountry> <SO_ShipStreet>${Sales Orders.Shipping Street}</SO_ShipStreet> <SO_ShipCity>${Sales Orders.Shipping City}</SO_ShipCity> <SO_ShipState>${Sales Orders.Shipping State}</SO_ShipState> <SO_ShipCode>${Sales Orders.Shipping Code}</SO_ShipCode> <SO_ShipCountry>${Sales Orders.Shipping Country}</SO_ShipCountry> <SO_SubTotal_Doc>${Sales Orders.Sub Total}</SO_SubTotal_Doc> <SO_Discount_Doc>${Sales Orders.Discount}</SO_Discount_Doc> <SO_Tax_Doc>${Sales Orders.Tax}</SO_Tax_Doc> <SO_Adjustment_Doc>${Sales Orders.Adjustment}</SO_Adjustment_Doc> <SO_GrandTotal_Doc>${Sales Orders.Sub Total}</SO_GrandTotal_Doc> <SO_TermsandConditions>${Sales Orders.Terms and Conditions}</SO_TermsandConditions> <SO_Description>${Sales Orders.Description}</SO_Description> </data>
In subject field there can be special characters like (&,<,>) etc I want to replace these special characters with escape characters .For that I have tried this ${Sales Orders.Subject.replaceAll("&","")}.but it is giving unsupported field error.What is the solution for this.
Access your files securely from anywhere
Zoho Developer Community
Deliver unforgettable customer experiences
Deliver unforgettable customer experiences
New to Zoho Marketing Plus?
Everything you need to run your marketing
New to Zoho Marketing Plus?
Everything you need to run your marketing
Zoho Desk Resources
-
Desk Community Learning Series
-
-
-
-
-
-
-
-
-
Zoho TeamInbox Resources
Zoho DataPrep Resources
Zoho CRM Plus Resources
Zoho Books Resources
Zoho Subscriptions Resources
Zoho Projects Resources
Zoho Sprints Resources
Qntrl Resources
Zoho Creator Resources
Zoho Campaigns Resources
Zoho CRM Resources
Zoho Show Resources
Writer Get Started. Write Away!
Writer is a powerful online word processor, designed for collaborative work.