Thursday 19 June 2014

Bar code scanner using salesforce and Appery.io


Please go through the below links to integrate salesforce with appreyo

https://www.youtube.com/watch?v=uORtGgGiFtU

http://devcenter.appery.io/tutorials/using-the-barcode-scanner-component/

http://devcenter.appery.io/tutorials/salesforce-integration/

Tuesday 19 November 2013

How to find the required fields of an object in SFDC


 I was trying to find out how to get the list of required fields of an objects in SFDC and finally got this code. 
 
1.   Open Execute Anonymous Window in developer console
           Debug --> Open Execute Anonymous Window.

2.  Copy and Paste the below code and click on execute. I am using the User Object in the code. Replace with the Object for which you want to find the required fields
            Note : Check on Open Log checkbox.

Schema.DescribeSObjectResult r = User.sObjectType.getDescribe();
    Map<String,Schema.SObjectField> M = r.fields.getMap();
     for(String fieldName : M.keySet())
      { 
            Schema.SObjectField field = M.get(fieldName);
            Schema.DescribeFieldResult F = field.getDescribe();
             //A nillable field can have empty content. A isNillable Boolean non-nillable field must have a value                  // for the object to be created or saved. 
            if(!F.isNillable())
            System.debug (' F = ' + fieldName + '*****    isnul= ' +  F.isNillable());         
      }


Below is the log file generated once you execute above code block. Check on debug only filter to only see debug logs. 










Thanks to  Shashikant Sharma for the solution.


source:  Force.com Discussion Boards

Saturday 14 September 2013

CTI Integration with Salesorce.


Prerequsites for CTI Integration with Salesforce

1. Install Oracle Virtual Box in your machine .
2. Downloading and installing AsteriskNOW-3.0.0-i386-DVD(436 MB)  machine on Oracle Virtual box.
3. Configuring Asterisk server to accept SIP protocols.
4. Install Camrivox Flexor and X-lite softphone.





Tuesday 20 August 2013

Single Sign on using openAm(Idp) and salesforce(SP)



   Prerequsites :
1.       Java 1.6 or above.
2.       Apache Tomcat Server 6.0 or above.
3.       OpenDJ as a directory server.
4.       OpenAm as an identity provider.


 1.    Steps to install Java 1.6 in Linux are here
 2.  Installing openDJ
    OpenDJ provides a user directory service based upon LDAP standards, creating a simple, easy to deploy and  scalable option to use as a user data store. You can download openDJ(Zip) setup here http://forgerock.com/opendj-downloads/

  
Installing OpenDJ in windows:  Once you have downloaded the openDJ unzip it,  open the folder and click setup.bat and follow the steps below to install openDJ in windows

SSO














 Password: opendj













 Fully Qualified host name and Directory Data will be used while configuring Directory server in openAM












Once the installation is done login into opendj with the opendj as password. You can manage different users in the manage entries section on the sidebar.
To open opendj again go to installation directory. In my case it is C:\Users\NareshJella\OpenDJ-2.5.0-Xpress1\OpenDJ-2.5.0-Xpress1\bat and double click  control-panel.bat .

3. Install Tomcat server6.0 or above and add the following entries in the host file and save it          C:\Windows\System32\drivers\etc\hosts
    XXX.XXX.XXX.XXX  openam.example.com
   127.0.0.1  website.example.com
    (where XXX.XXX.XXX.XXX is the public ip address of the system in  which tomcat is installed )  

Once this is done you should be able to see tomcat running  at http://openam.example.com:80 (80 is the port in which our Tomcat is running it may be different for you) 

Installing openAm:   Download the latest openam war file from http://forgerock.com/openam-downloads/  (you may change the name of war file to openam.war) and deploy it in the Tomcat Server





Click on manager app and enter your username and password.
Now go to ‘WAR file to deploy’ section and choose the openAm war file you downloaded and click on deploy. If everything goes well you should be able to see an entry in the applications section
Note : If you get any error related to ‘multipart-config‘ then go to        C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\manager\WEB-INF and open web.xml and increase the max-file-size of the multi-part config tag to the size specified in the error message




Click on openam application you will be directed to the OpenAm configuration page as below




Password : cangetinam



















   Directory name is the fully qualified host name and Root Suffix is the Directory Data which you gave during openDJ installation.
Password : cangetindj (password that is given during installation of OpenDJ)











Password : cangetinpa












Once the configuration is done you should able to see the following page when you browse for
http://openam.example.com:80/openam

Login with the administrator credentials i.e
User name : amadmin
Password   : cangetinam





Follow this link for further configurations like 
Creating Users
Creating a Web Agent
Creating an Access Policy


Configuring for Single sign on
    Follow the below link to configure SSO on openAm and Salesforce

Wednesday 24 July 2013