We're migrating from using a FaaS built by CnP that includes several 'Custom Questions' as hidden inputs. We're moving instead to posting transactions via the SOAP API.
I've been trying to pass in values for these custom questions using the 'CustomParameter' tags inside the API XML. However, as far as I can tell none of that information makes it into Salesforce at all.
My CustomParameters XML looks like this:
<CustomParameters>
<Parameter>
<Field>FieldValue2</Field>
<Value>{{ sf_campaign_name }}</Value>
</Parameter>
<Parameter>
<Field>FieldValue3</Field>
<Value>{{ entity }}</Value>
</Parameter>
<Parameter>
<Field>FieldValue4</Field>
<Value>{{ fund }}</Value>
</Parameter>
<Parameter>
<Field>FieldValue5</Field>
<Value>{{ community }}</Value>
</Parameter>
</CustomParameters>
We have triggers inside Salesforce that run on the custom questions we've been getting from our current iframed form, so it would be easiest if I could pass values in to the custom questions, but I'm also okay if it goes into some different field.
I've read through the (pretty threadbare) documentation on the CustomParameters tags, and that didn't clarify things.
On a related note, is there a way for me to get the CnP Transaction ID (in Salesforce) or the Donation/Opportunity ID from the API? There are other fields we would like to set as well, and the response from the API doesn't point to any Salesforce records.
Thank you!
I've been trying to pass in values for these custom questions using the 'CustomParameter' tags inside the API XML. However, as far as I can tell none of that information makes it into Salesforce at all.
My CustomParameters XML looks like this:
<CustomParameters>
<Parameter>
<Field>FieldValue2</Field>
<Value>{{ sf_campaign_name }}</Value>
</Parameter>
<Parameter>
<Field>FieldValue3</Field>
<Value>{{ entity }}</Value>
</Parameter>
<Parameter>
<Field>FieldValue4</Field>
<Value>{{ fund }}</Value>
</Parameter>
<Parameter>
<Field>FieldValue5</Field>
<Value>{{ community }}</Value>
</Parameter>
</CustomParameters>
We have triggers inside Salesforce that run on the custom questions we've been getting from our current iframed form, so it would be easiest if I could pass values in to the custom questions, but I'm also okay if it goes into some different field.
I've read through the (pretty threadbare) documentation on the CustomParameters tags, and that didn't clarify things.
On a related note, is there a way for me to get the CnP Transaction ID (in Salesforce) or the Donation/Opportunity ID from the API? There are other fields we would like to set as well, and the response from the API doesn't point to any Salesforce records.
Thank you!
Comment