Click HERE to see how Saviynt Intelligence is transforming the industry. |
04/12/2024 02:05 AM
I want to insert multiple rows in account owners table via enhanced query. But it is taking only 1.
Anyone have any idea of Inserting multiple rows.
Solved! Go to Solution.
04/12/2024 02:31 AM
you can use 'union' for multiple insert enhanced query execution.
example :
select 'India' as accounts__customproperty1,accountkey as accounts__primarykey from accounts where accountkey=1234 union
select 'Israel' as accounts__customproperty1,accountkey as accounts__primarykey from accounts where accountkey=12345
04/12/2024 02:52 AM
Need to do it dynamically using below query.
select
a.accountkey AS accountowners__accountkey,
ao.accountownerkey AS accountowners__PRIMARYKEY,
u.userkey AS accountowners__OWNERUSERKEY,
1 AS accountowners__RANK ,
sysdate() AS accountowners__UPDATEDATE ,
1 AS accountowners__UPDATEUSER
from
accountowners ao, accounts a, users u where u.username = a.customproperty20
and a.displayname like '%flkbot%'
04/12/2024 03:58 AM
it will work dynamic also, may be where cause chck once query execution time
04/12/2024 05:27 AM - edited 04/12/2024 05:28 AM
Account owner table dynamic insert is not supported
04/12/2024 05:34 AM
Hi @rushikeshvartak ,
How to convince customer. They want an automated process for it. A scheduled job like thing which need not manual intervention.
Do you have any idea how to do that.
04/12/2024 06:05 AM
You need to do manually no alternatives. Even actionable report also supports manual intervention
04/13/2024 01:14 AM
job scheduling automation procces only , we are not doing manually hit job everytime , you can explain clearly them.