zaus / forms-3rdparty-xpost

Converts external submission from [Forms: 3rdparty Integration](http://wordpress.org/plugins/forms-3rdparty-integration/) plugin to XML post; optionally can add custom headers (to allow SOAP submissions).
4 stars 2 forks source link

help with xml mapping (for Zoho) #22

Closed texasfalcon closed 7 years ago

texasfalcon commented 8 years ago

Can you tell me the best way to map the following, where Company, First Name, and Last Name are the 3rd party fields and the form submission fields are your-company, first-name, and last-name:

`

Your Company Hannah Smith

`

Thanks!

zaus commented 7 years ago

Sorry for the late reply, but according to the Zoho API for insertRecords you'll need to write a hook to send the mapped response as an XML string (which I've explained in #5).

Other than that, I think you can map using the mask format, so you'd set up the root with a placeholder like

<Leads><row no="1'>%s</row></Leads>

And then set up each mapping like

your_company_field   -->   <FL val="Whatever">%s</FL>