Mulesoft 4 Salesforce Integration for Standard APIs - salesforce

I have to implement an API call to the Salesforce service described here: https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/requests_ls_getappointmentcandidates.htm
This is a standard Salesforce rest API, not an Apex class. I found plenty of examples using the connector with Apex classes but none using the standard APIs
Could I use the Mulesoft 4 Salesforce Connector to do that? Which operation is the best suited?

MuleSoft Salesforce connector doesn't let you call specific REST APIs. It provides high level operations that might be implemented by calling REST APIs or some other service. For the REST API that you are pointing to it looks that it is related to Marketing Cloud, so you should look to the MuleSoft Salesforce Marketing Cloud connector documentation.
If you prefer to do the HTTP REST API call directly then you can use the HTTP Connector.

Related

Has anyone integrated Salesforce Commerce Cloud (SFCC) with any messaging technologies?

I'm looking for examples of how others might have solved for this.
Did you build a custom cartridge?
Did you leverage some externally running agent to retrieve data by OCAPI (or Commerce Cloud APIs)? ...(i.e., a "pull" strategy)
I've read the documentation, spent many nights searching Google, searched the Salesforce Commerce Cloud Marketplace, spoken with several Salesforce Commerce Cloud expert consultants & system integration firms - but it appears no one is aware of anyone else doing this before.
Yes I was able to create a custom cartridge for Twilio.
Twilio provides many separate REST APIs for sending text messages, making phone calls, looking up phone numbers, managing your accounts, and a whole lot more.
You can go through their REST API documentation https://www.twilio.com/docs/sms/api. You can use their REST APIs and implement it in Salesforce B2C Commerce.
Follow creating a simple web service in Salesforce B2C Commerce.
https://documentation.b2c.commercecloud.salesforce.com/DOC1/topic/com.demandware.dochelp/content/b2c_commerce/topics/web_services/b2c_coding_your_web_service.html

In Mulesoft Api development, to integrate any application with salesforce do we need to use salesforce connector or http request?

I am using a Mulesoft Salesforce connector for the integration of a system with Salesforce. To achieve it I was calling three-time Salesforce for an operation such as to get assets from Salesforce by using HTTP connector
to get token
to get salesforce API version
the actual rest API call
to avoid three calls I used a Salesforce connector that is easy to configure and easy to use.
My question is here now that what is the best way for it? using HTTP call three times or a salesforce connector?
We did it using Salesforce connector and in MuleSoft I would say that's the best way to do it. It simplifies the whole process by handling the OAuth token services etc.
As Salesforce bought MuleSoft I believe there will be seemless integration options will come in future. There are many already.
That connector is just a wrapper over those multiple http calls actually.

Google Cloud Datastore how to create, update and delete entity with http request

As Google Cloud Datastore client libraries are available for some language only. Now, How can do operation like create, update and delete of entity without using client libraries with HTTP request.
The Datastore API is built on HTTP and JSON, so any standard HTTP client can send requests to it and parse the responses.You can find more about building a flexible run time here
One of the classic way to do this is to expose the datastore CRUD operations through a set of REST APIs. Google offers Cloud Endpoints which are a set of "tools, libraries and capabilities that allow you to generate APIs and client libraries from an App Engine application" https://cloud.google.com/appengine/docs/java/endpoints/
You can have a look at this tutorial https://rominirani.com/google-cloud-endpoints-tutorial-part-1-b571ad6c7cd2#.1j9holpdt

GWT and Google Docs API

I'm using GWT to create a simply app that allows teachers to create easily their own lessons.
The App is going to be on Google App Engine but I want to store lessons in user's Google Docs space .
Is it possible?
As far as I know gwt transforms java into javascript but google docs api is java, do i have to upload the java library to de app engine storage?
any place to start? any advice?
Thanks...
You need server side proxy for GWT client.
Your GWT client communicates with the servlet. The servlet is the actual agent using the google docs API.
Please read my explanation at http://h2g2java.blessedgeek.com/2010/05/accessing-google-userservice-from-gwt.html.
It explains how to get a GWT client could communicate with a Java based Google API. It explains that since GWT requires all Java source involved to be available to the GWT compiler, there are cases that you simply cannot get GWT client to do the task directly.
http://h2g2java.blessedgeek.com/2009/08/tablemgr-gae-gwt-gdata-with-rpc.html similarly explains how to combine gae + gwt + google docs, using the proxy approach. The posting is quite old and therefore the web site it points to does not work anymore because I have not updated the gae app with google mandated authentication measures. But it should work on your local machine.
The above subscribes to a webserver flow paradigm.
However, Google APIs are essentially REST APIs, which allows you to access them directly using your javascript or GWT client. So, instead of using the Java docs for Google APIs, you need to read the Google REST API docs.
http://code.google.com/more/, among other whatnots, provides a list of all the Google cloud APIs. To avoid using the webserver-proxy flow paradigm, choose the javascript or REST version of the API docs.
Here is the google docs/data API:
http://code.google.com/apis/gdata/docs/client-libraries.html.
Choose the javascript API:
http://code.google.com/p/gdata-javascript-client/
I advise you to first practice using these APIs by coding in javascript. Then you would get a good grasp of what you need to do in GWT.
You should use the GWT API for authentication prior to accessing the Google REST APIs.
http://code.google.com/p/gwt-oauth2/.
Essentially, you are obtaining an authenticated token which your client could use to access Google's data thro their REST APIs.
FYI, REST APIs are, in plain speak, URLs in a defined specification, where data transmission is by convention mostly in JSON or XML.

Approval Process on Salesforce using RESTful API

How can I use the REST APIs for the approval process on the salesforce cloud?
It is driving me crazy, any help will be appreciated.
The REST API doesn't currently support any approval process operations, you'd have to use the soap API.
You can now (since API version 30.0). See the REST API Developer's Guide.

Resources