There are a few ways to achieve what you want. The first option is to use, as you mentioned the REST API. You will have a user in Salesforce that has administrative rights. The documentation on how to connect to an endpoint in Salesforce can be found here. I know some of the examples are not in PHP, mostly C# and Java but you could work out what it's trying ...
The "free" hosting provided by salesforce.com is rather limited, as illustrated in the Force.com Sites Limits and Billing page. Notably, you only get 10 minutes of processor time in a Developer Edition account (compared to 60 hours for a production environment), and only 500 MiB of bandwidth (compared to 40 GiB for a production environment).
The processor ...
Click on Setup | Customize | Knowledge | Settings | Check "Allow users to add external multimedia content to HTML in the standard editor" to 'True' - you can then use the WYSIWYG editor on Rich Text fields to "Embed Media" into a Knowledge Article. This allows pasting the iframe code from YouTube, Vimeo, Dailymotion and a number of other video sites.
There are two facts related salesforce that you should consider before taking a decision.
1) Salesforce pricing is license based. The more licenses(users that
logs into salesforce) you purchase, more will be the amount you need
to pay. To overcome this you can use one API user login to connect
with Salesforce from php(probably Force.com PHP toolkit)....
Yes you can edit robots.txt. Create a visualforce page and then assign it to the robots.txt field in sites setup.
An example file may look like:
<apex:page contentType="text/plain" showHeader="false">
However in your question you also mention using a custom domain in a Developer Edition organization. ...
Another way which I'm not seeing here is utilizing Salesforce sites. The idea here is to build a site with a path - this requires no authentication to access, obviously there is a security risk there; then the API is exposed through that site via a guest user license.
I've tried this myself to build a form on a site - I even had it search if the provided ...
Answered my own question, which is always good!
The issue is that the SalesForce code snippet is based on http which causes issues for website running https (which most sites do nowadays) and throws a mixed content error in the majority of modern browsers.
Therefore to fix the issue you need to replace the http part with https as per below... http://XXXX....
Gravity forms is a great form building tool for Wordpress and they have a Salesforce integration addon. Sounds like this is exactly what you're looking for.
Instead of using a username/password or OAuth for an API user you might try SF's mutual authentication. Outside SF this is mostly known as Client Side Certificate Authentication feature. This secure feature offers quick access without credentials to any SF API, ie. the REST Partner API.
You do require a certificate signed by one of these authorities: http://...
One option would be to create a public REST web service and host it in a Salesforce site. The method would access the new contact data and product code. It could then insert the Contact and related custom object in one transaction.
A potential issue with this approach is opening the ...
A few things come to mind, The first and most important is are you a registered ISV? If not I think you should join right away.
Being a registered ISV means you have someone within Salesforce that you can talk to about these kind of issues.
I just went and took a look at one of the apps we currently have in security review and the help text regarding paid ...
This will require triggers and @future methods.
For every object that you want to apply this to, you will need to create a trigger that covers the desired events (before/after, insert/update/delete, etc. . .). In other words this will require one trigger per object; there is no way to have a generic trigger.
Create a helper method marked @future(callout=...
I've seen similar issues before. There are a few ways you can tackle this
A) Add a robots.txt file where you can specify which all pages/ prefixes you want to disallow for crawling.
See this link for more details.
A file that determines which parts of your public site Web spiders and
other Web robots can access. Web robots are often used by ...
Canvas App Implementation supports Signed Request .Using Signed request ,the client end app can verify the request .
This will still needs some work on the other end to verify the signed request using the consumer secret generated from the connected app.
Else if you dont need user identification , a simple iframe or web tab should help
As you realise, the trigger's transaction will have committed before the web service response fails. So you have to move into the area of compensating transactions i.e. providing a way to undo what has been done.
Exactly how you do that will depend on what changes were committed e.g. if its just one field change you could store the previous value (in ...
Depending on the performance hit, you will have to model it in your environment
Create a long text field
JSON.serialize the trigger.old value, or class representing the data you are tracking, and store it on that field.
to rollback, simply deserialize and update.
Another way is create a class to have only the fields you are interested in and deserialize ...
It's quite likely that the method is wrong. You wouldn't normally expect to see a body in a GET method. See:
[...] if the request method does not include defined semantics for an
entity-body, then the message-body SHOULD be ignored when handling the
And the definition of GET says that it is ...
yes, it is possible by means of creating custom rest resource in salesforce and inserting contact via this endpoint.
you want to add one more additional step before returning newly created contact. This step is to query this 18 digits long contact ID field. for example:
global with sharing ...
so there are a couple of tricks you can do.
Background: you can include custom fields in your web to lead, and use css/html to hide them and or pre populate the data.
so, with that in mind, I like to do the following.
Put the form on the page, with an unpopulated, hidden field called "Web2lead__c" or some such.
Strip out the OrgID from the form.
I'm not sure I understand your question. By "without calling out" and "can get response from other callback url" do you mean that you want to publish an endpoint that will accept JSON that is posted to it? If so you can create an @RestResource Apex class with a @HttpPost method that can hanle most of the work - including deserialization from a JSON String to ...
First establish that you have permission to use the images. And referencing the images only makes sense if you know the images are not going to be removed i.e. you are co-ordinating your work with whoever is managing the go daddy site.
Go to the go daddy page that contains the image you are interested in e.g.:
Put the ...
You should also note that you can't use your own domain name in a sandbox or developer edition. You have some control over what the name is, but there is a long suffix at the end that can't be removed.
Access tokens always work for hours only.
When the access token expires, you need to get new Access token by using the Refresh token. Here the validity of refresh token come in place. If it is set to "Refresh token is valid until revoked", you can get access token as long as refresh token is invalidated by user.
Refresh token is valid until revoked does ...
Is the submission URL up-to-date? About two months ago Salesforce changed the Web-to-Lead endpoint urls ( https://help.salesforce.com/articleView?id=Updating-the-Web-to-Case-and-Web-to-Lead-Endpoint-URL&language=en_US&type=1 )
In WordPress, Under Contact>Third Party Services > Open the service and make sure the submission url points to "https://...
Yes These limits will count you should consider that.
Now for the authentication into SF use Partner WSDl and do the authentication.
And for the data update you can use REST or SOAP in which you are more comfortable but if you are storing data in Custom objects then you can also use Partner WSDl to insert and update the data.
Salesforce support the way to get the request and provide the response from third party sites. It is RestResource.
Authentication with Salesforce.OR You can setup force.con site and expose that class so, you can invoke it without authentication.
RestResource annotated class.
Go through below link to setup rest resource:-
Add a Class as a ...
Personalisation Builder provides uuid for anonymous visitors. It can be seen in a.o. PI_CONTENTVIEWS and IGO_VIEWS Data Extensions, if you have enabled this synchronisation. It is stored in a cookie and links all the page views to the same individual browser. But since it is not seen as a regular Contact ID, it will not count towards your limit - it is ...