Dwight Thomas (dwight@shield-legal.com)
2024-09-06 11:36:28

Good Morning Darrell...

Dwight Thomas (dwight@shield-legal.com)
2024-09-06 11:37:10

Here is an example of the HTML file used for posting to Salesforce,

Dwight Thomas (dwight@shield-legal.com)
2024-09-06 11:44:24
Dwight Thomas (dwight@shield-legal.com)
2024-09-06 11:44:43

This will build the form...

Dwight Thomas (dwight@shield-legal.com)
2024-09-06 11:45:39

I need to figure out how to script the actual HTML post that we will send

Darrell (darrell@shield-legal.com)
2024-09-06 12:21:17

Copy! Looks good. Sry had my head down in the Dicello Levitt org. I have a demo with them at 11. THe form looks good

Darrell (darrell@shield-legal.com)
2024-09-06 12:21:19

should integrate well with Salesforce for lead creation

Darrell (darrell@shield-legal.com)
2024-09-06 12:23:16

He likely converts right away to make a case.

Dwight Thomas (dwight@shield-legal.com)
2024-09-06 12:47:32

When you are done with your meeting, can we set up a huddle?

Darrell (darrell@shield-legal.com)
2024-09-06 12:56:48

Yes, it may not go the full hour. I can ping once we are done.

👍:skin_tone_5: Dwight Thomas
Dwight Thomas (dwight@shield-legal.com)
2024-09-06 12:57:24

Gotta drop my car off at 1:00 so it may be a remote meeting.

Darrell (darrell@shield-legal.com)
2024-09-06 12:57:42

no worries. are you blocked?

Darrell (darrell@shield-legal.com)
2024-09-06 12:58:25

If we need to go later I can. I just have a 1-2 with Five 9 and im freee

Dwight Thomas (dwight@shield-legal.com)
2024-09-06 13:22:08

Let's meet after 2:00

Darrell (darrell@shield-legal.com)
2024-09-06 13:59:25

Awesome yeah sounds good. I just finished.

Darrell (darrell@shield-legal.com)
2024-09-06 16:00:30

Ready when you are

Darrell (darrell@shield-legal.com)
2024-09-09 12:30:50

To set up a **Zapier** integration that sends data from **Law Ruler CRM** to Salesforce's **Web-to-Lead** endpoint, follow these detailed steps: Step-by-Step Instructions: Step 1: Create a New Zap

  1. Log in to your **Zapier** account.
  2. Click **Create Zap** in the top-right corner.
  3. Select the **Trigger** app, which will be **Law Ruler CRM** in your case. Step 2: Set Up the Trigger
  4. Search for **Law Ruler CRM** and select it.
  5. Choose a trigger event, such as **New Lead** or **New Contact**, depending on what you want to send to Salesforce.
  6. Click **Continue**.
  7. Connect your **Law Ruler CRM** account by entering your credentials, if this is the first time setting it up.
  8. Once connected, select the appropriate trigger you need (e.g., New Lead).
  9. Test the trigger to ensure Zapier pulls in data correctly. This will allow you to map data to Salesforce later. Step 3: Add the Webhooks by Zapier Action
  10. Click **+ Add Action**.
  11. In the action search bar, type **Webhooks by Zapier** and select it.
  12. Choose the action event **POST** since you will be sending data via an HTTP POST request.
  13. Click **Continue**. Step 4: Set Up Webhooks POST to Salesforce Web-to-Lead
  14. **URL**: In the URL field, enter the Salesforce **Web-to-Lead** endpoint URL. For your setup, it would be:
  15. arduino
    1. 4.
  16. https://webto.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8
  17. **Payload Type**: Choose Form as the payload type, because Salesforce expects data in x-www-form-urlencoded format.
  18. **Data**: In the **Data** section, map the fields from **Law Ruler CRM** to the corresponding Salesforce Web-to-Lead fields:Example data mapping: • makefile • • • oid = 00Df4000004kL57 • firstname = {{Law Ruler CRM Field for First Name}} • lastname = {{Law Ruler CRM Field for Last Name}} • email = {{Law Ruler CRM Field for Email}} ◦ company = {{Law Ruler CRM Field for Company}} ◦ The oid is the unique Salesforce organization ID that ties the data to your specific Salesforce instance. Replace it with your actual Org ID.You can map as many fields as needed for your lead submission based on the available fields in your CRM and Salesforce's Web-to-Lead configuration.
  19. **Headers**: Set the following header to ensure proper data formatting:
  20. bash
    1. 11.
  21. Content-Type: application/x-www-form-urlencoded Step 5: Test the Zap
  22. Click **Test & Continue** to send a test request from **Law Ruler CRM** to the Salesforce Web-to-Lead endpoint.
  23. Go into Salesforce and check your Leads object to verify that the lead has been created. Step 6: Turn on the Zap
  24. Once testing is successful, turn on the Zap to make sure it runs every time a new lead is created in **Law Ruler CRM**. Additional Notes:**Mapping Fields**: Ensure that all fields you map from **Law Ruler CRM** match Salesforce's expected field names for Web-to-Lead (e.g., first_name, last_name, email, etc.). You can adjust the Web-to-Lead settings in Salesforce if needed to accommodate additional fields.**OID (Organization ID)**: This is essential for the lead data to be routed to the correct Salesforce instance. You can find this under **Setup** → **Company Information** in Salesforce.**Error Handling**: If something goes wrong, Zapier will provide an error log in the task history. Check for any mismatches in field names or payload formatting. This process allows you to automatically post new leads or contacts from **Law Ruler CRM** directly into Salesforce using the Web-to-Lead functionality via Zapier's Webhooks action.
Darrell (darrell@shield-legal.com)
2024-09-09 12:31:07

apparently thats to zap

👍:skin_tone_5: Dwight Thomas
Dwight Thomas (dwight@shield-legal.com)
2024-09-11 11:07:24

Failed with error: 'Test connection failed. Details: Test connection has failed. Please check connector documentation and verify that your Salesforce instance meets connector limitations. clientRequestId: e1cf721e-7a6a-a891-70d2-d0ca38b97fa4'. Please sign in again.

Darrell (darrell@shield-legal.com)
2024-09-11 11:13:14

https://learn.microsoft.com/en-us/connectors/salesforce/

learn.microsoft.com
Darrell (darrell@shield-legal.com)
2024-09-11 15:31:17
Darrell (darrell@shield-legal.com)
2024-09-11 15:57:25
Dwight Thomas (dwight@shield-legal.com)
2024-09-11 15:58:29

Salesforce Test Account Credentials

Darrell (darrell@shield-legal.com)
2024-09-11 16:10:51

should be ready to test when you are

Dwight Thomas (dwight@shield-legal.com)
2024-09-11 16:31:11

{ "error": { "code": 400, "message": "API path is not valid. Please refer https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/resources_list.htm.", "source": "flow-apim-unitedstates-002-westus-01.azure-apim.net", "path": "choose[5]\when[1]", "policyId": "", "clientRequestId": "bed9ea13-3cb7-4ef7-805b-140ef5d97b32", "dreeSet": "true" } }

developer.salesforce.com
Darrell (darrell@shield-legal.com)
2024-09-11 16:40:21

API version 58

Darrell (darrell@shield-legal.com)
2024-09-11 16:43:39

so would look like this...

/services/data/v58.0/sobjects/Lead/

Darrell (darrell@shield-legal.com)
2024-09-11 16:49:42

{ "LastName": "Doe", "Company": "Acme Corp" }

is a good minimum test

Dwight Thomas (dwight@shield-legal.com)
2024-09-11 16:51:55

00Df4000004kL57

Darrell (darrell@shield-legal.com)
2024-09-11 17:02:26

Consumer Key3MVG95jctIhbyCpqAnrBNa721.oUx2o.cUU5Xu7r42vPTw2dd3z2Bn6Z_T5VvXFgX8nYSyOYExDIr5V7pbtcI Consumer Secret6E667A12D50685B7C5C38AD536BAD6DC1B714AAF7CF93D54FAF413B69964F606

Darrell (darrell@shield-legal.com)
2024-09-11 17:02:39

key on top secret on bottom

Darrell (darrell@shield-legal.com)
2024-09-16 18:07:29

an http request should work as well but do you know why power automate gives me an error here?

Darrell (darrell@shield-legal.com)
2024-09-16 18:30:36

Actually ... Good news! I just got it to successfully send David a test. Here's the body I sent him.

firstname=ShieldLegal&lastname=Test&email=ShieldLegalTest@example.com&street=123+Main+St&city=San+Francisco

I didn't email him to ask. 9/16/2024, 4:25:40 PM (Local time) 9/16/2024, 4:25:40 PM (Local time) Succeeded Client Tracking - 08584750777449408419888068473CU112 Action tracking ID - a4250db4-42e2-422b-8ad5-b353b790557e

👏:skin_tone_5: Dwight Thomas
Darrell (darrell@shield-legal.com)
2024-09-16 18:32:30

Here's the code.

{ "type": "Http", "inputs": { "uri": "https://webto.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8&orgId=00Df4000004kL57", "method": "POST", "headers": { "Content-Type: ": "application/x-www-form-urlencoded" }, "body": "firstname=ShieldLegal&lastname=Test&email=ShieldLegalTest@example.com&street=123+Main+St&city=San+Francisco\n" }, "runAfter": {}, "runtimeConfiguration": { "contentTransfer": { "transferMode": "Chunked" } } }

Dwight Thomas (dwight@shield-legal.com)
2024-09-16 19:11:28

That is absolutely awesome. Tomorrow will have to take a look at it together.