Create Lead with Salesforce API - salesforce

I have a lot of simple HTML web forms. The forms take a user's information, which should map to a bunch of fields in Salesforce.
I've been using Eloqua to do this migration to Salesforce, but I'm not too happy with Eloqua and am looking into injecting the data directly into Salesforce in lieu of using Eloqua.
There's a plethora of resources on this topic, and honestly it's kind of daunting.
I'm really just looking to make a simple C# or Javascript call into our company's Salesforce instance, take the fields from my HTML form, and put them on the Lead or Contact in Salesforce.

If you only wanted to insert Leads, then the Salesforce Web-to-Lead functionality is straight forward to implement. You can basically drop the generated form into you HTML page. It does have a number of limitations, particularly around preventing spam.
For C#, I'd recommend going with the Partner API. You could use the Enterprise API, which is tailored to your specific org, but the Partner API will serve you well in just about any scenario.
There is example C# code for a create call and update call. When combined with the Examples Using the Partner WSDL you will have most of what you need to insert or update Leads and Contacts.
Incidentally, the Salesforce StackExchange is a great place to ask Salesforce specific questions.

Related

Multi tenancy in Spring boot and React

I am trying to develop a REST API in spring boot and having React as the frontend. React will send GET or POST requests happening on the frontend to modify the MySQL DB in the backend via REST API. In my application, A user can have multiple companies inside the application and each company data is isolated from one another. I have come across Multi-Tenancy in Spring boot. How can I do this implementation for REST API ?? How can I configure my React application for this multi-tenancy?? Is Reactive Core in spring is useful??. Any resources where I can find these answers so that I can implement it. Or any other better way to implement this use case. Please, someone help me. Google results have confused me a lot
You could read a lot about this if you focus on little more details than a broad topic search in Stackoverflow
Here is one way you can achieve your requirement.
React App authenticates your end-users
There will be an API call from UI to get the list of accessible tenants
The list of tenants will be shown in the UI like in a dropdown
The end user will choose a tenant
Once chosen, untill a change next time, you will pass the selected tenant in all the API request headers so that you are identifying the tenant context of the user that is requesting for the data.
Regarding the data-isolation, you do have a lot of options explained in stackoverflow and people have multiple approaches depending on the multi-tenancy levels of course.
The above are the steps that you could achieve in any language (java in your case)
In case of choosing whether your API's are Reactive depends on the business needs. However you should be able to weigh the differences between the aync and reactive implementations, both have their needs, so identify the requirement and choose an approach that suits.
In case you need help in choosing the right approach for a given scenario, do share with us the scenario, how you did it and what you have issue / doubt and the community will be happy to help you.

Can I set up a web form that will populate an opportunity in my salesforce

I have a site I sent my clients to who want to move forward with our order process and I want the information they submit to automatically fill in the form under the opportunity. I was wondering how this was possible. I know you can set up a web to lead form but I dont see this option for what I want to do.
There is no native Opportunity feature equivalent for Web-to-lead or Web-to-Case. You do have a lot of options though (ordered from simplest to most complex).
Use an app on the AppExchange that provide web-to-x functionality.
Use a pre-built connector for popular CMS apps to integrate with Salesforce.
Create a Visualforce Page hosted on Force.com sites and then embed that on your website
Create an Apex Web Service hosted on Force.com sites that can be posted to by your form
Write code on your web platform to post to the Salesforce API.

Salesforce Timecard entry API

I am planning to develop a salesforce mobile application for my company, which allows employees to enter their timecards on their go, I'm aware there are already few other apps by salesforce, available to do the same but I want to rebuilt it again for various reasons. Kindly let me know, if this is feasible? If feasible, kindly let me know the salesforce API which has to be used for doing the same.
The above said requirement is completely feasible. I have implemented it.Some salesforce objects required for achieving it are pse__timcardheader__c, pse__timecard__c and few Rest APIs like process/action are required. Posting the answer for the benefit of others.

Salesforce and vk.com API integration

I need to implement such functionality, that can allow to manage vk.com* entities (create posts, send messages, add new friends etc) form Salesforce side. Although vk.com provides rich API with good documentation, but I look for already developed solutions for Apex.
I checked AppExchange for it and googled popular solutions, but didn't find anything:( Are there any ready apex ways or have I to do it myself? Maybe I can use power of Salesforce Chatter?
I will be glad to any advice, suggestions!
*vk.com is social network, kind of Facebook, which has a much higher relevance than Facebook in Eastern Europe, especially Russia.

Web Analytics & Stats

We want to add tracking statistics to a web application we are building but are pretty unsure of how to go about it. (i.e. clicks, pageviews, unique visits etc)
Does anyone have any articles on the best way to go about incorporating tracking data into an application ? i.e. javascript tracking or IIS etc ?
We want to add tracking in as a ASP.NET MVC module - but we are unsure as to the best way to actually get the data and essentially 'track' this information ?
If anyone could help out - much appreciated.
Edit: just to be clear, we want to do this in-house and present the stats to our users as an additional fee module?
You can turn on the logging for IIS and then use the SQL Server Report Server Pack for IIS. It comes with many canned reports for your sites stats and then you could take it from there with your own custom reports.
You could also just use log parser to get the stats into a SQL Server DB and then you could use SQL from their to analyse and roll your own app.
Either way, you could modularize this and sell it as an add-on to your customer base.
You could use Piwik, you just need PHP version 5.1.3 or greater and MySQL version 4.1 or greater. As they say in their website, "Piwik aims to be an open source alternative to Google Analytics."
They have a demo on the official website so you can see if it's what you're looking for.
Google analytics is a popular service. You just insert a bit of javascript on every page that contains your sites name and Google tracks the data and provides all the report on a handy web based dashboard.
It's not an ASP.net MVC module like what you mentioned, but it will certain track stats for you and will be a lot simpler to set up than trying to code or integrate anything yourselves.
I'd look at analytics to begin with and only branch out to something more complex if it doesn't meet your requirements.
klabranche provided a holistic answer in terms of using logs of web server. I think using web server log is a a great way to analyse data of your web application.
That being said, depend on your web application and the scope of your analytics, just relay on web server log is not a good way to.
As you may know, web log does not record users behaviors like clicking certain tabs which may not trigger a web server request. Obviously your web log has no idea whether users clicked that tab or not, this may hurt your analyse.
Another you need to know is browser cache, this may create another black hole in your data.
RECAP
If you want to do a holistic analytics, you need to use two approaches, one is JavaScrip tag, another one is web log. Since both of them have shortages, combining them together will give you a complete picture.
Hope this helps

Resources