Skip to main content

Posts

Read PDF in Boomi

If you need to read pdf from Boomi Atom installation path,then use code something like this in map function. byte[] filebytes = new File('\\\\'+path+'\\'+filename+'.pdf').readBytes() String strEncoded= filebytes.encodeBase64().toString() name = filename+".pdf"; fileContent= strEncoded; fileContent stores the encoded base 64 data.
Recent posts

How to create dynamic table in email body - Dell Boomi

1-Create xml profile as shown below. 2-If there is chance that few elements/rows may or may not have values then provide default empty space so all columns will be maintained properly. 3-You can also provide width ,color etc as shown in profile. 4-You need to provide Header label as default value as per requirement.

Salesforce - Common footer and sender email address for all emails from one department

if you are in situation where you are sending email out from salesforce and you want to use same  sender email address and footer.Lets say you are from customer service department and you department tag line is Best in service:) and you want to send email always from one email id bestineservice@mycompany.com for customer service department. Follow below steps- Common email footer(Organization wide email footer):- 1)login to salesforce 2)click on setup, in Admistration setup section click on Email footers then click on new on email footer screen. 3) enter all the details and click on same. Common Email address :-  1)click on setup 2) click on setup, in Admistration setup click on organization-wide address and then click on Add 3) fill the details and select the profile like customer service profile or depends on you situation and click on save  

Salesforce Trigger On After Insert

If you want to know what is salesforce trigger and when can we have trigger run ,please check my previous post about Salesforce trigger . In this post i will  be explaining how you can run your trigger after insert of record into database. Lests take an example. if you want to send email to someone in your organization  after every new account is created so you will need 1) Trigger implementation 2) Html email body/template 3) email receipants Trigger Implementation: From Setup, click Customize -> Accounts -> Triggers In the triggers section, click New. In the trigger editor, delete the default template code and enter this trigger definition: > 1.  trigger NewAccountCreationSendEmail on Account (after insert)      { 2.           for(Account act: Trigger.New)                {                        //code to send email Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage(); String toEmail = "emailid@gmail.com"; String[] to

What is Salesforce Trigger

Salesforce Trigger:- Salesforce trigger is apex code that executes before or after the folowing types of operations. insert    -  You can have this trigger run  before or after objects records are inserted into database. update  -  You can have this trigger run  before or after objects records are updated into database. delete   -  You can have this trigger run  before or after objects records are deleted from  database. merge   -  Merge events do not fire their own trigger events. Instead, they fire delete and update event upsert   -  Fire both before and after insert or before and after update triggers as  appropriate undelete- record is restored from the Recycle Bin  I will be explaining each trigger with example in next tutorial.

Sonar and Sonar runner with Jenkins

Configure  Sonar and Sonar runner with Jenkins 1)Install sonar plugin in jenkins 2)Download sonarqube(http://www.sonarqube.org/downloads/) and unzip it  into C:\KB\sonar\sonarqube-4.1.2 3)Open sonar.properties file from conf folder and uncomment below properties sonar.jdbc.username=sonar sonar.jdbc.password=sonar sonar.jdbc.url=jdbc:postgresql://localhost:5432/sonar you will have to create sonar database 4))Open command prompt and type cd  C:\KB\sonar\sonarqube-4.1.2\bin\windows-x86-64 5) Run StartSonar.bat 6) Configure sonar through manage jenkins->configure system 7))Download sonar runner and unzip it intoC:\KB\sonar\sonar-runner-2.3 8)Open sonar-runner.bar file from bin folder. add this line at start below set ERROR_CODE=0 set SONAR_RUNNER_HOME=C:\KB\sonar\sonar-runner-2.3 and replace existing set  PROJECT_HOME with set PROJECT_HOME=C:\Jenkins\jobs\ \workspace\ 9)Configure sonar through manage jenkins->configure system 10) Now open job configuration