Closed ap-coder closed 3 years ago
Hi @ap-coder !
Thanks for your kind words and your interest in the Postman Collection. Could you share the environment you are using and related configuration ?
Could you also share the content of the code button and choose HTTP please ?
It will help us to reproduce and understand the root cause of the issue.
Feel free to obfuscate the username and password value by setting it to wrong random values when providing it please
Ok @scolladon as requested here you go.
I was using your SOAP Login template.
Environment
{ "id": "4a7ae720-7e3f-4c7d-8afc-c5be2adca313", "name": "CODE", "values": [ { "key": "url", "value": "https://test.salesforce.com", "enabled": true }, { "key": "version", "value": "48.0", "enabled": true }, { "key": "username", "value": "api@example.com", "enabled": true }, { "key": "password", "value": "example", "enabled": true }, { "key": "secretToken", "value": "secret1EGVPuYQz0UKyIMg29u", "enabled": true }, { "key": "clientId", "value": "3MVG9Km_cBLhsuPzr.MCJpTG0KZGn9vUJgPZSd87rwNuF5kdUVvvE5K8ZL_6T0sZo2L1YgH_VDrIyPkvdv4F5", "enabled": true }, { "key": "clientSecret", "value": "D279BFAB0BCC1B0EFEA4343FA533E79C061C2FF8A364DF11CA378FFAF74A4101", "enabled": true }, { "key": "redirectUrl", "value": "", "enabled": true }, { "key": "initAccessToken", "value": "", "enabled": true }, { "key": "site", "value": "", "enabled": true } ], "_postman_variable_scope": "environment", "_postman_exported_at": "2020-09-23T16:25:10.741Z", "_postman_exported_using": "Postman/7.33.0" }
Generated code for HTTP
POST /services/Soap/u/48.0 HTTP/1.1
Host: https://test.salesforce.com
Content-Type: text/xml
SOAPAction: login
charset: UTF-8
<?xml version="1.0" encoding="utf-8" ?>
<env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Body>
<n1:login xmlns:n1="urn:partner.soap.sforce.com">
<n1:username>api@example.com</n1:username>
<n1:password>examplesecret1EGVPuYQz0UKyIMg29u</n1:password>
</n1:login>
</env:Body>
</env:Envelope>
Let me know if you need anything else.
@scolladon another question do you have a example/template on a way to create a case / web to case record but through the api somehow. Something other then using the webtocase generated html. Of if there is no other way i understand but am curious.
@ap-coder the payload seems fine. You even have added the secret token. It is working fine on my side. Do you have a my domain ? Could you try to put the my domain in the url variable ?
To answer your question you can use the endpoint REST/SObject Create. Copy it in another collection and change the last part of the url to Case. Fill the body with the fields you need and execute the call. Let us know if it worked
Closing after inactivity. Please reopen the issue or comment if the issue is still valid.
I have been following your instruction on you webcast and love it by the way but ran into a snag i cant seem to figure out the issue can you help.
Using the AUTH> SOAP Login it keeps erroring out with the following.
I looked through the files and they seem formatted correctly and have no idea what is doing it.
I also have another question on the other files like in REST > Limit what do i set the endpoint as or with?
Thanks in advance.