× Form Help

Salesforce Error Messages

  • mecksite
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 0

mecksite created the topic: Salesforce Error Messages

Hello,
Unfortunately, we did not receive a direct response to our support request from Crosstec. Therefore I hope to find support here.

We use BF Pro in conjunction with Joomla 3.9.10. A Salesforce integration has taken place and works so far.

However, I need support for the following customer question:
The main thing we are trying to understand is where any error responses from Salesforce are stored within your application. If a web form attempts to create a Lead, for example, and there's some issue with Salesforce (say a Validation rule or required field), Salesforce returns to your app some error message. We cannot seem to find where those are stored.
I would be happy if someone has a tip for us
Kind Regards,
Karin
#237109
  • Posts: 5896
  • Karma: 118
  • Thank you received: 544

MarioPuco replied the topic: Salesforce Error Messages

Hi,

I just talked with my Dev and this is what I got :

"On errors, it should print the error message and halt all further page rendering"
We can create a simple "hack" so you get a full response in a log file :

1) Go to Joomla root/components/com_breezingforms/and open the facileforms.process.php
2) Replace everything below this :
$createResponse = $mySforceConnection->create(array($sObject));

with this :
ob_start();
			print_r($createResponse);
			$c = date('Y-m-d H:i:s') . ': ' . ob_get_contents() . "\r\n";
			ob_end_clean();

			file_put_contents(JPATH_SITE . '/sf.log', $c, FILE_APPEND);

		} catch (Exception $e) {

            $c = date('Y-m-d H:i:s') . ': ' . $e->getMessage() . "\r\n";
            file_put_contents(JPATH_SITE . '/sf.log', $c, FILE_APPEND);

			echo 'Salesforce Exception: ' . $e->getMessage();
			session_write_close();
			exit;
		}

3) With this replaced you should get a sf.log file in the website root.
You can change sf.log filename to something harder to guess.

Hope this helps.

Regards,
Mario

Satisfied with our Support ?
PayPal Tip
===============================================
Need to renew Pro Support?
Buy Here!
===============================================
Satisfied?
Consider a membership!
===============================================
Like us on Facebook
===============================================
#237127
The following user(s) said Thank You: mecksite
  • mecksite
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 0

mecksite replied the topic: Salesforce Error Messages

Hi Mario,
great - thank you for your help! I will try this out and give you a feedback about it
Best Regards,
Karin
#237128
  • Posts: 5896
  • Karma: 118
  • Thank you received: 544

MarioPuco replied the topic: Salesforce Error Messages

Hi,

Waiting for your feedback.
Let me know how it goes.

Regard,
Mario

Satisfied with our Support ?
PayPal Tip
===============================================
Need to renew Pro Support?
Buy Here!
===============================================
Satisfied?
Consider a membership!
===============================================
Like us on Facebook
===============================================
#237130
Moderators: ForumSupporttomeperica
Time to create page: 0.034 seconds

New Icon Packs Category!

Crosstec is now offering icon packs.

If you are a paying subscriber, icon packs are automatically added to your account.

Check out our icon packs page!

Live Support Chat Opened!

Join our Discord chat here to receive live support and talk directly to the team!

Summer Sale!

50% discount on all of our extension subscription plans, templates and icon packs!

Get Your Subscription Here

News and Updates

Get informed about new downloads, updates and more in our News and Updates newsletter.

All Extensions Subscription

Get 1 year access to all of our current and future products and 1 year of professional support -- 99 for just 49! (Summer Sale)

No support per domain or website installation limits! Includes all of our current and future Joomla!® extensions, Joomla!® templates for the duration of your membership. This means, by purchasing an All Extensions Subscription you'll have it all covered!

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!

Live Support Chat Opened!

Join our Discord chat here to receive live support and talk directly to the team!

Community Reward

Help us to create new extensions and plugins! With only $5 you help us a lot and get unlimited download access to all of our products, professional support and even more. Get your reward now!

Read More Here