All Watched Over by Machines of Loving Grace
I like to think (and
the sooner the better!)
of a cybernetic meadow
where mammals and computers
live together in mutually
programming harmony
like pure water
touching clear sky.
I like to think
(right now please!)
of a cybernetic forest
filled with pines and electronics
where deer stroll peacefully
past computers
as if they were flowers
with spinning blossoms.
I like to think
(it has to be!)
of a cybernetic ecology
where we are free of our labors
and joined back to nature,
returned to our mammal
brothers and sisters,
and all watched over
by machines of loving grace.
By Richard Brautigan
Monday, 27 February 2012
Thursday, 2 February 2012
Oracle Apex Mobile App
I have built this Mobile Oracle Apex app on a hosting provider showing temperatures on Greek islands. I used jQuery libraries and Oracle Apex Templates. This is a learning prototype.
Features include:
1.Hourly calls to Yahoo Weather API
2.Static Google map API call to show the island on the map
3.More than 1 year daily temperature records to compare with current temperature, per island o. Google charts API
4.Learn the locations of 100+ Greek islands on the map
I am thinking of enriching the database behind this app with other relevant info.
To reach the app point your iPhone to URL below:
http://apex-outsource.com/pls/apex/f?p=533:greekisland
Comments are welcome!
Features include:
1.Hourly calls to Yahoo Weather API
2.Static Google map API call to show the island on the map
3.More than 1 year daily temperature records to compare with current temperature, per island o. Google charts API
4.Learn the locations of 100+ Greek islands on the map
I am thinking of enriching the database behind this app with other relevant info.
To reach the app point your iPhone to URL below:
http://apex-outsource.com/pls/apex/f?p=533:greekisland
Comments are welcome!
Location:London UK
Friday, 16 December 2011
Salesforce to Oracle Real Time Integration
In this blog post I will show you how to make Web Service like calls from Salesforce to Oracle, using Informatica Cloud Endpoint URL in real time.
In Winter 12 release of Informatica Cloud we will have the ability to make Salesforce outbound message calls to an Informatica Cloud task and enable real-time integration.
The idea is simple
Use Salesforce Workflow Rule (a database trigger) and make an outbound message call whenever a new Account Record is edited or created.
Step by step instructions
1) You will create a vanilla Data Synchronisation task, I called mine 'test ws', where you read the Account fields from Salesforce(left) and you UPSERT them to an Oracle(right), in a table called FROMSFDC like this:
2) Then at the 6.Schedule step of the Informatica Cloud task you will see the a new option called:
Run this task in real-time upon receiving an outbound message from Salesforce
When you tick this option, as seen above, an Endpoint URL is generated for the 'test ws' Informatica Cloud task. You can call this task whenever you save a record in Salesforce and force it to execute the UPSERT and update the Oracle table FROMSFDC. Next is to put the above Endpoint URL in a Salesforce Workflow Action (Basically an AFTER INSERT/UPDATE TRIGGER).
3) Next thing to do is to open up Salesforce and go to Workflow & Approvals > Outbound Messages and paste the above Endpoint URL like this:
4) Last thing to do on this is to create a Workflow Rule to fire the Outbound Message you have just created to call the Informatica Cloud task. Here I created something like this:
That's it! Now, don't forget to Activate the rule.
Whenever a new Salesforce Account is added to Oracle As well. Whenever a Salesforce Account is edited it is UPSERTED to Oracle as well.
Below you see the test records inserted in Salesforce and then Upserted to Oracle (Oracle Apex in this case).
Here is the record in Salesforce being created, look at timestamp.
That is the record created in Salesforce. Check the timestamp.
And here you can see the same record pushed in real-time to my Oracle Apex account via the Informatica Cloud URL Endpoint option in my 'test ws' task.
Conclusion:
It is easy to connect in real-time Salesforce and Oracle, or any other database. The benefits are tremendeous, for something similar with Web Services you would have to write code to send SOAP messages to the Database, and you would have to do lots of configuration work in the database to receive those messages. The beauty with Informatica Cloud Endpoint URL task schedule is that you can call Informatica Cloud tasks in real-time from Salesforce with zero coding and just config.
Note: The Data Synchronisation Endpoint URL functionality of Informatica Cloud will be available in January 2012. I have a beta test org which I have used for this blog post. You can find out more about Informatica Cloud Winter 2012 release here.
Thursday, 1 September 2011
Update data in the same Salesforce Object with a 'Self-join' Informatica Cloud Task
When you use Informatica Cloud you usually use it to do Migration, Integration and Synchronisation. That's about what it is used for, right?
It is all about moving data from point A to point B or syncing data between A and B. That is what Informatica Cloud is built for, to move/sync data from A to B and while moving it, maybe transform it as well. A is the 'source' and B is the 'target'. Correct! A can be an Oracle or ERP database and B can be a Salesforce Org. Classical use case of Informatica Cloud.
Well, not exactly. How about if you think a little bit differently.
How about if A is the source and A is the target, as well!
Yes, that's it. Read from A and Write to A via an Informatica Cloud synchronisation task. A kind of Informatica Cloud Data Syncronisation Task which will 'self-join' an Object or Table. To be used to 'self cleanse' or 'self update' the Salesforce custom object data or Oracle database table. This is possible, yes we can use Informatica Cloud as 'self-join' SQL command as well, to edit our data 'in-place' in one single object/table.
I will try to explain this concept with an example. Suppose you have data in your Salesforce standard object called 'Account' which you want to change. A standard approach would be to 'export' data in a CSV file via a report, change the data manually in Excel or something and then use Apex Data Loader to put the changed data back to the Accounts object in your Salesforce Org right?
The screen shots below show you how to do this type of operations without actually exporting the data, but doing it in place with an Informatica Cloud synchronisation task.
What this synchronisation task does is, it uses the same Salesforce Org connection and Account object as 'Source' and as 'Target'. That is it, the Account Standard object for this task is the Source connection and the Target connection at the same time.
This way the Informatica Cloud task, reads the data from the Account object and writes it back, after it transforms it, into the same Account object.
Create a Source on the Account object
Create a Target for the same Account object in the same org. Just choose as target the same object.
Field Mapping a kind of 'Self-Join', see Id=id
Use DECODE function in the same Field Mapping to manipulate data
The Informatica Cloud string function 'DECODE' does the trick. Observe how it changes the occurrences of the string 'Direct Employer' to 'Employer' in the Type field of the standard Salesforce Account object, which is actually the same object it reads it from.
decode(Type,'Direct Employer','Employer')When you save and run this task it will read from the same Account object and write back to the same Account object the changed data. All within an Informatica Cloud Data Synchronisation 'Self-join' task! No file downloads, Excel use or whatever. Just one command. Given the plethora of Informatica Cloud String, Arithmetic, Date etc... functions available, just imagine what you can do to your data!
This is a wonderful and simple example of how Informatica Cloud can be used to cleanse data, I think.
Thursday, 18 August 2011
Copy your Salesforce org into Oracle with CopyForce
We found this really cool piece of code called CopyForce in Google code the other day which lets you:
Copy your Salesforce org objects (tables, indexes) into Oracle or any other RDBMS, yes you can!
The code I believe is freely available. But not to lose time I used the GUI which is available with trial a license of 30 days from CAPSTORM. In this post I want to quickly show you how you can copy your whole Salesforce org dev or prd with its data into Oracle, then do whatever you like with it.
Installing CopyForce with CAPSTORM GUI.
1. Download the CopyForceOrace.zip file from the above site.
2. Extract the zip file to a directory of your choice
/home/crazyman/copystorm
3. Change directory permissions chmod +x on shell script CopyStorm.sh
4. Start the GUI by running
./CopyStorm.sh
5. Start the CAPSTORM GUI, accept EULA.
6. Remember this is a 30 day trial only.
Once the GUI is up you just have to provide your Salesforce and Oracle connection credentials. Before that I logged to Oracle and created a dummy schema called ORA_SFDC and in this schema the CAPSTORM programme will copy the whole Salesforce developer org objects.
Once you have configured and tested both connections, then you can start the copy process.
Once the process finishes lets login to Oracle and see how many objects were created in this blank ORA_SFDC schema. So I can see by running an Oracle dictionary view SQL that I get in my Schema only tables, views and LOBs.
SQL>
select object_type, count(*)
from user_objects
group by object_type
order by 2 desc
OBJECT_TYPE COUNT(*)
------------------- ----------------------
TABLE 161
INDEX 161
LOB 89
That's it, that's what you get in Oracle from a vanilla Salesforce developer Org and a few custom objects that I had in this particular developer org. 161 tables per org only, not bad huh!
Now just imagine what you can do with this!
The other good thing you get with CopyForce is since now you have copied your Salesforceorg schema and your Salesforce data into Oracle, you can now use SQL to your heart's content and massage this data as you wish! That is, gone are the days where you had to dump Salesforce data to Excel and change it manually before you put it back into Salesforce. Now you can change your Salesforce data in an Oracle database with all the sophistication ofSQL and put it back to Salesforce.
I think CopyForce has lots of future, and really would be a good choice for one-off data integration, data beautification projects.
I wonder what is in those LOBs ? I bet is the Apex code....
Subscribe to:
Posts (Atom)












