we have been running Purecloud for salesforce campaign integration in a customer succesfully for a while. However recently we are seeing sometimes that when we add new campaing member to Salesforce campaigns, they are not added like new contacts in the linked Genesys contact list/campaign. We see this error in Salesforce side:
We wonder how is it possible to get a "malformed" error type if info comes from Salesforce, we don't build the API call via custom code, it's the Purecloud for Salesforce package who does it.
The purecloud campaign management should handle the building of the url and payloads as you stated but it can run into issues when you are passing additional fields, phone fields, and other custom properties from the campaign member records. Custom fields and mappings can contain unsupported characters, size, or be the incorrect formate according to the api. For example if you map additional phone fields, but the field is populated with a string that can not be converted into the phone number, it can generate a 400 level error. If you have not made any significant changes to your environment you may need to contact your support partner for more information around the specifics of that error by providing them with the correlationId that has been saved as part of the Purecloud Log entry in Salesforce.