I'm using an ETL pipeline to read Transaction data from Netsuite into my data warehouse. I get the following message when I try to load the data:
RCRD_LOCKED_BY_WF: This record has been locked by a user defined workflow.
I do have an active workflow that locks some Transaction records. My question is: is there a way to allow certain users (in my case, an administrative user) to read locked Netsuite records via the API?
Set a Condition on the Lock Record Action so that it does not run when Administrators (and any other Roles you wish) interact with the record. Or change the Context in which the Lock Record Action runs so that it only runs in the User Interface, for instance.
Related
I have multiple databases in my project based on company we are giving new database for that company.i am developing automation workflows in my current project for that i was planned to implemented queue-jobs concept to achieve this one.
we are maintaining one more database which will contain all databases list (companies which are using them).i was little confused how to approach these kind of scenarios,either i have to maintain jobs table in my commonDatabase or if i have to create jobs table inside each database separately.
Note:- EVery time user tried to login he has to give company name(All requests we are sending in headers) that indicates database name.
My doubts are:-
i created jobs table in each database but it's not inserting records
in particular database,instead of it's inserting in commonDatabase
jobs table?
what is the best way to acheive this kind of scenario ?
if any user logged out the queue will run background or not ?
The thing I understand from you question is that you want to covert your project to multi-tenant multi-database and every company will generate a request to build tenant for them. The answers of your question are following:
I created jobs table in each database but it's not inserting records in particular database,instead of it's inserting in commonDatabase jobs table?
I must said you to watch this youtube play list.
If the Job is related to a company process i.e. you want to process any company invoice email then you will dispatch job in company database and if job is related to commonDatabase i.e. you want to configure any company database then run migrations & seeder into it, then it should be dispatch in commonDatabase.
if any user logged out the queue will run background or not?
yes, the queue will still run in background because the queue worker run on server and it doesn't have any concern with login session or any other authentication medium. You must need to read following articles/threads
Official Laravel Doc on queue
How to setup laravel queue worker
I have a workspace created, in APEX and has a user associated with it (say, USER). I also have an ADMIN user. I want the USER to be able to just select the data from the schema tables and not update/delete tables or create a package etc. How can I achieve this?
I logged in as ADMIN and was tweaking some settings of the workspace. I saw an option called SQL Workshop. Enabling or disabling it doesn't serve my purpose. I want the user to be able to write queries (only select) but he must not be able to update the data or create packages or stuff like that.
There isn't a way to accomplish this within the same workspace. Anyone who can develop or administer a workspace can parse SQL as any database user (schema) mapped to that workspace. You could achieve this using another workspace and normal database object privileges.
Create a second workspace, which USER can login to.
Selectively grant object privileges from objects owned by the database user of the
first workspace to the database user of the second workspace. E.g.,
GRANT READ ON dbuser1.table TO dbuser2;
Dears
I have an Oracle Trigger that Updates a Column named ChangeBY.
this trigger is fired when a user updates any record inside the database and places the username in the ChangeBY column.
The Updates are done from both sides, It can be an update directly from a database user or it can be from an external application connected to my database.
how can I check from where is the Update Coming? From database User or Application?
I want to put a condition inside the trigger to only run my code when any update on values is made ONLY FROM A DATABASE USER since connected applications changes the ChangeBY Column Automatically.
Is this Possible?
Thank you,
I am litle bit confused about database user and application user. Since any application that might connect will internally use a database user only for update. You can check the current user who is logged in and trying to update
.
May be u can explain lil bit about ur application user.
I have a web application with user, policy, user-policy-permission database. Each user may have more than 50 permissions (such as startVM, stopVM, runVM, terminateVM...).
After login, users can only do the operations allowed by policies. I am wondering which is better?
save policies in session? Or Query from database real-time?
I have a database in oracle, my task is to create/update a user in Microsoft Active directory running on different server, when a user detail is entered / updated in Oracle table.
If its not possible then what is the best way to achieve this.
Currently we are doing it by running a code written in C# which reads from oracle and does job in AD, it triggers from user creation package but some times triggering fails and whole process fails. User details are updated in DB but not in AD.
Oracle is running at different server. User details are entered in DB through a different package.