function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
AaranAaran 

JIVE REST call from Salesforce

HI,

 

How do we post an action(https://developers.jivesoftware.com/api/v3/rest/ActionEntity.html) from salesforce to JIVE?  Here is APEX class that I have so far:

 

public class CALLOUTREST{

    

    @future(callout = true)

      public static void basic1AuthCallout(){

 

        HttpRequest req = new HttpRequest();

        req.setEndpoint(URL);

        req.setMethod('GET');

        

        // Specify the required user name and password to access the endpoint

        // As well as the header and header information

        

        String username = USERNAME;

        String password = PW;

        

        Blob headerValue = Blob.valueOf(username + ':' + password);

        String authorizationHeader = 'BASIC ' + EncodingUtil.base64Encode(headerValue);

        req.setHeader('Authorization', authorizationHeader);

        

        // Create a new http object to send the request object

        // A response object is generated as a result of the request  

        

        Http http = new Http();

        HTTPResponse res = http.send(req);

        System.debug(res.getBody());

        

    }

}

 

Ashish_SFDCAshish_SFDC

Hi Aaran, 


See the below description and the links and let us know if you are looking for something else.  

Jive Case Escalation for Salesforce > Setting Up Jive Case Escalation for Salesforce
Connecting Jive to Salesforce

You'll need a Salesforce account with API-level access to connect Jive to Salesforce.

To connect Jive and Salesforce so you can escalate Salesforce cases from Jive questions, you need a Salesforce account with API-level access, and you'll need to supply your security token as well as your username and password. You can test the connection from the Jive admin console. The API user is typically your service user in Salesforce. If you don't have the security token (also known as the API key) associated with that user, you can only retrieve it by resetting it. Keep in mind that resetting the security token will also affect any other users who use the service user. If this isn't convenient, you may also choose to create a Jive-dedicated API user in Saleforce.

You can disable the connection (and make sure no information can be sent to Salesforce) using the Disable button.

Fastpath: Admin Console: System > Settings > CRM Integration > Connection, or click connect to CRM during initial setup.
On the Connection tab, provide your username, password, and API key (security token). Note that even though Salesforce tells you to append the security token to your password, Jive provides a separate field for the security token. Don't append it to your password in the Jive admin console.
Click Save Settings. You'll see information about your connection status displayed at the top of the tab.

http://docs.jivesoftware.com/jive_sbs/5.0/index.jsp?topic=/com.jivesoftware.help.crm.online/admin/ConnectingJivetoCRM.html

1) Jive developer signup – it’s free
https://developers.jivesoftware.com/

(2) Introduction to tiles:
https://community.jivesoftware.com/community/developer/blog/2013/11/01/integrations-your-way-introducing-the-jive-sdk

(3) GitHub documentation and SDK code:
https://github.com/jivesoftware/jive-sdk

(4) The root of the Salesforce example is here:
https://github.com/jivesoftware/jive-sdk/tree/master/jive-sdk-service/generator/examples/sfdc

(5) The Salesforce example bundled in the SDK includes code which queries salesforce:
https://github.com/jivesoftware/jive-sdk/blob/master/jive-sdk-service/generator/examples/sfdc/services/sfdc/backend/routes/oauth/sfdcQueryer.js

(6) It delegates down to useful utilities that do the actual querying for you, using access tokens:
https://github.com/jivesoftware/jive-sdk/blob/master/jive-sdk-service/generator/examples/sfdc/services/sfdc/backend/sfdc_helpers.js

(7) The tile needs a tiny backend, which I suggest should be on Heroku because it’s cheap and fully integrates with Salesforce:
https://community.jivesoftware.com/community/developer/blog/2013/12/21/from-zero-to-cloud-service-in-20-minutes-using-the-jive-sdk (59)

http://theblogreaders.com/jive-and-salesforce-integration/#.UtkEmlsW0pE

Regards,

Ashish

Jayaprakash Narayan ThatiparthiJayaprakash Narayan Thatiparthi
Hi Ashish,

Are these links above still working.

Thanks,
JP