on 03-09-2015 10:12 AM
hi all,
i have a requirement to load data from oracle to salesforce table daily.
also before the load, the existing data from salesforce table should first be deleted
i tried to do a test load, which was possible.
but the only issue is that i am not able to figure out on how to truncate the salesforce table from BODS side.
can anyone please suggest ?
hi all,
this was not possible from bods scripts.
so our salesforce team agreed to delete data manually whenever we required.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I believe using a Map_CDC_Operation transform should suffice for what you are trying to do. You can map your CDC operations accordingly so that you are always loading the latest set of data.
-Chaitanya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Swetha,
If above didn't work for you, can you call a script from DS using the exec command to truncate a salesforce table. I believe they are apex class codes to delete tables and if you can externally trigger this, you should be good to go. I haven't worked with SF tables so not too sure myself.
-Chaitanya
sql( 'DATASTORE_NAME','TRUNCATE TABLE TABLE_NAME');
Change the datastore name and table name in code above accordingly for your Job.
Put this code inside a script and connect this script to your data loading DF.
Hope this helps.
Regards,
Ansari
hi,
i tried this script from BODS, but i got an error message that this is not supported.
Script:
sql( 'DATASTORE_NAME','TRUNCATE TABLE TABLE_NAME');
error message:
Unsupported database type <Adapter> specified as repository. Valid types are <Oracle, ODBC, MySQL, Sybase, Memory, MaxDB, HANA,
DB2, SQL_Anywhere>. Ensure database type matches in spelling and case to the supported types.
Double click on the target table in BODS designer area and go to options tab and check the "Delete data from table before loading " check box.
Thanks,
AJ.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.